nodesconfig

package
v0.0.0-...-c44aa52 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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 Pull

func Pull(apiClient *clients.Settings, nodesConfigObjName string) (*Builder, error)

Pull retrieves an existing nodesConfig object from the cluster.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given nodesConfig exists.

func (*Builder) Get

func (builder *Builder) Get() (*configV1.Node, error)

Get fetches existing nodesConfig from cluster.

func (*Builder) GetCGroupMode

func (builder *Builder) GetCGroupMode() (configV1.CgroupMode, error)

GetCGroupMode fetches nodesConfig cgroupMode.

func (*Builder) Update

func (builder *Builder) Update() (*Builder, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL