v1alpha1

package
v0.0.0-...-891af87 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cni v1alpha1 API group +kubebuilder:object:generate=true +groupName=cni.tanzu.vmware.com

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Antrea

type Antrea struct {
	AntreaConfigDataValue AntreaConfigDataValue `json:"config,omitempty"`
}

func (*Antrea) DeepCopy

func (in *Antrea) DeepCopy() *Antrea

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

func (*Antrea) DeepCopyInto

func (in *Antrea) DeepCopyInto(out *Antrea)

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

type AntreaConfig

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

	Spec   AntreaConfigSpec   `json:"spec"`
	Status AntreaConfigStatus `json:"status,omitempty"`
}

AntreaConfig is the Schema for the antreaconfigs API

func (*AntreaConfig) DeepCopy

func (in *AntreaConfig) DeepCopy() *AntreaConfig

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

func (*AntreaConfig) DeepCopyInto

func (in *AntreaConfig) DeepCopyInto(out *AntreaConfig)

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

func (*AntreaConfig) DeepCopyObject

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

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

func (*AntreaConfig) SetupWebhookWithManager

func (r *AntreaConfig) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*AntreaConfig) ValidateCreate

func (r *AntreaConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*AntreaConfig) ValidateDelete

func (r *AntreaConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*AntreaConfig) ValidateUpdate

