Documentation ¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Copyright Contributors to the Open Cluster Management project
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BootstrapConfigMap = "cluster-info"
Functions ¶
func BoolPointer ¶
func CreateOrUpdateConfigMap ¶
func CreateOrUpdateConfigMap(client kubernetes.Interface, cm *corev1.ConfigMap) error
CreateOrUpdateConfigMap creates a ConfigMap if target resource does not exist. If the resource exists already, the function will update the resource instead.
Types ¶
type Checker ¶
Checker validates the state of the cluster to ensure clusteradm will be successfully as often as possible.
type ClusterInfoCheck ¶
type ClusterInfoCheck struct { Namespace string ResourceName string ClusterCtx string // current-context in kubeconfig ConfigPath string // kubeconfig file path Client kubernetes.Interface }
ClusterInfoCheck checks whether the target kubernetes resource exist in the cluster.
func (ClusterInfoCheck) Check ¶
func (c ClusterInfoCheck) Check() (warnings []error, errorList []error)
func (ClusterInfoCheck) Name ¶
func (c ClusterInfoCheck) Name() string
type HubApiServerCheck ¶
type HubApiServerCheck struct { ClusterCtx string // current-context in kubeconfig ConfigPath string // kubeconfig file path }
func (HubApiServerCheck) Check ¶
func (c HubApiServerCheck) Check() (warnings []error, errorList []error)
func (HubApiServerCheck) Name ¶
func (c HubApiServerCheck) Name() string
Click to show internal directories.
Click to hide internal directories.