node_servant

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ConversionJobNameBase is the unified prefix of the node conversion Job name.
	ConversionJobNameBase = "node-servant-conversion"
	// ConversionNodeLabelKey is the label key used to correlate conversion Jobs with Nodes.
	ConversionNodeLabelKey = "openyurt.io/conversion-node"
	// DefaultConversionJobBackoffLimit is the proposal-aligned retry budget for conversion Jobs.
	DefaultConversionJobBackoffLimit = 3
	// DefaultConversionJobTTLSecondsAfterFinished keeps finished Jobs long enough for diagnosis.
	DefaultConversionJobTTLSecondsAfterFinished = 7200
	// DefaultConversionJobNamespace is the namespace used by node conversion Jobs.
	DefaultConversionJobNamespace = "kube-system"

	// ServantJobTemplate defines the unified node-servant Job in yaml format.
	ServantJobTemplate = `` /* 1162-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