func (r *AntreaConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type AntreaConfigDataValue

type AntreaConfigDataValue struct {
	// Specifies Egress related configuration.
	// +kubebuilder:validation:Optional
	Egress AntreaEgress `json:"egress,omitempty"`

	// Specifies NodePortLocal related configuration.
	// +kubebuilder:validation:Optional
	NodePortLocal AntreaNodePortLocal `json:"nodePortLocal,omitempty"`

	// Specifies AntreaProxy related configuration.
	// +kubebuilder:validation:Optional
	AntreaProxy AntreaProxy `json:"antreaProxy,omitempty"`

	// Specifies FlowExporter related configuration.
	// +kubebuilder:validation:Optional
	AntreaFlowExporter AntreaFlowExporter `json:"flowExporter,omitempty"`

	// Specifies WireGuard related configuration.
	// +kubebuilder:validation:Optional
	WireGuard AntreaWireGuard `json:"wireGuard,omitempty"`

	// The name of the interface on Node which is used for tunneling or routing.
	// +kubebuilder:validation:Optional
	TransportInterface string `json:"transportInterface,omitempty"`

	// The network CIDRs of the interface on Node which is used for tunneling or routing.
	// +kubebuilder:validation:Optional
	TransportInterfaceCIDRs []string `json:"transportInterfaceCIDRs,omitempty"`

	// The names of the interfaces on Nodes that are used to forward multicast traffic.
	// +kubebuilder:validation:Optional
	MulticastInterface string `json:"multicastInterface,omitempty"`

	// The traffic encapsulation mode. One of the following options => encap, noEncap, hybrid, networkPolicyOnly
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum="encap";"noEncap";"hybrid";"networkPolicyOnly"
	// +kubebuilder:default:=encap
	KubeAPIServerOverride string `json:"kubeAPIServerOverride,omitempty"`

	// The traffic encapsulation mode. One of the following options => encap, noEncap, hybrid, networkPolicyOnly
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum="encap";"noEncap";"hybrid";"networkPolicyOnly"
	// +kubebuilder:default:=encap
	TrafficEncapMode string `json:"trafficEncapMode,omitempty"`

	// Flag to enable/disable SNAT for the egress traffic from a Pod to the external network
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	NoSNAT bool `json:"noSNAT,omitempty"`

	// Disable UDP tunnel offload feature on default NIC
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	DisableUDPTunnelOffload bool `json:"disableUdpTunnelOffload,omitempty"`

	// Default MTU to use for the host gateway interface and the network interface of each Pod. If omitted, antrea-agent will discover the MTU of the Node's primary interface
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=""
	DefaultMTU string `json:"defaultMTU,omitempty"`

	// List of allowed cipher suites. If omitted, the default Go Cipher Suites will be used
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_256_GCM_SHA384"
	TLSCipherSuites string `json:"tlsCipherSuites,omitempty"`

	// FeatureGates is a map of feature names to flags that enable or disable experimental features
	// +kubebuilder:validation:Optional
	FeatureGates AntreaFeatureGates `json:"featureGates,omitempty"`
}

func (*AntreaConfigDataValue) DeepCopy

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

func (*AntreaConfigDataValue) DeepCopyInto

func (in *AntreaConfigDataValue) DeepCopyInto(out *AntreaConfigDataValue)

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

type AntreaConfigList

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

AntreaConfigList contains a list of AntreaConfig

func (*AntreaConfigList) DeepCopy

func (in *AntreaConfigList) DeepCopy() *AntreaConfigList

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

func (*AntreaConfigList) DeepCopyInto

func (in *AntreaConfigList) DeepCopyInto(out *AntreaConfigList)

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

func (*AntreaConfigList) DeepCopyObject

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

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

type AntreaConfigSpec

type AntreaConfigSpec struct {
	Antrea Antrea `json:"antrea,omitempty"`
}

AntreaConfigSpec defines the desired state of AntreaConfig

func (*AntreaConfigSpec) DeepCopy

func (in *AntreaConfigSpec) DeepCopy() *AntreaConfigSpec

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

func (*AntreaConfigSpec) DeepCopyInto

func (in *AntreaConfigSpec) DeepCopyInto(out *AntreaConfigSpec)

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

type AntreaConfigStatus

type AntreaConfigStatus struct {
	// Reference to the data value secret created by controller
	// +kubebuilder:validation:Optional
	SecretRef string `json:"secretRef,omitempty"`
}

AntreaConfigStatus defines the observed state of AntreaConfig

func (*AntreaConfigStatus) DeepCopy

func (in *AntreaConfigStatus) DeepCopy() *AntreaConfigStatus

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

func (*AntreaConfigStatus) DeepCopyInto

func (in *AntreaConfigStatus) DeepCopyInto(out *AntreaConfigStatus)

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

type AntreaEgress

type AntreaEgress struct {
	//+ kubebuilder:validation:Optional
	EgressExceptCIDRs []string `json:"exceptCIDRs,omitempty"`
}

func (*AntreaEgress) DeepCopy

func (in *AntreaEgress) DeepCopy() *AntreaEgress

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

func (*AntreaEgress) DeepCopyInto

func (in *AntreaEgress) DeepCopyInto(out *AntreaEgress)

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

type AntreaFeatureGates

type AntreaFeatureGates struct {
	// Flag to enable/disable antrea proxy
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=true
	AntreaProxy bool `json:"AntreaProxy,omitempty"`

	// Flag to enable/disable EndpointSlice support in AntreaProxy. If AntreaProxy is not enabled, this flag will not take effect
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	EndpointSlice bool `json:"EndpointSlice,omitempty"`

	// Flag to enable/disable antrea policy
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=true
	AntreaPolicy bool `json:"AntreaPolicy,omitempty"`

	// Flag to enable/disable flow exporter
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	FlowExporter bool `json:"FlowExporter,omitempty"`

	// Flag to enable/disable SNAT IPs of Pod egress traffic
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=true
	Egress bool `json:"Egress,omitempty"`

	// Flag to enable/disable NodePortLocal feature to make the pods reachable externally through NodePort
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=true
	NodePortLocal bool `json:"NodePortLocal,omitempty"`

	// Flag to enable/disable antrea traceflow
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=true
	AntreaTraceflow bool `json:"AntreaTraceflow,omitempty"`

	// Flag to enable/disable network policy stats
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	NetworkPolicyStats bool `json:"NetworkPolicyStats,omitempty"`

	// Flag to enable/disable antrea IPAM
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	AntreaIPAM bool `json:"AntreaIPAM,omitempty"`

	// Flag to enable/disable service external IP
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	ServiceExternalIP bool `json:"ServiceExternalIP,omitempty"`

	// Flag to enable/disable multicast
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	Multicast bool `json:"Multicast,omitempty"`
}

func (*AntreaFeatureGates) DeepCopy

func (in *AntreaFeatureGates) DeepCopy() *AntreaFeatureGates

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

func (*AntreaFeatureGates) DeepCopyInto

func (in *AntreaFeatureGates) DeepCopyInto(out *AntreaFeatureGates)

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

type AntreaFlowExporter

type AntreaFlowExporter struct {
	//+ kubebuilder:validation:Optional
	CollectorAddress string `json:"collectorAddress,omitempty"`

	//+ kubebuilder:validation:Optional
	PollInterval string `json:"pollInterval,omitempty"`

	//+ kubebuilder:validation:Optional
	ActiveFlowTimeout string `json:"activeFlowTimeout,omitempty"`

	//+ kubebuilder:validation:Optional
	IdleFlowTimeout string `json:"idleFlowTimeout,omitempty"`
}

func (*AntreaFlowExporter) DeepCopy

func (in *AntreaFlowExporter) DeepCopy() *AntreaFlowExporter

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

func (*AntreaFlowExporter) DeepCopyInto

func (in *AntreaFlowExporter) DeepCopyInto(out *AntreaFlowExporter)

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

type AntreaNodePortLocal

type AntreaNodePortLocal struct {
	//+ kubebuilder:validation:Optional
	Enabled bool `json:"enabled,omitempty"`

	//+ kubebuilder:validation:Optional
	PortRange string `json:"portRange,omitempty"`
}

func (*AntreaNodePortLocal) DeepCopy

func (in *AntreaNodePortLocal) DeepCopy() *AntreaNodePortLocal

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

func (*AntreaNodePortLocal) DeepCopyInto

func (in *AntreaNodePortLocal) DeepCopyInto(out *AntreaNodePortLocal)

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

type AntreaProxy

type AntreaProxy struct {
	//+ kubebuilder:validation:Optional
	ProxyAll bool `json:"enabled,omitempty"`

	//+ kubebuilder:validation:Optional
	NodePortAddresses []string `json:"nodePortAddresses,omitempty"`

	//+ kubebuilder:validation:Optional
	SkipServices []string `json:"skipServices,omitempty"`

	//+ kubebuilder:validation:Optional
	ProxyLoadBalancerIPs bool `json:"proxyLoadBalancerIPs,omitempty"`
}

func (*AntreaProxy) DeepCopy

func (in *AntreaProxy) DeepCopy() *AntreaProxy

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

func (*AntreaProxy) DeepCopyInto

func (in *AntreaProxy) DeepCopyInto(out *AntreaProxy)

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

type AntreaProxyNodePortAddress

type AntreaProxyNodePortAddress []string

func (AntreaProxyNodePortAddress) DeepCopy

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

func (AntreaProxyNodePortAddress) DeepCopyInto

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

type AntreaWireGuard

type AntreaWireGuard struct {
	//+ kubebuilder:validation:Optional
	Port int `json:"port,omitempty"`
}

func (*AntreaWireGuard) DeepCopy

func (in *AntreaWireGuard) DeepCopy() *AntreaWireGuard

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

func (*AntreaWireGuard) DeepCopyInto

func (in *AntreaWireGuard) DeepCopyInto(out *AntreaWireGuard)

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

type Calico

type Calico struct {
	Config CalicoConfigDataValue `json:"config,omitempty"`
}

Calico stores the configurations for Calico.

func (*Calico) DeepCopy

func (in *Calico) DeepCopy() *Calico

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

func (*Calico) DeepCopyInto

func (in *Calico) DeepCopyInto(out *Calico)

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

type CalicoConfig

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

	Spec   CalicoConfigSpec   `json:"spec"`
	Status CalicoConfigStatus `json:"status,omitempty"`
}

CalicoConfig is the Schema for the calicoconfigs API.

func (*CalicoConfig) DeepCopy

func (in *CalicoConfig) DeepCopy() *CalicoConfig

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

func (*CalicoConfig) DeepCopyInto

func (in *CalicoConfig) DeepCopyInto(out *CalicoConfig)

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

func (*CalicoConfig) DeepCopyObject

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

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

func (*CalicoConfig) SetupWebhookWithManager

func (r *CalicoConfig) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*CalicoConfig) ValidateCreate

func (r *CalicoConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*CalicoConfig) ValidateDelete

func (r *CalicoConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*CalicoConfig) ValidateUpdate

func (r *CalicoConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CalicoConfigDataValue

type CalicoConfigDataValue struct {
	// VethMTU defines maximum transmission unit. "0" as default means MTU will be auto detected.
	//+kubebuilder:validation:Optional
	//+kubebuilder:validation:Minimum=0
	//+kubebuilder:default:=0
	VethMTU int64 `json:"vethMTU,omitempty"`

	// SkipCNIBinaries allows to skip the cni plugin binaries installation.
	// Default to false. Set to true for providers who already installed
	// cni plugin binaries in their OVAs and do not want Calico to overwrite them.
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=false
	SkipCNIBinaries bool `json:"skipCNIBinaries,omitempty"`
}

CalicoConfigDataValue contains the specific configurations for the Calico package.

func (*CalicoConfigDataValue) DeepCopy

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

func (*CalicoConfigDataValue) DeepCopyInto

func (in *CalicoConfigDataValue) DeepCopyInto(out *CalicoConfigDataValue)

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

type CalicoConfigList

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

CalicoConfigList contains a list of CalicoConfig.

func (*CalicoConfigList) DeepCopy

func (in *CalicoConfigList) DeepCopy() *CalicoConfigList

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

func (*CalicoConfigList) DeepCopyInto

func (in *CalicoConfigList) DeepCopyInto(out *CalicoConfigList)

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

func (*CalicoConfigList) DeepCopyObject

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

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

type CalicoConfigSpec

type CalicoConfigSpec struct {
	Calico Calico `json:"calico,omitempty"`
}

CalicoConfigSpec defines the desired state of CalicoConfig.

func (*CalicoConfigSpec) DeepCopy

func (in *CalicoConfigSpec) DeepCopy() *CalicoConfigSpec

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

func (*CalicoConfigSpec) DeepCopyInto

func (in *CalicoConfigSpec) DeepCopyInto(out *CalicoConfigSpec)

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

type CalicoConfigStatus

type CalicoConfigStatus struct {
	// SecretRef is the name of the data value secret created by calico controller.
	//+ kubebuilder:validation:Optional
	SecretRef string `json:"secretRef,omitempty"`
}

CalicoConfigStatus defines the observed state of CalicoConfig.

func (*CalicoConfigStatus) DeepCopy

func (in *CalicoConfigStatus) DeepCopy() *CalicoConfigStatus

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

func (*CalicoConfigStatus) DeepCopyInto

func (in *CalicoConfigStatus) DeepCopyInto(out *CalicoConfigStatus)

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