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