Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HelmReleaseName is the name of the helmRelease object created for the controller. HelmReleaseName = "sp-ocm-k8s-toolkit" // OCIRepositoryName is the name of the oci repository object pointing to the helm chart of the controller. OCIRepositoryName = "sp-ocm-k8s-toolkit" // OcmSystemNamespace is the default namespace on the target cluster to use to install the ocm-k8s-toolkit controller into. OcmSystemNamespace = "ocm-k8s-toolkit-system" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelmManagerValues ¶ added in v0.1.1
type HelmManagerValues struct {
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
}
HelmManagerValues mirrors the `manager` block of the ocm-k8s-toolkit chart values.
type HelmValues ¶ added in v0.1.1
type HelmValues struct {
Manager HelmManagerValues `json:"manager"`
}
HelmValues captures the subset of ocm-k8s-toolkit chart values the provider needs to act on during reconciliation. Unknown fields are preserved in the raw values passed through to the HelmRelease; this struct is only used to read, not rewrite.
func ExtractHelmValues ¶ added in v0.1.1
func ExtractHelmValues(values *apiextensionsv1.JSON) (*HelmValues, error)
ExtractHelmValues parses the relevant image pull secret refs out of a ProviderConfig's raw Helm values. Nil and empty inputs yield a zero-value struct.
type OCMReconciler ¶
type OCMReconciler struct {
// OnboardingCluster is the cluster where this controller watches OCM resources and reacts to their changes.
OnboardingCluster *clusters.Cluster
// PlatformCluster is the cluster where this controller is deployed and configured.
PlatformCluster *clusters.Cluster
// PodNamespace is the namespace where this controller is deployed in.
PodNamespace string
}
OCMReconciler reconciles a OCM object
func (*OCMReconciler) CreateOrUpdate ¶
func (r *OCMReconciler) CreateOrUpdate(ctx context.Context, svcobj *apiv1alpha1.OCM, providerConfig *apiv1alpha1.ProviderConfig, clusterCtx spruntime.ClusterContext) (ctrl.Result, error)
CreateOrUpdate is called on every add or update event
func (*OCMReconciler) Delete ¶
func (r *OCMReconciler) Delete(ctx context.Context, obj *apiv1alpha1.OCM, providerConfig *apiv1alpha1.ProviderConfig, _ spruntime.ClusterContext) (ctrl.Result, error)
Delete is called on every delete event
Click to show internal directories.
Click to hide internal directories.