Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APIGroup represents nodes.config api group. APIGroup = "config.openshift.io" // APIVersion represents version of nodes.config api. APIVersion = "v1" // APIKind represents nodes.config api kind. APIKind = "Node" )
Variables ¶
This section is empty.
Functions ¶
func GetNodesConfigIoGVR ¶
func GetNodesConfigIoGVR() schema.GroupVersionResource
GetNodesConfigIoGVR returns nodesConfig's GroupVersionResource which could be used for Clean function.
Types ¶
type Builder ¶
type Builder struct { // nodesConfig definition, used to create the nodesConfig object. Definition *configV1.Node // Created nodesConfig object. Object *configV1.Node // contains filtered or unexported fields }
Builder provides a struct for nodesConfig object from the cluster and a nodesConfig definition.
func (*Builder) GetCGroupMode ¶
func (builder *Builder) GetCGroupMode() (configV1.CgroupMode, error)
GetCGroupMode fetches nodesConfig cgroupMode.
func (*Builder) Update ¶
Update renovates the nodesConfig in the cluster and stores the created object in struct.
func (*Builder) WithCGroupMode ¶
func (builder *Builder) WithCGroupMode(expectedCGroupMode configV1.CgroupMode) *Builder
WithCGroupMode sets the nodesConfig operator's cgroupMode.
Click to show internal directories.
Click to hide internal directories.