Documentation
¶
Index ¶
- func ApplyConfigMap(ctx context.Context, client coreclientv1.ConfigMapsGetter, ...) (*corev1.ConfigMap, bool, error)
- func ApplySecret(ctx context.Context, client coreclientv1.SecretsGetter, ...) (*corev1.Secret, bool, error)
- func GetAPIServer(kubeClient kubernetes.Interface) (string, error)
- func GetCACert(kubeClient kubernetes.Interface) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfigMap ¶
func ApplyConfigMap(ctx context.Context, client coreclientv1.ConfigMapsGetter, required *corev1.ConfigMap) (*corev1.ConfigMap, bool, error)
ApplyConfigMap merges objectmeta, requires data, ref from openshift/library-go
func ApplySecret ¶
func ApplySecret(ctx context.Context, client coreclientv1.SecretsGetter, requiredInput *corev1.Secret) (*corev1.Secret, bool, error)
ApplySecret merges objectmeta, requires data. ref from openshift/library-go
func GetAPIServer ¶
func GetAPIServer(kubeClient kubernetes.Interface) (string, error)
GetAPIServer gets the api server url
func GetCACert ¶
func GetCACert(kubeClient kubernetes.Interface) ([]byte, error)
GetCACert returns the CA cert. First by looking in the cluster-info configmap of the kube-public ns and if not found, it secondly searches in the kube-root-ca.crt configmap of the kube-public ns and if also not found, it finally return empty value with no error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.