Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cni v1alpha1 API group +kubebuilder:object:generate=true +groupName=cni.tanzu.vmware.com
Index ¶
- Variables
- type Antrea
- type AntreaConfig
- func (in *AntreaConfig) DeepCopy() *AntreaConfig
- func (in *AntreaConfig) DeepCopyInto(out *AntreaConfig)
- func (in *AntreaConfig) DeepCopyObject() runtime.Object
- func (r *AntreaConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *AntreaConfig) ValidateCreate() error
- func (r *AntreaConfig) ValidateDelete() error
- func (r *AntreaConfig) ValidateUpdate(old runtime.Object) error
- type AntreaConfigDataValue
- type AntreaConfigList
- type AntreaConfigSpec
- type AntreaConfigStatus
- type AntreaFeatureGates
- type Calico
- type CalicoConfig
- func (in *CalicoConfig) DeepCopy() *CalicoConfig
- func (in *CalicoConfig) DeepCopyInto(out *CalicoConfig)
- func (in *CalicoConfig) DeepCopyObject() runtime.Object
- func (r *CalicoConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *CalicoConfig) ValidateCreate() error
- func (r *CalicoConfig) ValidateDelete() error
- func (r *CalicoConfig) ValidateUpdate(old runtime.Object) error
- type CalicoConfigDataValue
- type CalicoConfigList
- type CalicoConfigSpec
- type CalicoConfigStatus
Constants ¶
This section is empty.
Variables ¶
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 ¶ added in v0.17.0
type Antrea struct {
AntreaConfigDataValue AntreaConfigDataValue `json:"config,omitempty"`
}
func (*Antrea) DeepCopy ¶ added in v0.17.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Antrea.
func (*Antrea) DeepCopyInto ¶ added in v0.17.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AntreaConfig ¶ added in v0.17.0
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 ¶ added in v0.17.0
func (in *AntreaConfig) DeepCopy() *AntreaConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaConfig.
func (*AntreaConfig) DeepCopyInto ¶ added in v0.17.0
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 ¶ added in v0.17.0
func (in *AntreaConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AntreaConfig) SetupWebhookWithManager ¶ added in v0.20.0
func (r *AntreaConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*AntreaConfig) ValidateCreate ¶ added in v0.20.0
func (r *AntreaConfig) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*AntreaConfig) ValidateDelete ¶ added in v0.20.0
func (r *AntreaConfig) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*AntreaConfig) ValidateUpdate ¶ added in v0.20.0
func (r *AntreaConfig) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type AntreaConfigDataValue ¶ added in v0.17.0
type AntreaConfigDataValue struct { // 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 ¶ added in v0.17.0
func (in *AntreaConfigDataValue) DeepCopy() *AntreaConfigDataValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaConfigDataValue.
func (*AntreaConfigDataValue) DeepCopyInto ¶ added in v0.17.0
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 ¶ added in v0.17.0
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 ¶ added in v0.17.0
func (in *AntreaConfigList) DeepCopy() *AntreaConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaConfigList.
func (*AntreaConfigList) DeepCopyInto ¶ added in v0.17.0
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 ¶ added in v0.17.0
func (in *AntreaConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AntreaConfigSpec ¶ added in v0.17.0
type AntreaConfigSpec struct {
Antrea Antrea `json:"antrea,omitempty"`
}
AntreaConfigSpec defines the desired state of AntreaConfig
func (*AntreaConfigSpec) DeepCopy ¶ added in v0.17.0
func (in *AntreaConfigSpec) DeepCopy() *AntreaConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaConfigSpec.
func (*AntreaConfigSpec) DeepCopyInto ¶ added in v0.17.0
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 ¶ added in v0.17.0
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 ¶ added in v0.17.0
func (in *AntreaConfigStatus) DeepCopy() *AntreaConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaConfigStatus.
func (*AntreaConfigStatus) DeepCopyInto ¶ added in v0.17.0
func (in *AntreaConfigStatus) DeepCopyInto(out *AntreaConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AntreaFeatureGates ¶ added in v0.17.0
type AntreaFeatureGates struct { // Flag to enable/disable antrea proxy // +kubebuilder:validation:Optional // +kubebuilder:default:=false 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:=false Egress bool `json:"Egress,omitempty"` // Flag to enable/disable NodePortLocal feature to make the pods reachable externally through NodePort // +kubebuilder:validation:Optional // +kubebuilder:default:=false NodePortLocal bool `json:"NodePortLocal,omitempty"` // Flag to enable/disable antrea traceflow // +kubebuilder:validation:Optional // +kubebuilder:default:=false AntreaTraceflow bool `json:"AntreaTraceflow,omitempty"` // Flag to enable/disable network policy stats // +kubebuilder:validation:Optional // +kubebuilder:default:=false NetworkPolicyStats bool `json:"NetworkPolicyStats,omitempty"` }
func (*AntreaFeatureGates) DeepCopy ¶ added in v0.17.0
func (in *AntreaFeatureGates) DeepCopy() *AntreaFeatureGates
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AntreaFeatureGates.
func (*AntreaFeatureGates) DeepCopyInto ¶ added in v0.17.0
func (in *AntreaFeatureGates) DeepCopyInto(out *AntreaFeatureGates)
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"`
}
func (*Calico) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Calico.
func (*Calico) DeepCopyInto ¶
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 ¶ added in v0.20.0
func (r *CalicoConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*CalicoConfig) ValidateCreate ¶ added in v0.20.0
func (r *CalicoConfig) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*CalicoConfig) ValidateDelete ¶ added in v0.20.0
func (r *CalicoConfig) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*CalicoConfig) ValidateUpdate ¶ added in v0.20.0
func (r *CalicoConfig) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type CalicoConfigDataValue ¶ added in v0.17.0
type CalicoConfigDataValue struct { // Maximum transmission unit setting. "0" as default means MTU will be auto detected //+ kubebuilder:validation:Optional //+kubebuilder:validation:Minimum=0 //+kubebuilder:default:=0 VethMTU int64 `json:"vethMTU,omitempty"` }
func (*CalicoConfigDataValue) DeepCopy ¶ added in v0.17.0
func (in *CalicoConfigDataValue) DeepCopy() *CalicoConfigDataValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CalicoConfigDataValue.
func (*CalicoConfigDataValue) DeepCopyInto ¶ added in v0.17.0
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 { // The namespace in which calico is deployed //+ kubebuilder:validation:Optional //+kubebuilder:default:=kube-system Namespace string `json:"namespace,omitempty"` 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 { // 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.