deploy

package
v0.0.0-...-6402844 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NfdController nfd deployment name.
	NfdController = "nfd-controller-manager"
	// NfdMaster nfd cr deployment name.
	NfdMaster = "nfd-master"
)
View Source
const (
	// OperatorGroup enum value type.
	OperatorGroup builderType = iota
	// NodeFeatureDiscovery enum value type.
	NodeFeatureDiscovery
	// Subscription enum value type.
	Subscription
	// ClusterVersion enum value type.
	ClusterVersion
	// NameSpace enum value type.
	NameSpace
)

Variables

This section is empty.

Functions

func DeployNfdWithCustomConfig

func DeployNfdWithCustomConfig(namespace string, enableTopology bool, config string, image string) error

DeployNfdWithCustomConfig deploys nfd worker with custom config.

Types

type NfdAPIResource

type NfdAPIResource struct {
	APIClients             *clients.Settings
	Namespace              string
	OperatorGroupName      string
	SubName                string
	CatalogSource          string
	CatalogSourceNamespace string
	PackageName            string
	Channel                string
}

NfdAPIResource object that represents NodeFeatureDiscovery resource with API client.

func NewNfdAPIResource

func NewNfdAPIResource(
	apiClient *clients.Settings,
	namespace,
	operatorGroupName,
	subName,
	catalogSource,
	catalogSourceNamespace,
	packageName,
	channel string) *NfdAPIResource

NewNfdAPIResource create NodeFeatureDiscovery api client that contains all related field for the resource.

func (*NfdAPIResource) DeleteNFDCR

func (n *NfdAPIResource) DeleteNFDCR(nodeFeatureName string) error

DeleteNFDCR removes node feature discovery worker.

func (*NfdAPIResource) DeployNfd

func (n *NfdAPIResource) DeployNfd(waitTime int, addTopology bool, nfdInstanceImage string) error

DeployNfd deploy NodeFeatureDiscovery operator and cr return error if it failed.

func (*NfdAPIResource) IsDeploymentReady

func (n *NfdAPIResource) IsDeploymentReady(waitTime time.Duration,
	deployment string) (bool, error)

IsDeploymentReady check and wait for nfd deployment status.

func (*NfdAPIResource) UndeployNfd

func (n *NfdAPIResource) UndeployNfd(nodeFeatureName string) error

UndeployNfd remove nfd completely instance name.

Jump to

Keyboard shortcuts

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