Documentation
¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Index ¶
- Constants
- func AppendErrors(errsList ...[]error) []error
- func ClusterIsOffLine(conditions []metav1.Condition) bool
- func ContainsString(slice []string, s string) bool
- func EnsureCRDs(ctx context.Context, scheme *runtime.Scheme, ...) error
- func GetCAFromApiserver(ctx context.Context, ocpClient openshiftclientset.Interface, ...) ([]byte, error)
- func GetCAFromConfigMap(ctx context.Context, kubeClient kubernetes.Interface) ([]byte, error)
- func GetCAFromServiceAccount(ctx context.Context, kubeClient kubernetes.Interface) ([]byte, error)
- func GetComponentNamespace() (string, error)
- func GetKubeAPIServerAddress(ctx context.Context, openshiftClient openshiftclientset.Interface) (string, error)
- func NewMultiLineAggregate(errList []error) error
- func RemoveString(slice []string, s string) (result []string)
Constants ¶
View Source
const ( ApiserverConfigName = "cluster" OpenshiftConfigNamespace = "openshift-config" ServiceAccountNamespace = "kube-system" ServiceAccountName = "default" ConfigmapNamespace = "kube-public" CrtConfigmapName = "kube-root-ca.crt" ClusterinfoConfigmap = "cluster-info" )
Variables ¶
This section is empty.
Functions ¶
func AppendErrors ¶
appendErrors append errs, return appended result
func ClusterIsOffLine ¶
func ContainsString ¶
func EnsureCRDs ¶
func GetCAFromApiserver ¶
func GetCAFromApiserver(ctx context.Context, ocpClient openshiftclientset.Interface, kubeClient kubernetes.Interface, kubeAPIServer string) ([]byte, error)
func GetCAFromConfigMap ¶
GetCACert returns the CA cert. It searches in the kube-root-ca.crt configmap in kube-public ns.
func GetCAFromServiceAccount ¶
func GetComponentNamespace ¶
func GetKubeAPIServerAddress ¶
func NewMultiLineAggregate ¶
NewMultiLineAggregate returns an aggregate error with multi-line output
func RemoveString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.