Documentation ¶
Index ¶
- Constants
- func DeployNfdWithCustomConfig(namespace string, enableTopology bool, config string, image string) error
- type NfdAPIResource
- func (n *NfdAPIResource) DeleteNFDCR(nodeFeatureName string) error
- func (n *NfdAPIResource) DeployNfd(waitTime int, addTopology bool, nfdInstanceImage string) error
- func (n *NfdAPIResource) IsDeploymentReady(waitTime time.Duration, deployment string) (bool, error)
- func (n *NfdAPIResource) UndeployNfd(nodeFeatureName string) error
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 ¶
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 ¶
IsDeploymentReady check and wait for nfd deployment status.
func (*NfdAPIResource) UndeployNfd ¶
func (n *NfdAPIResource) UndeployNfd(nodeFeatureName string) error
UndeployNfd remove nfd completely instance name.
Click to show internal directories.
Click to hide internal directories.