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 ClusterInfoCheck ¶
type ClusterInfoCheck struct { Namespace string ResourceName string Config clientcmd.ClientConfig Client kubernetes.Interface }
ClusterInfoCheck checks whether the target kubernetes resource exist in the cluster.
func (ClusterInfoCheck) Check ¶
func (c ClusterInfoCheck) Check() (warnings []string, errorList []error)
func (ClusterInfoCheck) Name ¶
func (c ClusterInfoCheck) Name() string
type HubApiServerCheck ¶
type HubApiServerCheck struct {
Config clientcmd.ClientConfig
}
func (HubApiServerCheck) Check ¶
func (c HubApiServerCheck) Check() (warnings []string, errorList []error)
func (HubApiServerCheck) Name ¶
func (c HubApiServerCheck) Name() string
type SingletonControlplaneCheck ¶ added in v0.7.0
type SingletonControlplaneCheck struct {
ControlplaneName string
}
func (SingletonControlplaneCheck) Check ¶ added in v0.7.0
func (c SingletonControlplaneCheck) Check() (warnings []string, errorList []error)
func (SingletonControlplaneCheck) Name ¶ added in v0.7.0
func (c SingletonControlplaneCheck) Name() string
Click to show internal directories.
Click to hide internal directories.