Documentation ¶
Index ¶
- Variables
- func GetNodeNetworkConfigs() (*apiextensionsv1.CustomResourceDefinition, error)
- type Client
- func (c *Client) Get(ctx context.Context, key types.NamespacedName) (*v1alpha.NodeNetworkConfig, error)
- func (c *Client) PatchSpec(ctx context.Context, key types.NamespacedName, ...) (*v1alpha.NodeNetworkConfig, error)
- func (c *Client) SetOwnerRef(ctx context.Context, key types.NamespacedName, owner metav1.Object, ...) (*v1alpha.NodeNetworkConfig, error)
- func (c *Client) UpdateSpec(ctx context.Context, key types.NamespacedName, ...) (*v1alpha.NodeNetworkConfig, error)
- type Installer
Constants ¶
This section is empty.
Variables ¶
var NodeNetworkConfigsYAML []byte
NodeNetworkConfigsYAML embeds the CRD YAML for downstream consumers.
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 provides methods to interact with instances of the NodeNetworkConfig custom resource.
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, key types.NamespacedName) (*v1alpha.NodeNetworkConfig, error)
Get returns the NodeNetworkConfig identified by the NamespacedName.
func (*Client) PatchSpec ¶
func (c *Client) PatchSpec(ctx context.Context, key types.NamespacedName, spec *v1alpha.NodeNetworkConfigSpec, fieldManager string) (*v1alpha.NodeNetworkConfig, error)
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 ¶
func (c *Client) UpdateSpec(ctx context.Context, key types.NamespacedName, spec *v1alpha.NodeNetworkConfigSpec) (*v1alpha.NodeNetworkConfig, error)
UpdateSpec does a fetch, deepcopy, and update of the NodeNetworkConfig with the passed spec. Deprecated: UpdateSpec is deprecated and usage should migrate to PatchSpec.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer provides methods to manage the lifecycle of the NodeNetworkConfig resource definition.
func (*Installer) Install ¶
Install installs the embedded NodeNetworkConfig CRD definition in the cluster.
func (*Installer) InstallOrUpdate ¶
InstallOrUpdate installs the embedded NodeNetworkConfig CRD definition in the cluster or updates it if present.
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. |