Documentation
¶
Index ¶
- Constants
- type Installer
- func (a *Installer) CheckInitJobReadiness(ctx context.Context) readiness.CheckResult
- func (a *Installer) CheckProviderReadiness(ctx context.Context) readiness.CheckResult
- func (a *Installer) InstallInitJob(ctx context.Context) (completed bool, err error)
- func (a *Installer) InstallProvider(ctx context.Context) error
- func (a *Installer) UninstallProvider(ctx context.Context) error
Constants ¶
View Source
const ( ProviderNameLabel = "openmcp.cloud/provider-name" ProviderKindLabel = "openmcp.cloud/provider-kind" ProviderGenerationLabel = "openmcp.cloud/provider-generation" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer struct { PlatformClient client.Client Provider *unstructured.Unstructured DeploymentSpec *v1alpha1.DeploymentSpec Namespace string }
func (*Installer) CheckInitJobReadiness ¶
func (a *Installer) CheckInitJobReadiness(ctx context.Context) readiness.CheckResult
func (*Installer) CheckProviderReadiness ¶
func (a *Installer) CheckProviderReadiness(ctx context.Context) readiness.CheckResult
func (*Installer) InstallInitJob ¶
InstallInitJob installs the init job of a provider. Does nothing if the generation has not changed. Otherwise, it deletes the old job before it creates the new job. Adds provider generation as annotation to the job.
Click to show internal directories.
Click to hide internal directories.