v1alpha1

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the networking v1alpha1 API group +kubebuilder:object:generate=true +groupName=acn.azure.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "acn.azure.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type PodNetwork

type PodNetwork struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PodNetworkSpec   `json:"spec,omitempty"`
	Status PodNetworkStatus `json:"status,omitempty"`
}

PodNetwork is the Schema for the PodNetworks API +kubebuilder:resource:scope=Namespaced +kubebuilder:resource:shortName=pn +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type=string,priority=1,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Address Prefixes",type=string,priority=1,JSONPath=`.status.addressPrefixes` +kubebuilder:printcolumn:name="Network",type=string,priority=1,JSONPath=`.spec.vnetGUID` +kubebuilder:printcolumn:name="Subnet",type=string,priority=1,JSONPath=`.spec.subnetResourceID`

func (*PodNetwork) DeepCopy

func (in *PodNetwork) DeepCopy() *PodNetwork

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodNetwork.

func (*PodNetwork) DeepCopyInto

func (in *PodNetwork) DeepCopyInto(out *PodNetwork)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodNetwork) DeepCopyObject

func (in *PodNetwork) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PodNetworkList

type PodNetworkList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PodNetwork `json:"items"`
}

PodNetworkList contains a list of PodNetwork

func (*PodNetworkList) DeepCopy

func (in *PodNetworkList) DeepCopy() *PodNetworkList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodNetworkList.

func (*PodNetworkList) DeepCopyInto

func (in *PodNetworkList) DeepCopyInto(out *PodNetworkList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodNetworkList) DeepCopyObject

func (in *PodNetworkList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PodNetworkSpec

type PodNetworkSpec struct {
	// +kubebuilder:validation:Optional
	// customer vnet guid
	VnetGUID string `json:"vnetGUID,omitempty"`
	// customer subnet id
	SubnetResourceID string `json:"subnetResourceID,omitempty"`
}

PodNetworkSpec defines the desired state of PodNetwork

func (*PodNetworkSpec) DeepCopy

func (in *PodNetworkSpec) DeepCopy() *PodNetworkSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodNetworkSpec.

func (*PodNetworkSpec) DeepCopyInto

func (in *PodNetworkSpec) DeepCopyInto(out *PodNetworkSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodNetworkStatus

type PodNetworkStatus struct {
	// +kubebuilder:validation:Optional
	Status          Status   `json:"status,omitempty"`
	AddressPrefixes []string `json:"addressPrefixes,omitempty"`
}

PodNetworkStatus defines the observed state of PodNetwork

func (*PodNetworkStatus) DeepCopy

func (in *PodNetworkStatus) DeepCopy() *PodNetworkStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodNetworkStatus.

func (*PodNetworkStatus) DeepCopyInto

func (in *PodNetworkStatus) DeepCopyInto(out *PodNetworkStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Status

type Status string

Status indicates the status of PN +kubebuilder:validation:Enum=Ready;InUse;SubnetNotDelegated

const (
	Ready              Status = "Ready"
	InUse              Status = "InUse"
	SubnetNotDelegated Status = "SubnetNotDelegated"
)

Jump to

Keyboard shortcuts

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