Documentation
¶
Index ¶
- Constants
- func ClusterManager(m *v1alpha1.MultiClusterEngine, overrides map[string]string) *unstructured.Unstructured
- func GetClusterManager(client client.Client) (*unstructured.Unstructured, error)
- func Image(overrides map[string]string) string
- func PlacementImage(overrides map[string]string) string
- func RegistrationImage(overrides map[string]string) string
- func ValidateDeployment(m *v1alpha1.MultiClusterEngine, overrides map[string]string, ...) (*appsv1.Deployment, bool)
- func ValidateSpec(found *unstructured.Unstructured, want *unstructured.Unstructured) (*unstructured.Unstructured, bool)
- func WorkImage(overrides map[string]string) string
Constants ¶
const ImageKey = "multicloud_manager"
ImageKey used by multicoud manager deployments
const PlacementImageKey = "placement"
PlacementImageKey used by placement deployments
const RegistrationImageKey = "registration"
RegistrationImageKey used by registration deployments
const ServiceAccount = "ocm-foundation-sa"
ServiceAccount used by ocm deployments
const WorkImageKey = "work"
WorkImageKey used by work deployments
Variables ¶
This section is empty.
Functions ¶
func ClusterManager ¶
func ClusterManager(m *v1alpha1.MultiClusterEngine, overrides map[string]string) *unstructured.Unstructured
func GetClusterManager ¶
func GetClusterManager(client client.Client) (*unstructured.Unstructured, error)
GetClusterManager returns the cluster-manager instance found on the cluster
func RegistrationImage ¶
RegistrationImage ...
func ValidateDeployment ¶
func ValidateDeployment(m *v1alpha1.MultiClusterEngine, overrides map[string]string, expected, dep *appsv1.Deployment) (*appsv1.Deployment, bool)
ValidateDeployment returns a deep copy of the deployment with the desired spec based on the MultiClusterEngine spec. Returns true if an update is needed to reconcile differences with the current spec.
func ValidateSpec ¶
func ValidateSpec(found *unstructured.Unstructured, want *unstructured.Unstructured) (*unstructured.Unstructured, bool)
ValidateSpec returns true if an update is needed to reconcile differences with the current spec. If an update is needed it returns the object with the new spec to update with.
Types ¶
This section is empty.