v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 22

Documentation

Overview

+kubebuilder:object:generate=true +groupName=nsx.vmware.com

+kubebuilder:object:generate=true

+kubebuilder:object:generate=true

Index

Constants

View Source
const (
	NSXServiceAccountPhaseRealized   NSXServiceAccountPhase = "realized"
	NSXServiceAccountPhaseInProgress NSXServiceAccountPhase = "inProgress"
	NSXServiceAccountPhaseFailed     NSXServiceAccountPhase = "failed"

	ConditionTypeRealized             string = "Realized"
	ConditionReasonRealizationSuccess string = "RealizationSuccess"
	ConditionReasonRealizationError   string = "RealizationError"
)
View Source
const (
	AccessModePublic  string = "Public"
	AccessModePrivate string = "Private"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nsx.vmware.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
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type AccessMode

type AccessMode string

type AdvancedConfig

type AdvancedConfig struct {
	// StaticIPAllocation configuration for subnet ports with VIF attachment.
	StaticIPAllocation StaticIPAllocation `json:"staticIPAllocation,omitempty"`
}

AdvancedConfig is Subnet advanced configuration.

func (*AdvancedConfig) DeepCopy

func (in *AdvancedConfig) DeepCopy() *AdvancedConfig

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

func (*AdvancedConfig) DeepCopyInto

func (in *AdvancedConfig) DeepCopyInto(out *AdvancedConfig)

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

type Condition

type Condition struct {
	// Type defines condition type.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// Last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed. If that is not known, then using the time when
	// the API field changed is acceptable.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Reason shows a brief reason of condition.
	Reason string `json:"reason,omitempty"`
	// Message shows a human-readable message about condition.
	Message string `json:"message,omitempty"`
}

Condition defines condition of custom resource.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string
const (
	Ready ConditionType = "Ready"
)

type DHCPConfig

type DHCPConfig struct {
	// +kubebuilder:default:=false
	EnableDHCP bool `json:"enableDHCP,omitempty"`
	// DHCPRelayConfigPath is policy path of DHCP-relay-config.
	DHCPRelayConfigPath string `json:"dhcpRelayConfigPath,omitempty"`
	// DHCPV4PoolSize IPs in % to be reserved for DHCP ranges.
	// By default, 80% of IPv4 IPs will be reserved for DHCP.
	// Configure 0 if no pool is required.
	// +kubebuilder:default:=80
	// +kubebuilder:validation:Maximum:=100
	// +kubebuilder:validation:Minimum:=0
	DHCPV4PoolSize int `json:"dhcpV4PoolSize,omitempty"`
	// DHCPV6PoolSize number of IPs to be reserved for DHCP ranges.
	// By default, 2000 IPv6 IPs will be reserved for DHCP.
	// +kubebuilder:default:=2000
	DHCPV6PoolSize  int             `json:"dhcpV6PoolSize,omitempty"`
	DNSClientConfig DNSClientConfig `json:"dnsClientConfig,omitempty"`
}

DHCPConfig is DHCP configuration.

func (*DHCPConfig) DeepCopy

func (in *DHCPConfig) DeepCopy() *DHCPConfig

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

func (*DHCPConfig) DeepCopyInto

func (in *DHCPConfig) DeepCopyInto(out *DHCPConfig)

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

type DNSClientConfig

type DNSClientConfig struct {
	DNSServersIPs []string `json:"dnsServersIPs,omitempty"`
}

DNSClientConfig holds DNS configurations.

func (*DNSClientConfig) DeepCopy

func (in *DNSClientConfig) DeepCopy() *DNSClientConfig

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

func (*DNSClientConfig) DeepCopyInto

func (in *DNSClientConfig) DeepCopyInto(out *DNSClientConfig)

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

type IPBlock

type IPBlock struct {
	// CIDR is a string representing the IP Block.
	// A valid example is "192.168.1.1/24".
	CIDR string `json:"cidr"`
}

IPBlock describes a particular CIDR that is allowed or denied to/from the workloads matched by an AppliedTo.

func (*IPBlock) DeepCopy

func (in *IPBlock) DeepCopy() *IPBlock

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

func (*IPBlock) DeepCopyInto

func (in *IPBlock) DeepCopyInto(out *IPBlock)

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

type IPPool

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

	Spec   IPPoolSpec   `json:"spec"`
	Status IPPoolStatus `json:"status,omitempty"`
}

IPPool is the Schema for the ippools API.

func (*IPPool) DeepCopy

func (in *IPPool) DeepCopy() *IPPool

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

func (*IPPool) DeepCopyInto

func (in *IPPool) DeepCopyInto(out *IPPool)

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

func (*IPPool) DeepCopyObject

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

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

type IPPoolList

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

IPPoolList contains a list of IPPool.

func (*IPPoolList) DeepCopy

func (in *IPPoolList) DeepCopy() *IPPoolList

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

func (*IPPoolList) DeepCopyInto

func (in *IPPoolList) DeepCopyInto(out *IPPoolList)

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

func (*IPPoolList) DeepCopyObject

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

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

type IPPoolSpec

type IPPoolSpec struct {
	// Subnets defines set of subnets need to be allocated.
	// +optional
	Subnets []SubnetRequest `json:"subnets"`
}

IPPoolSpec defines the desired state of IPPool.

func (*IPPoolSpec) DeepCopy

func (in *IPPoolSpec) DeepCopy() *IPPoolSpec

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

func (*IPPoolSpec) DeepCopyInto

func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec)

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

type IPPoolStatus

type IPPoolStatus struct {
	// Subnets defines subnets allocation result.
	Subnets []SubnetResult `json:"subnets"`
	// Conditions defines current state of the IPPool.
	Conditions []Condition `json:"conditions"`
}

IPPoolStatus defines the observed state of IPPool.

func (*IPPoolStatus) DeepCopy

func (in *IPPoolStatus) DeepCopy() *IPPoolStatus

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

func (*IPPoolStatus) DeepCopyInto

func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus)

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

type NSXProxyEndpoint

type NSXProxyEndpoint struct {
	Addresses []NSXProxyEndpointAddress `json:"addresses,omitempty"`
	Ports     []NSXProxyEndpointPort    `json:"ports,omitempty"`
}

func (*NSXProxyEndpoint) DeepCopy

func (in *NSXProxyEndpoint) DeepCopy() *NSXProxyEndpoint

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

func (*NSXProxyEndpoint) DeepCopyInto

func (in *NSXProxyEndpoint) DeepCopyInto(out *NSXProxyEndpoint)

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

type NSXProxyEndpointAddress

type NSXProxyEndpointAddress struct {
	Hostname string `json:"hostname,omitempty"`
	//+kubebuilder:validation:Format=ip
	IP string `json:"ip,omitempty"`
}

func (*NSXProxyEndpointAddress) DeepCopy

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

func (*NSXProxyEndpointAddress) DeepCopyInto

func (in *NSXProxyEndpointAddress) DeepCopyInto(out *NSXProxyEndpointAddress)

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

type NSXProxyEndpointPort

type NSXProxyEndpointPort struct {
	Name     string           `json:"name,omitempty"`
	Port     uint16           `json:"port,omitempty"`
	Protocol NSXProxyProtocol `json:"protocol,omitempty"`
}

func (*NSXProxyEndpointPort) DeepCopy

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

func (*NSXProxyEndpointPort) DeepCopyInto

func (in *NSXProxyEndpointPort) DeepCopyInto(out *NSXProxyEndpointPort)

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

type NSXProxyProtocol

type NSXProxyProtocol string
const (
	NSXProxyProtocolTCP NSXProxyProtocol = "TCP"
)

type NSXSecret

type NSXSecret struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*NSXSecret) DeepCopy

func (in *NSXSecret) DeepCopy() *NSXSecret

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

func (*NSXSecret) DeepCopyInto

func (in *NSXSecret) DeepCopyInto(out *NSXSecret)

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

type NSXServiceAccount

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

	Spec   NSXServiceAccountSpec   `json:"spec,omitempty"`
	Status NSXServiceAccountStatus `json:"status,omitempty"`
}

NSXServiceAccount is the Schema for the nsxserviceaccounts API

func (*NSXServiceAccount) DeepCopy

func (in *NSXServiceAccount) DeepCopy() *NSXServiceAccount

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

func (*NSXServiceAccount) DeepCopyInto

func (in *NSXServiceAccount) DeepCopyInto(out *NSXServiceAccount)

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

func (*NSXServiceAccount) DeepCopyObject

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

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

type NSXServiceAccountList

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

NSXServiceAccountList contains a list of NSXServiceAccount

func (*NSXServiceAccountList) DeepCopy

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

func (*NSXServiceAccountList) DeepCopyInto

func (in *NSXServiceAccountList) DeepCopyInto(out *NSXServiceAccountList)

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

func (*NSXServiceAccountList) DeepCopyObject

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

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

type NSXServiceAccountPhase

type NSXServiceAccountPhase string

type NSXServiceAccountSpec

type NSXServiceAccountSpec struct {
	VPCName string `json:"vpcName,omitempty"`
}

NSXServiceAccountSpec defines the desired state of NSXServiceAccount

func (*NSXServiceAccountSpec) DeepCopy

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

func (*NSXServiceAccountSpec) DeepCopyInto

func (in *NSXServiceAccountSpec) DeepCopyInto(out *NSXServiceAccountSpec)

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

type NSXServiceAccountStatus

type NSXServiceAccountStatus struct {
	// Deprecated: Use Conditions instead.
	// +kubebuilder:deprecatedversion:warning="nsx.vmware.com/v1alpha1 Phase is deprecated"
	Phase NSXServiceAccountPhase `json:"phase,omitempty"`
	// Deprecated: Use Conditions instead.
	// +kubebuilder:deprecatedversion:warning="nsx.vmware.com/v1alpha1 Reason is deprecated"
	Reason string `json:"reason,omitempty"`
	// Represents the realization status of a NSXServiceAccount's current state.
	// Known .status.conditions.type is: "Realized"
	Conditions     []metav1.Condition `json:"conditions,omitempty"`
	VPCPath        string             `json:"vpcPath,omitempty"`
	NSXManagers    []string           `json:"nsxManagers,omitempty"`
	ProxyEndpoints NSXProxyEndpoint   `json:"proxyEndpoints,omitempty"`
	ClusterID      string             `json:"clusterID,omitempty"`
	ClusterName    string             `json:"clusterName,omitempty"`
	Secrets        []NSXSecret        `json:"secrets,omitempty"`
}

NSXServiceAccountStatus defines the observed state of NSXServiceAccount

func (*NSXServiceAccountStatus) DeepCopy

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

func (*NSXServiceAccountStatus) DeepCopyInto

func (in *NSXServiceAccountStatus) DeepCopyInto(out *NSXServiceAccountStatus)

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

type NextHop

type NextHop struct {
	// Next hop gateway IP address.
	// +kubebuilder:validation:Format=ip
	IPAddress string `json:"ipAddress"`
}

NextHop defines next hop configuration for network.

func (*NextHop) DeepCopy

func (in *NextHop) DeepCopy() *NextHop

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

func (*NextHop) DeepCopyInto

func (in *NextHop) DeepCopyInto(out *NextHop)

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

type RuleAction

type RuleAction string

RuleAction describes the action to be applied on traffic matching a rule.

const (
	// RuleActionAllow describes that the traffic matching the rule must be allowed.
	RuleActionAllow RuleAction = "Allow"
	// RuleActionDrop describes that the traffic matching the rule must be dropped.
	RuleActionDrop RuleAction = "Drop"
	// RuleActionReject indicates that the traffic matching the rule must be rejected and the
	// client will receive a response.
	RuleActionReject RuleAction = "Reject"
)

type RuleDirection

type RuleDirection string

RuleDirection specifies the direction of traffic.

const (
	// RuleDirectionIn specifies that the direction of traffic must be ingress, equivalent to "Ingress".
	RuleDirectionIn RuleDirection = "In"
	// RuleDirectionIngress specifies that the direction of traffic must be ingress, equivalent to "In".
	RuleDirectionIngress RuleDirection = "Ingress"
	// RuleDirectionOut specifies that the direction of traffic must be egress, equivalent to "Egress".
	RuleDirectionOut RuleDirection = "Out"
	// RuleDirectionEgress specifies that the direction of traffic must be egress, equivalent to "Out".
	RuleDirectionEgress RuleDirection = "Egress"
)

type SecurityPolicy

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

	Spec   SecurityPolicySpec   `json:"spec"`
	Status SecurityPolicyStatus `json:"status,omitempty"`
}

SecurityPolicy is the Schema for the securitypolicies API.

func (*SecurityPolicy) DeepCopy

func (in *SecurityPolicy) DeepCopy() *SecurityPolicy

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

func (*SecurityPolicy) DeepCopyInto

func (in *SecurityPolicy) DeepCopyInto(out *SecurityPolicy)

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

func (*SecurityPolicy) DeepCopyObject

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

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

type SecurityPolicyList

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

SecurityPolicyList contains a list of SecurityPolicy.

func (*SecurityPolicyList) DeepCopy

func (in *SecurityPolicyList) DeepCopy() *SecurityPolicyList

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

func (*SecurityPolicyList) DeepCopyInto

func (in *SecurityPolicyList) DeepCopyInto(out *SecurityPolicyList)

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

func (*SecurityPolicyList) DeepCopyObject

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

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

type SecurityPolicyPeer

type SecurityPolicyPeer struct {
	// VMSelector uses label selector to select VMs.
	VMSelector *metav1.LabelSelector `json:"vmSelector,omitempty"`
	// PodSelector uses label selector to select Pods.
	PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"`
	// NamespaceSelector uses label selector to select Namespaces.
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
	// IPBlocks is a list of IP CIDRs.
	IPBlocks []IPBlock `json:"ipBlocks,omitempty"`
}

SecurityPolicyPeer defines the source or destination of traffic.

func (*SecurityPolicyPeer) DeepCopy

func (in *SecurityPolicyPeer) DeepCopy() *SecurityPolicyPeer

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

func (*SecurityPolicyPeer) DeepCopyInto

func (in *SecurityPolicyPeer) DeepCopyInto(out *SecurityPolicyPeer)

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

type SecurityPolicyPort

type SecurityPolicyPort struct {
	// Protocol(TCP, UDP) is the protocol to match traffic.
	// It is TCP by default.
	Protocol corev1.Protocol `json:"protocol,omitempty"`
	// Port is the name or port number.
	Port intstr.IntOrString `json:"port,omitempty"`
	// EndPort defines the end of port range.
	EndPort int `json:"endPort,omitempty"`
}

SecurityPolicyPort describes protocol and ports for traffic.

func (*SecurityPolicyPort) DeepCopy

func (in *SecurityPolicyPort) DeepCopy() *SecurityPolicyPort

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

func (*SecurityPolicyPort) DeepCopyInto

func (in *SecurityPolicyPort) DeepCopyInto(out *SecurityPolicyPort)

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

type SecurityPolicyRule

type SecurityPolicyRule struct {
	// Action specifies the action to be applied on the rule.
	Action *RuleAction `json:"action"`
	// AppliedTo is a list of rule targets.
	// Policy level 'Applied To' will take precedence over rule level.
	AppliedTo []SecurityPolicyTarget `json:"appliedTo,omitempty"`
	// Direction is the direction of the rule, including 'In' or 'Ingress', 'Out' or 'Egress'.
	Direction *RuleDirection `json:"direction"`
	// Sources defines the endpoints where the traffic is from. For ingress rule only.
	Sources []SecurityPolicyPeer `json:"sources,omitempty"`
	// Destinations defines the endpoints where the traffic is to. For egress rule only.
	Destinations []SecurityPolicyPeer `json:"destinations,omitempty"`
	// Ports is a list of ports to be matched.
	Ports []SecurityPolicyPort `json:"ports,omitempty"`
	// Name is the display name of this rule.
	Name string `json:"name,omitempty"`
}

SecurityPolicyRule defines a rule of SecurityPolicy.

func (*SecurityPolicyRule) DeepCopy

func (in *SecurityPolicyRule) DeepCopy() *SecurityPolicyRule

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

func (*SecurityPolicyRule) DeepCopyInto

func (in *SecurityPolicyRule) DeepCopyInto(out *SecurityPolicyRule)

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

type SecurityPolicySpec

type SecurityPolicySpec struct {
	// Priority defines the order of policy enforcement.
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=1000
	Priority int `json:"priority,omitempty"`
	// AppliedTo is a list of policy targets to apply rules.
	// Policy level 'Applied To' will take precedence over rule level.
	AppliedTo []SecurityPolicyTarget `json:"appliedTo,omitempty"`
	// Rules is a list of policy rules.
	Rules []SecurityPolicyRule `json:"rules,omitempty"`
}

SecurityPolicySpec defines the desired state of SecurityPolicy.

func (*SecurityPolicySpec) DeepCopy

func (in *SecurityPolicySpec) DeepCopy() *SecurityPolicySpec

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

func (*SecurityPolicySpec) DeepCopyInto

func (in *SecurityPolicySpec) DeepCopyInto(out *SecurityPolicySpec)

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

type SecurityPolicyStatus

type SecurityPolicyStatus struct {
	// Conditions describes current state of security policy.
	Conditions []Condition `json:"conditions"`
}

SecurityPolicyStatus defines the observed state of SecurityPolicy.

func (*SecurityPolicyStatus) DeepCopy

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

func (*SecurityPolicyStatus) DeepCopyInto

func (in *SecurityPolicyStatus) DeepCopyInto(out *SecurityPolicyStatus)

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

type SecurityPolicyTarget

type SecurityPolicyTarget struct {
	// VMSelector uses label selector to select VMs.
	VMSelector *metav1.LabelSelector `json:"vmSelector,omitempty"`
	// PodSelector uses label selector to select Pods.
	PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"`
}

SecurityPolicyTarget defines the target endpoints to apply SecurityPolicy.

func (*SecurityPolicyTarget) DeepCopy

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

func (*SecurityPolicyTarget) DeepCopyInto

func (in *SecurityPolicyTarget) DeepCopyInto(out *SecurityPolicyTarget)

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

type StaticIPAllocation

type StaticIPAllocation struct {
	// Enable or disable static IP allocation for subnet ports with VIF attachment.
	// +kubebuilder:default:=false
	Enable bool `json:"enable,omitempty"`
}

StaticIPAllocation is static IP allocation for subnet ports with VIF attachment.

func (*StaticIPAllocation) DeepCopy

func (in *StaticIPAllocation) DeepCopy() *StaticIPAllocation

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

func (*StaticIPAllocation) DeepCopyInto

func (in *StaticIPAllocation) DeepCopyInto(out *StaticIPAllocation)

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

type StaticRoute

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

	Spec   StaticRouteSpec   `json:"spec,omitempty"`
	Status StaticRouteStatus `json:"status,omitempty"`
}

StaticRoute is the Schema for the staticroutes API. +kubebuilder:printcolumn:name="Network",type=string,JSONPath=`.spec.network`,description="Network in CIDR format" +kubebuilder:printcolumn:name="NextHops",type=string,JSONPath=`.spec.nextHops[*].ipAddress`,description="Next Hops"

func (*StaticRoute) DeepCopy

func (in *StaticRoute) DeepCopy() *StaticRoute

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

func (*StaticRoute) DeepCopyInto

func (in *StaticRoute) DeepCopyInto(out *StaticRoute)

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

func (*StaticRoute) DeepCopyObject

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

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

type StaticRouteCondition

type StaticRouteCondition Condition

StaticRouteCondition defines condition of StaticRoute.

func (*StaticRouteCondition) DeepCopy

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

func (*StaticRouteCondition) DeepCopyInto

func (in *StaticRouteCondition) DeepCopyInto(out *StaticRouteCondition)

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

type StaticRouteList

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

StaticRouteList contains a list of StaticRoute.

func (*StaticRouteList) DeepCopy

func (in *StaticRouteList) DeepCopy() *StaticRouteList

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

func (*StaticRouteList) DeepCopyInto

func (in *StaticRouteList) DeepCopyInto(out *StaticRouteList)

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

func (*StaticRouteList) DeepCopyObject

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

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

type StaticRouteSpec

type StaticRouteSpec struct {
	// Specify network address in CIDR format.
	// +kubebuilder:validation:Format=cidr
	Network string `json:"network"`
	// Next hop gateway
	// +kubebuilder:validation:MinItems=1
	NextHops []NextHop `json:"nextHops"`
}

StaticRouteSpec defines static routes configuration on VPC.

func (*StaticRouteSpec) DeepCopy

func (in *StaticRouteSpec) DeepCopy() *StaticRouteSpec

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

func (*StaticRouteSpec) DeepCopyInto

func (in *StaticRouteSpec) DeepCopyInto(out *StaticRouteSpec)

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

type StaticRouteStatus

type StaticRouteStatus struct {
	Conditions      []StaticRouteCondition `json:"conditions"`
	NSXResourcePath string                 `json:"nsxResourcePath"`
}

StaticRouteStatus defines the observed state of StaticRoute.

func (*StaticRouteStatus) DeepCopy

func (in *StaticRouteStatus) DeepCopy() *StaticRouteStatus

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

func (*StaticRouteStatus) DeepCopyInto

func (in *StaticRouteStatus) DeepCopyInto(out *StaticRouteStatus)

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

type StaticRouteStatusCondition

type StaticRouteStatusCondition string

type Subnet

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

	Spec   SubnetSpec   `json:"spec,omitempty"`
	Status SubnetStatus `json:"status,omitempty"`
}

Subnet is the Schema for the subnets API. +kubebuilder:printcolumn:name="AccessMode",type=string,JSONPath=`.spec.accessMode`,description="Access mode of Subnet" +kubebuilder:printcolumn:name="IPv4SubnetSize",type=string,JSONPath=`.spec.ipv4SubnetSize`,description="Size of Subnet" +kubebuilder:printcolumn:name="IPAddresses",type=string,JSONPath=`.status.ipAddresses[*]`,description="CIDRs for the Subnet"

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

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

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

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

func (*Subnet) DeepCopyObject

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

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

type SubnetInfo

type SubnetInfo struct {
	NSXResourcePath string   `json:"nsxResourcePath"`
	IPAddresses     []string `json:"ipAddresses"`
}

SubnetInfo defines the observed state of a single Subnet of a SubnetSet.

func (*SubnetInfo) DeepCopy

func (in *SubnetInfo) DeepCopy() *SubnetInfo

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

func (*SubnetInfo) DeepCopyInto

func (in *SubnetInfo) DeepCopyInto(out *SubnetInfo)

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

type SubnetList

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

SubnetList contains a list of Subnet.

func (*SubnetList) DeepCopy

func (in *SubnetList) DeepCopy() *SubnetList

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

func (*SubnetList) DeepCopyInto

func (in *SubnetList) DeepCopyInto(out *SubnetList)

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

func (*SubnetList) DeepCopyObject

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

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

type SubnetPort

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

	Spec   SubnetPortSpec   `json:"spec,omitempty"`
	Status SubnetPortStatus `json:"status,omitempty"`
}

SubnetPort is the Schema for the subnetports API. +kubebuilder:printcolumn:name="VIFID",type=string,JSONPath=`.status.vifID`,description="Attachment VIF ID owned by the SubnetPort" +kubebuilder:printcolumn:name="IPAddress",type=string,JSONPath=`.status.ipAddresses[0].ip`,description="IP Address of the SubnetPort" +kubebuilder:printcolumn:name="MACAddress",type=string,JSONPath=`.status.macAddress`,description="MAC Address of the SubnetPort"

func (*SubnetPort) DeepCopy

func (in *SubnetPort) DeepCopy() *SubnetPort

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

func (*SubnetPort) DeepCopyInto

func (in *SubnetPort) DeepCopyInto(out *SubnetPort)

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

func (*SubnetPort) DeepCopyObject

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

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

type SubnetPortIPAddress

type SubnetPortIPAddress struct {
	Gateway string `json:"gateway,omitempty"`
	IP      string `json:"ip,omitempty"`
	Netmask string `json:"netmask,omitempty"`
}

func (*SubnetPortIPAddress) DeepCopy

func (in *SubnetPortIPAddress) DeepCopy() *SubnetPortIPAddress

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

func (*SubnetPortIPAddress) DeepCopyInto

func (in *SubnetPortIPAddress) DeepCopyInto(out *SubnetPortIPAddress)

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

type SubnetPortList

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

SubnetPortList contains a list of SubnetPort.

func (*SubnetPortList) DeepCopy

func (in *SubnetPortList) DeepCopy() *SubnetPortList

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

func (*SubnetPortList) DeepCopyInto

func (in *SubnetPortList) DeepCopyInto(out *SubnetPortList)

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

func (*SubnetPortList) DeepCopyObject

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

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

type SubnetPortSpec

type SubnetPortSpec struct {
	// Subnet defines the parent Subnet name of the SubnetPort.
	Subnet string `json:"subnet,omitempty"`
	// SubnetSet defines the parent SubnetSet name of the SubnetPort.
	SubnetSet string `json:"subnetSet,omitempty"`
	// AttachmentRef refers to the virtual machine which the SubnetPort is attached.
	AttachmentRef corev1.ObjectReference `json:"attachmentRef,omitempty"`
}

SubnetPortSpec defines the desired state of SubnetPort.

func (*SubnetPortSpec) DeepCopy

func (in *SubnetPortSpec) DeepCopy() *SubnetPortSpec

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

func (*SubnetPortSpec) DeepCopyInto

func (in *SubnetPortSpec) DeepCopyInto(out *SubnetPortSpec)

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

type SubnetPortStatus

type SubnetPortStatus struct {
	// Conditions describes current state of SubnetPort.
	Conditions []Condition `json:"conditions,omitempty"`
	// VIFID describes the attachment VIF ID owned by the SubnetPort in NSX-T.
	VIFID string `json:"vifID,omitempty"`
	// IPAddresses describes the IP addresses of the SubnetPort.
	IPAddresses []SubnetPortIPAddress `json:"ipAddresses,omitempty"`
	// MACAddress describes the MAC address of the SubnetPort.
	MACAddress string `json:"macAddress,omitempty"`
	// LogicalSwitchID defines the logical switch ID in NSX-T.
	LogicalSwitchID string `json:"logicalSwitchID,omitempty"`
}

SubnetPortStatus defines the observed state of SubnetPort.

func (*SubnetPortStatus) DeepCopy

func (in *SubnetPortStatus) DeepCopy() *SubnetPortStatus

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

func (*SubnetPortStatus) DeepCopyInto

func (in *SubnetPortStatus) DeepCopyInto(out *SubnetPortStatus)

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

type SubnetRequest

type SubnetRequest struct {
	// PrefixLength defines prefix length for this subnet.
	PrefixLength int `json:"prefixLength,omitempty"`

	// IPFamily defines the IP family type for this subnet, could be IPv4 or IPv6.
	// This is optional, the default is IPv4.
	// +kubebuilder:validation:Enum=IPv4;IPv6
	// +kubebuilder:default=IPv4
	IPFamily string `json:"ipFamily,omitempty"`

	// Name defines the name of this subnet.
	Name string `json:"name"`
}

SubnetRequest defines the subnet allocation request.

func (*SubnetRequest) DeepCopy

func (in *SubnetRequest) DeepCopy() *SubnetRequest

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

func (*SubnetRequest) DeepCopyInto

func (in *SubnetRequest) DeepCopyInto(out *SubnetRequest)

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

type SubnetResult

type SubnetResult struct {
	// CIDR defines the allocated CIDR.
	CIDR string `json:"cidr"`

	// Name defines the name of this subnet.
	Name string `json:"name"`
}

SubnetResult defines the subnet allocation result.

func (*SubnetResult) DeepCopy

func (in *SubnetResult) DeepCopy() *SubnetResult

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

func (*SubnetResult) DeepCopyInto

func (in *SubnetResult) DeepCopyInto(out *SubnetResult)

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

type SubnetSet

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

	Spec   SubnetSetSpec   `json:"spec,omitempty"`
	Status SubnetSetStatus `json:"status,omitempty"`
}

SubnetSet is the Schema for the subnetsets API. +kubebuilder:printcolumn:name="AccessMode",type=string,JSONPath=`.spec.accessMode`,description="Access mode of Subnet" +kubebuilder:printcolumn:name="IPv4SubnetSize",type=string,JSONPath=`.spec.ipv4SubnetSize`,description="Size of Subnet" +kubebuilder:printcolumn:name="IPAddresses",type=string,JSONPath=`.status.subnets[*].ipAddresses[*]`,description="CIDRs for the Subnet"

func (*SubnetSet) DeepCopy

func (in *SubnetSet) DeepCopy() *SubnetSet

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

func (*SubnetSet) DeepCopyInto

func (in *SubnetSet) DeepCopyInto(out *SubnetSet)

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

func (*SubnetSet) DeepCopyObject

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

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

type SubnetSetList

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

SubnetSetList contains a list of SubnetSet.

func (*SubnetSetList) DeepCopy

func (in *SubnetSetList) DeepCopy() *SubnetSetList

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

func (*SubnetSetList) DeepCopyInto

func (in *SubnetSetList) DeepCopyInto(out *SubnetSetList)

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

func (*SubnetSetList) DeepCopyObject

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

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

type SubnetSetSpec

type SubnetSetSpec struct {
	// Size of Subnet based upon estimated workload count.
	// +kubebuilder:validation:Maximum:=65536
	// +kubebuilder:validation:Minimum:=16
	IPv4SubnetSize int `json:"ipv4SubnetSize,omitempty"`
	// Access mode of Subnet, accessible only from within VPC or from outside VPC.
	// +kubebuilder:validation:Enum=Private;Public
	AccessMode AccessMode `json:"accessMode,omitempty"`
	// Subnet advanced configuration.
	AdvancedConfig AdvancedConfig `json:"advancedConfig,omitempty"`
	// DHCPConfig DHCP configuration.
	DHCPConfig DHCPConfig `json:"DHCPConfig,omitempty"`
}

SubnetSetSpec defines the desired state of SubnetSet.

func (*SubnetSetSpec) DeepCopy

func (in *SubnetSetSpec) DeepCopy() *SubnetSetSpec

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

func (*SubnetSetSpec) DeepCopyInto

func (in *SubnetSetSpec) DeepCopyInto(out *SubnetSetSpec)

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

type SubnetSetStatus

type SubnetSetStatus struct {
	Conditions []Condition  `json:"conditions,omitempty"`
	Subnets    []SubnetInfo `json:"subnets,omitempty"`
}

SubnetSetStatus defines the observed state of SubnetSet.

func (*SubnetSetStatus) DeepCopy

func (in *SubnetSetStatus) DeepCopy() *SubnetSetStatus

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

func (*SubnetSetStatus) DeepCopyInto

func (in *SubnetSetStatus) DeepCopyInto(out *SubnetSetStatus)

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

type SubnetSpec

type SubnetSpec struct {
	// Size of Subnet based upon estimated workload count.
	// +kubebuilder:validation:Maximum:=65536
	// +kubebuilder:validation:Minimum:=16
	IPv4SubnetSize int `json:"ipv4SubnetSize,omitempty"`
	// Access mode of Subnet, accessible only from within VPC or from outside VPC.
	// +kubebuilder:validation:Enum=Private;Public
	AccessMode AccessMode `json:"accessMode,omitempty"`
	// Subnet CIDRS.
	// +kubebuilder:validation:MinItems=0
	// +kubebuilder:validation:MaxItems=2
	IPAddresses []string `json:"ipAddresses,omitempty"`
	// Subnet advanced configuration.
	AdvancedConfig AdvancedConfig `json:"advancedConfig,omitempty"`
	// DHCPConfig DHCP configuration.
	DHCPConfig DHCPConfig `json:"DHCPConfig,omitempty"`
}

SubnetSpec defines the desired state of Subnet.

func (*SubnetSpec) DeepCopy

func (in *SubnetSpec) DeepCopy() *SubnetSpec

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

func (*SubnetSpec) DeepCopyInto

func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)

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

type SubnetStatus

type SubnetStatus struct {
	NSXResourcePath string      `json:"nsxResourcePath,omitempty"`
	IPAddresses     []string    `json:"ipAddresses,omitempty"`
	Conditions      []Condition `json:"conditions,omitempty"`
}

SubnetStatus defines the observed state of Subnet.

func (*SubnetStatus) DeepCopy

func (in *SubnetStatus) DeepCopy() *SubnetStatus

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

func (*SubnetStatus) DeepCopyInto

func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)

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

type VPC

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

	Spec   VPCSpec   `json:"spec,omitempty"`
	Status VPCStatus `json:"status,omitempty"`
}

VPC is the Schema for the VPC API +kubebuilder:printcolumn:name="PrivateIPv4CIDRs",type=string,JSONPath=`.status.privateIPv4CIDRs`,description="Private IPv4 CIDRs" +kubebuilder:printcolumn:name="SNATIP",type=string,JSONPath=`.status.defaultSNATIP`,description="Default SNAT IP for Private Subnets" +kubebuilder:printcolumn:name="LBSubnetCIDR",type=string,JSONPath=`.status.lbSubnetCIDR`,description="CIDR for the load balancer Subnet"

func (*VPC) DeepCopy

func (in *VPC) DeepCopy() *VPC

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

func (*VPC) DeepCopyInto

func (in *VPC) DeepCopyInto(out *VPC)

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

func (*VPC) DeepCopyObject

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

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

type VPCList

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

VPCList contains a list of VPC

func (*VPCList) DeepCopy

func (in *VPCList) DeepCopy() *VPCList

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

func (*VPCList) DeepCopyInto

func (in *VPCList) DeepCopyInto(out *VPCList)

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

func (*VPCList) DeepCopyObject

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

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

type VPCNetworkConfiguration

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

	Spec   VPCNetworkConfigurationSpec   `json:"spec,omitempty"`
	Status VPCNetworkConfigurationStatus `json:"status,omitempty"`
}

VPCNetworkConfiguration is the Schema for the vpcnetworkconfigurations API. +kubebuilder:resource:scope="Cluster" +kubebuilder:printcolumn:name="NSXTProject",type=string,JSONPath=`.spec.nsxtProject`,description="NSXTProject the Namespace associated with" +kubebuilder:printcolumn:name="ExternalIPv4Blocks",type=string,JSONPath=`.spec.externalIPv4Blocks`,description="ExternalIPv4Blocks assigned to the Namespace" +kubebuilder:printcolumn:name="PrivateIPv4CIDRs",type=string,JSONPath=`.spec.privateIPv4CIDRs`,description="PrivateIPv4CIDRs assigned to the Namespace"

func (*VPCNetworkConfiguration) DeepCopy

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

func (*VPCNetworkConfiguration) DeepCopyInto

func (in *VPCNetworkConfiguration) DeepCopyInto(out *VPCNetworkConfiguration)

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

func (*VPCNetworkConfiguration) DeepCopyObject

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

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

type VPCNetworkConfigurationList

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

VPCNetworkConfigurationList contains a list of VPCNetworkConfiguration.

func (*VPCNetworkConfigurationList) DeepCopy

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

func (*VPCNetworkConfigurationList) DeepCopyInto

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

func (*VPCNetworkConfigurationList) DeepCopyObject

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

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

type VPCNetworkConfigurationSpec

type VPCNetworkConfigurationSpec struct {
	// PolicyPath of Tier0 or Tier0 VRF gateway.
	DefaultGatewayPath string `json:"defaultGatewayPath,omitempty"`
	// Edge cluster path on which the networking elements will be created.
	EdgeClusterPath string `json:"edgeClusterPath,omitempty"`
	// NSX-T Project the Namespace associated with.
	NSXTProject string `json:"nsxtProject,omitempty"`
	// NSX-T IPv4 Block paths used to allocate external Subnets.
	// +kubebuilder:validation:MinItems=0
	// +kubebuilder:validation:MaxItems=5
	ExternalIPv4Blocks []string `json:"externalIPv4Blocks,omitempty"`
	// Private IPv4 CIDRs used to allocate Private Subnets.
	// +kubebuilder:validation:MinItems=0
	// +kubebuilder:validation:MaxItems=5
	PrivateIPv4CIDRs []string `json:"privateIPv4CIDRs,omitempty"`
	// Default size of Subnet based upon estimated workload count.
	// Defaults to 26.
	// +kubebuilder:default=26
	DefaultIPv4SubnetSize int `json:"defaultIPv4SubnetSize,omitempty"`
	// DefaultSubnetAccessMode defines the access mode of the default SubnetSet for PodVM and VM.
	// Must be Public or Private.
	// +kubebuilder:validation:Enum=Public;Private
	DefaultSubnetAccessMode string `json:"defaultSubnetAccessMode,omitempty"`
}

VPCNetworkConfigurationSpec defines the desired state of VPCNetworkConfiguration. There is a default VPCNetworkConfiguration that applies to Namespaces do not have a VPCNetworkConfiguration assigned. When a field is not set in a Namespace's VPCNetworkConfiguration, the Namespace will use the value in the default VPCNetworkConfiguration.

func (*VPCNetworkConfigurationSpec) DeepCopy

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

func (*VPCNetworkConfigurationSpec) DeepCopyInto

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

type VPCNetworkConfigurationStatus

type VPCNetworkConfigurationStatus struct {
	// Conditions describes current state of VPCNetworkConfiguration.
	Conditions []Condition `json:"conditions"`
}

VPCNetworkConfigurationStatus defines the observed state of VPCNetworkConfiguration

func (*VPCNetworkConfigurationStatus) DeepCopy

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

func (*VPCNetworkConfigurationStatus) DeepCopyInto

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

type VPCSpec

type VPCSpec struct {
}

VPCSpec defines VPC configuration

func (*VPCSpec) DeepCopy

func (in *VPCSpec) DeepCopy() *VPCSpec

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

func (*VPCSpec) DeepCopyInto

func (in *VPCSpec) DeepCopyInto(out *VPCSpec)

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

type VPCStatus

type VPCStatus struct {
	Conditions []Condition `json:"conditions"`
	// NSX VPC Policy API resource path.
	NSXResourcePath string `json:"nsxResourcePath"`
	// Default SNAT IP for Private Subnets.
	DefaultSNATIP string `json:"defaultSNATIP"`
	// NSX PolicyPath for the load balancer Subnet.
	LBSubnetPath string `json:"lbSubnetPath"`
	// CIDR for the load balancer Subnet.
	LBSubnetCIDR string `json:"lbSubnetCIDR"`
	// Private CIDRs used for the VPC.
	PrivateIPv4CIDRs []string `json:"privateIPv4CIDRs"`
}

VPCStatus defines the observed state of VPC

func (*VPCStatus) DeepCopy

func (in *VPCStatus) DeepCopy() *VPCStatus

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

func (*VPCStatus) DeepCopyInto

func (in *VPCStatus) DeepCopyInto(out *VPCStatus)

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

Jump to

Keyboard shortcuts

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