Documentation ¶
Index ¶
- Variables
- func GetClusterSubnetStates() (*apiextensionsv1.CustomResourceDefinition, error)
- type Client
- func (c *Client) Get(ctx context.Context, key types.NamespacedName) (*v1alpha1.ClusterSubnetState, error)
- func (c *Client) Install(ctx context.Context) (*v1.CustomResourceDefinition, error)
- func (c *Client) InstallOrUpdate(ctx context.Context) (*v1.CustomResourceDefinition, error)
- func (c *Client) SetOwnerRef(ctx context.Context, key types.NamespacedName, owner metav1.Object, ...) (*v1alpha1.ClusterSubnetState, error)
Constants ¶
This section is empty.
Variables ¶
var ClusterSubnetStatesYAML []byte
ClusterSubnetStatesYAML embeds the CRD YAML for downstream consumers.
var Scheme = runtime.NewScheme()
Scheme is a runtime scheme containing the client-go scheme and the ClusterSubnetStatus scheme.
Functions ¶
func GetClusterSubnetStates ¶
func GetClusterSubnetStates() (*apiextensionsv1.CustomResourceDefinition, error)
GetClusterSubnetStatussDefinition parses the raw []byte ClusterSubnetStatuss 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 ClusterSubnetState CRDs.
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, key types.NamespacedName) (*v1alpha1.ClusterSubnetState, error)
Get returns the ClusterSubnetState identified by the NamespacedName.
func (*Client) Install ¶ added in v1.4.30
Install installs the embedded ClusterSubnetState CRD definition in the cluster.
func (*Client) InstallOrUpdate ¶ added in v1.4.30
InstallOrUpdate installs the embedded ClusterSubnetState CRD definition in the cluster or updates it if present.
func (*Client) SetOwnerRef ¶ added in v1.4.30
func (c *Client) SetOwnerRef(ctx context.Context, key types.NamespacedName, owner metav1.Object, fieldManager string) (*v1alpha1.ClusterSubnetState, error)
SetOwnerRef sets the owner of the ClusterSubnetStatus to the given object, using HTTP Patch
Directories ¶
Path | Synopsis |
---|---|
api
|
|
v1alpha1
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. |