istio

package
v0.0.0-...-81d1f5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LastAppliedConfiguration string = "operator.kyma-project.io/lastAppliedConfiguration"
)

Variables

This section is empty.

Functions

func UpdateLastAppliedConfiguration

func UpdateLastAppliedConfiguration(cr operatorv1alpha1.Istio, istioTag string) (operatorv1alpha1.Istio, error)

UpdateLastAppliedConfiguration annotates the passed CR with LastAppliedConfiguration, which holds information about last applied IstioCR spec and IstioTag (IstioVersion-IstioImageBase)

Types

type Installation

type Installation struct {
	Client         LibraryClient
	IstioVersion   string
	IstioImageBase string
}

func (*Installation) Reconcile

func (i *Installation) Reconcile(ctx context.Context, client client.Client, istioCR operatorv1alpha1.Istio, defaultIstioOperatorPath, workingDir string) (operatorv1alpha1.Istio, error)

Reconcile runs Istio reconciliation to install, upgrade or uninstall Istio and returns the updated Istio CR.

type IstioCRChange

type IstioCRChange int

IstioCRChange represents difference since last reconciliation of IstioCR

const (
	NoChange            IstioCRChange = 0
	Create              IstioCRChange = 1
	VersionUpdate       IstioCRChange = 2
	ConfigurationUpdate IstioCRChange = 4
	Delete              IstioCRChange = 8
)

func EvaluateIstioCRChanges

func EvaluateIstioCRChanges(istioCR operatorv1alpha1.Istio, istioTag string) (trigger IstioCRChange, err error)

EvaluateIstioCRChanges returns IstioCRChange that happened since LastAppliedConfiguration

type IstioClient

type IstioClient struct {
	// contains filtered or unexported fields
}

func NewIstioClient

func NewIstioClient() *IstioClient

func (*IstioClient) Install

func (c *IstioClient) Install(mergedIstioOperatorPath string) error

func (*IstioClient) Uninstall

func (c *IstioClient) Uninstall(ctx context.Context) error

type LibraryClient

type LibraryClient interface {
	Install(mergedIstioOperatorPath string) error
	Uninstall(ctx context.Context) error
}

type TemplateData

type TemplateData struct {
	IstioVersion   string
	IstioImageBase string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL