helpers

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL