v1alpha1

package
v1.15.22 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the acn v1alpha1 API group +kubebuilder:object:generate=true +groupName=multitenancy.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: "multitenancy.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 MultitenantPodNetworkConfig

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

	Spec   MultitenantPodNetworkConfigSpec   `json:"spec,omitempty"`
	Status MultitenantPodNetworkConfigStatus `json:"status,omitempty"`
}

MultitenantPodNetworkConfig is the Schema for the multitenantpodnetworkconfigs API +kubebuilder:resource:shortName=mtpnc,scope=Namespaced +kubebuilder:subresource:status +kubebuilder:metadata:labels=managed= +kubebuilder:metadata:labels=owner= +kubebuilder:printcolumn:name="PodNetworkInstance",type=string,JSONPath=`.spec.podNetworkInstance` +kubebuilder:printcolumn:name="PodNetwork",type=string,JSONPath=`.spec.podNetwork` +kubebuilder:printcolumn:name="PodName",type=string,JSONPath=`.spec.podName` +kubebuilder:printcolumn:name="NCID",type=string,JSONPath=`.status.ncID` +kubebuilder:printcolumn:name="PrimaryIP",type=string,JSONPath=`.status.primaryIP` +kubebuilder:printcolumn:name="MacAddress",type=string,JSONPath=`.status.macAddress` +kubebuilder:printcolumn:name="GatewayIP",type=string,JSONPath=`.status.gatewayIP`

func (*MultitenantPodNetworkConfig) DeepCopy

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

func (*MultitenantPodNetworkConfig) DeepCopyInto

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

func (*MultitenantPodNetworkConfig) DeepCopyObject

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

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

type MultitenantPodNetworkConfigList

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

MultitenantPodNetworkConfigList contains a list of PodNetworkConfig

func (*MultitenantPodNetworkConfigList) DeepCopy

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

func (*MultitenantPodNetworkConfigList) DeepCopyInto

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

func (*MultitenantPodNetworkConfigList) DeepCopyObject

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

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

type MultitenantPodNetworkConfigSpec

type MultitenantPodNetworkConfigSpec struct {
	// name of PNI object from requesting cx pod
	// +kubebuilder:validation:Optional
	PodNetworkInstance string `json:"podNetworkInstance,omitempty"`
	// name of PN object from requesting cx pod
	PodNetwork string `json:"podNetwork"`
	// name of the requesting cx pod
	PodName string `json:"podName"`
}

MultitenantPodNetworkConfigSpec defines the desired state of PodNetworkConfig

func (*MultitenantPodNetworkConfigSpec) DeepCopy

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

func (*MultitenantPodNetworkConfigSpec) DeepCopyInto

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

type MultitenantPodNetworkConfigStatus

type MultitenantPodNetworkConfigStatus struct {
	// network container id
	NCID string `json:"ncID,omitempty"`
	// ip allocated to the network container
	PrimaryIP string `json:"primaryIP,omitempty"`
	// maps to the NIC to be injected for the network container
	MacAddress string `json:"macAddress,omitempty"`
	// Gateway IP
	GatewayIP string `json:"gatewayIP,omitempty"`
}

MultitenantPodNetworkConfigStatus defines the observed state of PodNetworkConfig

func (*MultitenantPodNetworkConfigStatus) DeepCopy

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

func (*MultitenantPodNetworkConfigStatus) DeepCopyInto

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

type NodeInfo

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

	Spec NodeInfoSpec `json:"spec,omitempty"`
}

NodeInfo is the Schema for the NodeInfo API +kubebuilder:resource:shortName=ni,scope=Cluster,path=nodeinfo +kubebuilder:printcolumn:name="VMUniqueID",type=string,priority=0,JSONPath=`.spec.vmUniqueID`

func (*NodeInfo) DeepCopy

func (in *NodeInfo) DeepCopy() *NodeInfo

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

func (*NodeInfo) DeepCopyInto

func (in *NodeInfo) DeepCopyInto(out *NodeInfo)

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

func (*NodeInfo) DeepCopyObject

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

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

type NodeInfoList

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

NodeInfoList contains a list of NodeInfo

func (*NodeInfoList) DeepCopy

func (in *NodeInfoList) DeepCopy() *NodeInfoList

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

func (*NodeInfoList) DeepCopyInto

func (in *NodeInfoList) DeepCopyInto(out *NodeInfoList)

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

func (*NodeInfoList) DeepCopyObject

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

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

type NodeInfoSpec

type NodeInfoSpec struct {
	// +kubebuilder:validation:Optional
	VMUniqueID string `json:"vmUniqueID,omitempty"`
}

NodeInfoSpec defines the desired state of NodeInfo

func (*NodeInfoSpec) DeepCopy

func (in *NodeInfoSpec) DeepCopy() *NodeInfoSpec

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

func (*NodeInfoSpec) DeepCopyInto

func (in *NodeInfoSpec) DeepCopyInto(out *NodeInfoSpec)

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

type PNIStatus added in v1.5.22

type PNIStatus string

PNIStatus indicates the status of PNI +kubebuilder:validation:Enum=Ready;CreateReservationSetError;PodNetworkNotReady;InsufficientIPAddressesOnSubnet

const (
	PNIStatusReady                           PNIStatus = "Ready"
	PNIStatusCreateReservationSetError       PNIStatus = "CreateReservationSetError"
	PNIStatusPodNetworkNotReady              PNIStatus = "PodNetworkNotReady"
	PNIStatusInsufficientIPAddressesOnSubnet PNIStatus = "InsufficientIPAddressesOnSubnet"
)

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:shortName=pn,scope=Cluster +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` +kubebuilder:printcolumn:name="SubnetGUID",type=string,priority=1,JSONPath=`.spec.subnetGUID`

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 PodNetworkInstance

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

	Spec   PodNetworkInstanceSpec   `json:"spec,omitempty"`
	Status PodNetworkInstanceStatus `json:"status,omitempty"`
}

PodNetworkInstance is the Schema for the PodNetworkInstances API +kubebuilder:resource:shortName=pni,scope=Namespaced +kubebuilder:subresource:status +kubebuilder:metadata:labels=managed= +kubebuilder:metadata:labels=owner= +kubebuilder:printcolumn:name="Pod IPs",type=string,priority=1,JSONPath=`.status.podIPAddresses` +kubebuilder:printcolumn:name="PodNetwork",type=string,priority=1,JSONPath=`.spec.podNetwork` +kubebuilder:printcolumn:name="PodIPReservationSize",type=string,priority=1,JSONPath=`.spec.podIPReservationSize`

func (*PodNetworkInstance) DeepCopy

func (in *PodNetworkInstance) DeepCopy() *PodNetworkInstance

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

func (*PodNetworkInstance) DeepCopyInto

func (in *PodNetworkInstance) DeepCopyInto(out *PodNetworkInstance)

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

func (*PodNetworkInstance) DeepCopyObject

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

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

type PodNetworkInstanceList

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

PodNetworkInstanceList contains a list of PodNetworkInstance

func (*PodNetworkInstanceList) DeepCopy

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

func (*PodNetworkInstanceList) DeepCopyInto

func (in *PodNetworkInstanceList) DeepCopyInto(out *PodNetworkInstanceList)

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

func (*PodNetworkInstanceList) DeepCopyObject

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

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

type PodNetworkInstanceSpec

type PodNetworkInstanceSpec struct {
	// pod network resource object name
	PodNetwork string `json:"podnetwork"`
	// number of backend IP address to reserve for running pods
	// +kubebuilder:default=0
	PodIPReservationSize int `json:"podIPReservationSize"`
}

PodNetworkInstanceSpec defines the desired state of PodNetworkInstance

func (*PodNetworkInstanceSpec) DeepCopy

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

func (*PodNetworkInstanceSpec) DeepCopyInto

func (in *PodNetworkInstanceSpec) DeepCopyInto(out *PodNetworkInstanceSpec)

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

type PodNetworkInstanceStatus

type PodNetworkInstanceStatus struct {
	PodIPAddresses []string  `json:"podIPAddresses,omitempty"`
	Status         PNIStatus `json:"status,omitempty"`
}

PodNetworkInstanceStatus defines the observed state of PodNetworkInstance

func (*PodNetworkInstanceStatus) DeepCopy

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

func (*PodNetworkInstanceStatus) DeepCopyInto

func (in *PodNetworkInstanceStatus) DeepCopyInto(out *PodNetworkInstanceStatus)

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

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"`
	// customer subnet guid
	SubnetGUID string `json:"subnetGUID,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;SubnetDelegatedToDifferentService

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

Jump to

Keyboard shortcuts

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