install

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func NewDeploymentMutator added in v0.7.0

func NewDeploymentMutator(values *Values) resources.Mutator[*appsv1.Deployment]

func NewJobMutator added in v0.7.0

func NewJobMutator(values *Values, deploymentSpec *v1alpha1.DeploymentSpec, annotations map[string]string) resources.Mutator[*v1.Job]

Types

type Installer

type Installer struct {
	PlatformClient client.Client
	Provider       *unstructured.Unstructured
	DeploymentSpec *v1alpha1.DeploymentSpec
	Environment    string
}

func (*Installer) CheckProviderReadiness

func (a *Installer) CheckProviderReadiness(ctx context.Context) readiness.CheckResult

func (*Installer) InstallInitJob

func (a *Installer) InstallInitJob(ctx context.Context) (completed bool, err error)

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.

func (*Installer) InstallProvider

func (a *Installer) InstallProvider(ctx context.Context) error

func (*Installer) UninstallProvider

func (a *Installer) UninstallProvider(ctx context.Context) (deleted bool, err error)

type Values added in v0.2.0

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

func NewValues added in v0.2.0

func NewValues(provider *unstructured.Unstructured, deploymentSpec *v1alpha1.DeploymentSpec, environment string) *Values

func (*Values) ClusterScopedDefaultResourceName added in v0.2.0

func (v *Values) ClusterScopedDefaultResourceName() string

func (*Values) ClusterScopedResourceName added in v0.2.0

func (v *Values) ClusterScopedResourceName(suffix string) string

func (*Values) Environment added in v0.4.0

func (v *Values) Environment() string

func (*Values) EnvironmentVariables added in v0.7.0

func (v *Values) EnvironmentVariables() ([]corev1.EnvVar, error)

EnvironmentVariables returns the environment variables set in the provider resource, enriched by the following: - OPENMCP_PROVIDER_NAME: the name of the provider resource, - OPENMCP_PROVIDER_NAMESPACE: the namespace in which the provider will be deployed.

func (*Values) Image added in v0.2.0

func (v *Values) Image() string

func (*Values) ImagePullSecrets added in v0.2.0

func (v *Values) ImagePullSecrets() []corev1.LocalObjectReference

func (*Values) LabelsCommon added in v0.2.0

func (v *Values) LabelsCommon() map[string]string

func (*Values) LabelsController added in v0.2.0

func (v *Values) LabelsController() map[string]string

func (*Values) LabelsInitJob added in v0.2.0

func (v *Values) LabelsInitJob() map[string]string

func (*Values) Namespace added in v0.2.0

func (v *Values) Namespace() string

func (*Values) NamespacedDefaultResourceName added in v0.2.0

func (v *Values) NamespacedDefaultResourceName() string

func (*Values) NamespacedResourceName added in v0.2.0

func (v *Values) NamespacedResourceName(suffix string) string

func (*Values) Verbosity added in v0.7.0

func (v *Values) Verbosity() string

Jump to

Keyboard shortcuts

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