Documentation
¶
Index ¶
- func CopySecretToRemoteCluster(ctx context.Context, cl ctrlclient.Client, srcSecretName string, ...) error
- func EnsureCRSForClusterFromObjects(ctx context.Context, crsName string, c ctrlclient.Client, ...) error
- func EnsureNamespace(ctx context.Context, c ctrlclient.Client, ns *corev1.Namespace) error
- func EnsureNamespaceWithMetadata(ctx context.Context, c ctrlclient.Client, name string, ...) error
- func EnsureNamespaceWithName(ctx context.Context, c ctrlclient.Client, name string) error
- func EnsureOwnerReferenceForSecret(ctx context.Context, cl ctrlclient.Client, secretName string, ...) error
- func RetrieveValuesTemplate(ctx context.Context, c ctrlclient.Client, configMapName, namespace string) (string, error)
- func RetrieveValuesTemplateConfigMap(ctx context.Context, c ctrlclient.Client, configMapName, namespace string) (*corev1.ConfigMap, error)
- func SecretForImageRegistryCredentials(ctx context.Context, c ctrlclient.Reader, ...) (*corev1.Secret, error)
- func SecretNameForImageRegistryCredentials(credentials *v1alpha1.RegistryCredentials) string
- func SetTLSConfigForHelmChartProxyIfNeeded(hcp *caaphv1.HelmChartProxy)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopySecretToRemoteCluster ¶
func CopySecretToRemoteCluster( ctx context.Context, cl ctrlclient.Client, srcSecretName string, dstSecretKey ctrlclient.ObjectKey, cluster *clusterv1.Cluster, ) error
CopySecretToRemoteCluster will get the Secret from srcSecretName and create it on the remote cluster, copying Data and StringData to dstSecretKey Secret.
func EnsureNamespace ¶
EnsureNamespace will create the namespace if it does not exist.
func EnsureNamespaceWithMetadata ¶
func EnsureNamespaceWithMetadata(ctx context.Context, c ctrlclient.Client, name string, labels, annotations map[string]string, ) error
EnsureNamespaceWithMetadata will create the namespace with the specified name, labels, and/or annotations, if it does not exist.
func EnsureNamespaceWithName ¶
EnsureNamespaceWithName will create the namespace with the specified name if it does not exist.
func EnsureOwnerReferenceForSecret ¶
func EnsureOwnerReferenceForSecret( ctx context.Context, cl ctrlclient.Client, secretName string, cluster *clusterv1.Cluster, ) error
EnsureOwnerReferenceForSecret will ensure that the secretName Secret has an OwnerReference of the cluster.
func RetrieveValuesTemplate ¶
func SecretForImageRegistryCredentials ¶
func SecretForImageRegistryCredentials( ctx context.Context, c ctrlclient.Reader, credentials *v1alpha1.RegistryCredentials, objectNamespace string, ) (*corev1.Secret, error)
SecretForImageRegistryCredentials returns the Secret for the given ImageRegistryCredentials. Returns nil if the secret field is empty.
func SecretNameForImageRegistryCredentials ¶
func SecretNameForImageRegistryCredentials(credentials *v1alpha1.RegistryCredentials) string
SecretNameForImageRegistryCredentials returns the name of the Secret for the given RegistryCredentials. Returns an empty string if the credentials or secret field is empty.
func SetTLSConfigForHelmChartProxyIfNeeded ¶
func SetTLSConfigForHelmChartProxyIfNeeded(hcp *caaphv1.HelmChartProxy)
Types ¶
This section is empty.