node_servant

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// ConvertJobNameBase is the prefix of the convert ServantJob name
	ConvertJobNameBase = "node-servant-convert"
	// RevertJobNameBase is the prefix of the revert ServantJob name
	RevertJobNameBase = "node-servant-revert"

	//ConvertPreflightJobNameBase is the prefix of the preflight-convert ServantJob name
	ConvertPreflightJobNameBase = "node-servant-preflight-convert"

	// ConfigControlPlaneJobNameBase is the prefix of the config control-plane ServantJob name
	ConfigControlPlaneJobNameBase = "config-control-plane"

	// ConvertServantJobTemplate defines the node convert servant job in yaml format
	ConvertServantJobTemplate = `` /* 1276-byte string literal not displayed */

	// RevertServantJobTemplate defines the node revert servant job in yaml format
	RevertServantJobTemplate = `` /* 925-byte string literal not displayed */

	// ConvertPreflightJobTemplate defines the node convert preflight checks servant job in yaml format
	ConvertPreflightJobTemplate = `` /* 1030-byte string literal not displayed */

	// ConfigControlPlaneJobTemplate defines the node-servant config control-plane for configuring kube-apiserver and kube-controller-manager
	ConfigControlPlaneJobTemplate = `` /* 694-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func RenderNodeServantJob

func RenderNodeServantJob(action string, renderCtx map[string]string, nodeName string) (*batchv1.Job, error)

RenderNodeServantJob return k8s job to start k8s job to run convert/revert on specific node

func YamlToObject

func YamlToObject(yamlContent []byte) (k8sruntime.Object, error)

YamlToObject deserializes object in yaml format to a runtime.Object

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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