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.
Click to show internal directories.
Click to hide internal directories.