preflight

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 10 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
	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 []string, 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 []string, errorList []error)

func (HubApiServerCheck) Name

func (c HubApiServerCheck) Name() string

Jump to

Keyboard shortcuts

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