Documentation
¶
Index ¶
- Constants
- func NewDeploymentMutator(values *Values) resources.Mutator[*appsv1.Deployment]
- func NewJobMutator(values *Values, deploymentSpec *v1alpha1.DeploymentSpec, ...) resources.Mutator[*v1.Job]
- type Installer
- 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) (deleted bool, err error)
- type Values
- func (v *Values) ClusterScopedDefaultResourceName() string
- func (v *Values) ClusterScopedResourceName(suffix string) string
- func (v *Values) Environment() string
- func (v *Values) EnvironmentVariables() ([]corev1.EnvVar, error)
- func (v *Values) Image() string
- func (v *Values) ImagePullSecrets() []corev1.LocalObjectReference
- func (v *Values) LabelsCommon() map[string]string
- func (v *Values) LabelsController() map[string]string
- func (v *Values) LabelsInitJob() map[string]string
- func (v *Values) Namespace() string
- func (v *Values) NamespacedDefaultResourceName() string
- func (v *Values) NamespacedResourceName(suffix string) string
- func (v *Values) Verbosity() string
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]
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 ¶
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.
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 (*Values) ClusterScopedResourceName ¶ added in v0.2.0
func (*Values) Environment ¶ added in v0.4.0
func (*Values) EnvironmentVariables ¶ added in v0.7.0
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) ImagePullSecrets ¶ added in v0.2.0
func (v *Values) ImagePullSecrets() []corev1.LocalObjectReference
func (*Values) LabelsCommon ¶ added in v0.2.0
func (*Values) LabelsController ¶ added in v0.2.0
func (*Values) LabelsInitJob ¶ added in v0.2.0
func (*Values) NamespacedDefaultResourceName ¶ added in v0.2.0
func (*Values) NamespacedResourceName ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.