node_servant

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 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"

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

	// RevertServantJobTemplate defines the node revert servant job in yaml format
	RevertServantJobTemplate = `` /* 925-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