preflight

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 BoolPointer(value bool) *bool

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

Jump to

Keyboard shortcuts

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