nodenetworkconfig

package
v1.4.27 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NodeNetworkConfigsYAML []byte

NodeNetworkConfigsYAML embeds the CRD YAML for downstream consumers.

View Source
var Scheme = runtime.NewScheme()

Scheme is a runtime scheme containing the client-go scheme and the NodeNetworkConfig scheme.

Functions

func GetNodeNetworkConfigs

func GetNodeNetworkConfigs() (*apiextensionsv1.CustomResourceDefinition, error)

GetNodeNetworkConfigsDefinition parses the raw []byte NodeNetworkConfigs in to a CustomResourceDefinition and returns it or an unmarshalling error.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is provided to interface with the NodeNetworkConfig CRDs.

func NewClient

func NewClient(c *rest.Config) (*Client, error)

NewClient creates a new NodeNetworkConfig client from the passed k8s Config.

func (*Client) Get

Get returns the NodeNetworkConfig identified by the NamespacedName.

func (*Client) Install added in v1.4.12

func (c *Client) Install(ctx context.Context) (*v1.CustomResourceDefinition, error)

Install installs the embedded NodeNetworkConfig CRD definition in the cluster.

func (*Client) InstallOrUpdate added in v1.4.12

func (c *Client) InstallOrUpdate(ctx context.Context) (*v1.CustomResourceDefinition, error)

InstallOrUpdate installs the embedded NodeNetworkConfig CRD definition in the cluster or updates it if present.

func (*Client) PatchSpec

PatchSpec performs a server-side patch of the passed NodeNetworkConfigSpec to the NodeNetworkConfig specified by the NamespacedName.

func (*Client) SetOwnerRef

func (c *Client) SetOwnerRef(ctx context.Context, key types.NamespacedName, owner metav1.Object, fieldManager string) (*v1alpha.NodeNetworkConfig, error)

SetOwnerRef sets the owner of the NodeNetworkConfig to the given object, using HTTP Patch

func (*Client) UpdateSpec

UpdateSpec does a fetch, deepcopy, and update of the NodeNetworkConfig with the passed spec. Deprecated: UpdateSpec is deprecated and usage should migrate to PatchSpec.

Directories

Path Synopsis
api
v1alpha
Package v1alpha contains API Schema definitions for the acn v1alpha API group +kubebuilder:object:generate=true +groupName=acn.azure.com
Package v1alpha contains API Schema definitions for the acn v1alpha API group +kubebuilder:object:generate=true +groupName=acn.azure.com
Package manifests exists to allow the rendered CRD manifests to be packaged in to dependent components.
Package manifests exists to allow the rendered CRD manifests to be packaged in to dependent components.

Jump to

Keyboard shortcuts

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