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
type LibraryClient ¶
type TemplateData ¶
Click to show internal directories.
Click to hide internal directories.