Documentation ¶
Overview ¶
Package v1alpha1 contains the configuration of the Calico Network Extension. +groupName=calico.networking.extensions.gardener.cloud
Index ¶
- Constants
- Variables
- func Convert_calico_AutoScaling_To_v1alpha1_AutoScaling(in *calico.AutoScaling, out *AutoScaling, s conversion.Scope) error
- func Convert_calico_EbpfDataplane_To_v1alpha1_EbpfDataplane(in *calico.EbpfDataplane, out *EbpfDataplane, s conversion.Scope) error
- func Convert_calico_IPAM_To_v1alpha1_IPAM(in *calico.IPAM, out *IPAM, s conversion.Scope) error
- func Convert_calico_IPv4_To_v1alpha1_IPv4(in *calico.IPv4, out *IPv4, s conversion.Scope) error
- func Convert_calico_IPv6_To_v1alpha1_IPv6(in *calico.IPv6, out *IPv6, s conversion.Scope) error
- func Convert_calico_NetworkConfig_To_v1alpha1_NetworkConfig(in *calico.NetworkConfig, out *NetworkConfig, s conversion.Scope) error
- func Convert_calico_NetworkStatus_To_v1alpha1_NetworkStatus(in *calico.NetworkStatus, out *NetworkStatus, s conversion.Scope) error
- func Convert_calico_Overlay_To_v1alpha1_Overlay(in *calico.Overlay, out *Overlay, s conversion.Scope) error
- func Convert_calico_SnatToUpstreamDNS_To_v1alpha1_SnatToUpstreamDNS(in *calico.SnatToUpstreamDNS, out *SnatToUpstreamDNS, s conversion.Scope) error
- func Convert_calico_StaticResources_To_v1alpha1_StaticResources(in *calico.StaticResources, out *StaticResources, s conversion.Scope) error
- func Convert_calico_Typha_To_v1alpha1_Typha(in *calico.Typha, out *Typha, s conversion.Scope) error
- func Convert_v1alpha1_AutoScaling_To_calico_AutoScaling(in *AutoScaling, out *calico.AutoScaling, s conversion.Scope) error
- func Convert_v1alpha1_EbpfDataplane_To_calico_EbpfDataplane(in *EbpfDataplane, out *calico.EbpfDataplane, s conversion.Scope) error
- func Convert_v1alpha1_IPAM_To_calico_IPAM(in *IPAM, out *calico.IPAM, s conversion.Scope) error
- func Convert_v1alpha1_IPv4_To_calico_IPv4(in *IPv4, out *calico.IPv4, s conversion.Scope) error
- func Convert_v1alpha1_IPv6_To_calico_IPv6(in *IPv6, out *calico.IPv6, s conversion.Scope) error
- func Convert_v1alpha1_NetworkConfig_To_calico_NetworkConfig(in *NetworkConfig, out *calico.NetworkConfig, s conversion.Scope) error
- func Convert_v1alpha1_NetworkStatus_To_calico_NetworkStatus(in *NetworkStatus, out *calico.NetworkStatus, s conversion.Scope) error
- func Convert_v1alpha1_Overlay_To_calico_Overlay(in *Overlay, out *calico.Overlay, s conversion.Scope) error
- func Convert_v1alpha1_SnatToUpstreamDNS_To_calico_SnatToUpstreamDNS(in *SnatToUpstreamDNS, out *calico.SnatToUpstreamDNS, s conversion.Scope) error
- func Convert_v1alpha1_StaticResources_To_calico_StaticResources(in *StaticResources, out *calico.StaticResources, s conversion.Scope) error
- func Convert_v1alpha1_Typha_To_calico_Typha(in *Typha, out *calico.Typha, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type AutoScaling
- type AutoscalingMode
- type Backend
- type CIDR
- type EbpfDataplane
- type IPAM
- type IPv4
- type IPv4Pool
- type IPv4PoolMode
- type IPv6
- type NetworkConfig
- type NetworkStatus
- type Overlay
- type Pool
- type PoolMode
- type SnatToUpstreamDNS
- type StaticResources
- type Typha
Constants ¶
const GroupName = "calico.networking.extensions.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
var ( // SchemeBuilder used to register the Shoot resource. SchemeBuilder runtime.SchemeBuilder // AddToScheme is a pointer to SchemeBuilder.AddToScheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_calico_AutoScaling_To_v1alpha1_AutoScaling ¶ added in v1.37.0
func Convert_calico_AutoScaling_To_v1alpha1_AutoScaling(in *calico.AutoScaling, out *AutoScaling, s conversion.Scope) error
Convert_calico_AutoScaling_To_v1alpha1_AutoScaling is an autogenerated conversion function.
func Convert_calico_EbpfDataplane_To_v1alpha1_EbpfDataplane ¶ added in v1.20.0
func Convert_calico_EbpfDataplane_To_v1alpha1_EbpfDataplane(in *calico.EbpfDataplane, out *EbpfDataplane, s conversion.Scope) error
Convert_calico_EbpfDataplane_To_v1alpha1_EbpfDataplane is an autogenerated conversion function.
func Convert_calico_IPAM_To_v1alpha1_IPAM ¶
Convert_calico_IPAM_To_v1alpha1_IPAM is an autogenerated conversion function.
func Convert_calico_IPv4_To_v1alpha1_IPv4 ¶
Convert_calico_IPv4_To_v1alpha1_IPv4 is an autogenerated conversion function.
func Convert_calico_IPv6_To_v1alpha1_IPv6 ¶ added in v1.38.0
Convert_calico_IPv6_To_v1alpha1_IPv6 is an autogenerated conversion function.
func Convert_calico_NetworkConfig_To_v1alpha1_NetworkConfig ¶
func Convert_calico_NetworkConfig_To_v1alpha1_NetworkConfig(in *calico.NetworkConfig, out *NetworkConfig, s conversion.Scope) error
Convert_calico_NetworkConfig_To_v1alpha1_NetworkConfig is an autogenerated conversion function.
func Convert_calico_NetworkStatus_To_v1alpha1_NetworkStatus ¶
func Convert_calico_NetworkStatus_To_v1alpha1_NetworkStatus(in *calico.NetworkStatus, out *NetworkStatus, s conversion.Scope) error
Convert_calico_NetworkStatus_To_v1alpha1_NetworkStatus is an autogenerated conversion function.
func Convert_calico_Overlay_To_v1alpha1_Overlay ¶ added in v1.27.0
func Convert_calico_Overlay_To_v1alpha1_Overlay(in *calico.Overlay, out *Overlay, s conversion.Scope) error
Convert_calico_Overlay_To_v1alpha1_Overlay is an autogenerated conversion function.
func Convert_calico_SnatToUpstreamDNS_To_v1alpha1_SnatToUpstreamDNS ¶ added in v1.28.0
func Convert_calico_SnatToUpstreamDNS_To_v1alpha1_SnatToUpstreamDNS(in *calico.SnatToUpstreamDNS, out *SnatToUpstreamDNS, s conversion.Scope) error
Convert_calico_SnatToUpstreamDNS_To_v1alpha1_SnatToUpstreamDNS is an autogenerated conversion function.
func Convert_calico_StaticResources_To_v1alpha1_StaticResources ¶ added in v1.41.0
func Convert_calico_StaticResources_To_v1alpha1_StaticResources(in *calico.StaticResources, out *StaticResources, s conversion.Scope) error
Convert_calico_StaticResources_To_v1alpha1_StaticResources is an autogenerated conversion function.
func Convert_calico_Typha_To_v1alpha1_Typha ¶
Convert_calico_Typha_To_v1alpha1_Typha is an autogenerated conversion function.
func Convert_v1alpha1_AutoScaling_To_calico_AutoScaling ¶ added in v1.37.0
func Convert_v1alpha1_AutoScaling_To_calico_AutoScaling(in *AutoScaling, out *calico.AutoScaling, s conversion.Scope) error
Convert_v1alpha1_AutoScaling_To_calico_AutoScaling is an autogenerated conversion function.
func Convert_v1alpha1_EbpfDataplane_To_calico_EbpfDataplane ¶ added in v1.20.0
func Convert_v1alpha1_EbpfDataplane_To_calico_EbpfDataplane(in *EbpfDataplane, out *calico.EbpfDataplane, s conversion.Scope) error
Convert_v1alpha1_EbpfDataplane_To_calico_EbpfDataplane is an autogenerated conversion function.
func Convert_v1alpha1_IPAM_To_calico_IPAM ¶
Convert_v1alpha1_IPAM_To_calico_IPAM is an autogenerated conversion function.
func Convert_v1alpha1_IPv4_To_calico_IPv4 ¶
Convert_v1alpha1_IPv4_To_calico_IPv4 is an autogenerated conversion function.
func Convert_v1alpha1_IPv6_To_calico_IPv6 ¶ added in v1.38.0
Convert_v1alpha1_IPv6_To_calico_IPv6 is an autogenerated conversion function.
func Convert_v1alpha1_NetworkConfig_To_calico_NetworkConfig ¶
func Convert_v1alpha1_NetworkConfig_To_calico_NetworkConfig(in *NetworkConfig, out *calico.NetworkConfig, s conversion.Scope) error
Convert_v1alpha1_NetworkConfig_To_calico_NetworkConfig is an autogenerated conversion function.
func Convert_v1alpha1_NetworkStatus_To_calico_NetworkStatus ¶
func Convert_v1alpha1_NetworkStatus_To_calico_NetworkStatus(in *NetworkStatus, out *calico.NetworkStatus, s conversion.Scope) error
Convert_v1alpha1_NetworkStatus_To_calico_NetworkStatus is an autogenerated conversion function.
func Convert_v1alpha1_Overlay_To_calico_Overlay ¶ added in v1.27.0
func Convert_v1alpha1_Overlay_To_calico_Overlay(in *Overlay, out *calico.Overlay, s conversion.Scope) error
Convert_v1alpha1_Overlay_To_calico_Overlay is an autogenerated conversion function.
func Convert_v1alpha1_SnatToUpstreamDNS_To_calico_SnatToUpstreamDNS ¶ added in v1.28.0
func Convert_v1alpha1_SnatToUpstreamDNS_To_calico_SnatToUpstreamDNS(in *SnatToUpstreamDNS, out *calico.SnatToUpstreamDNS, s conversion.Scope) error
Convert_v1alpha1_SnatToUpstreamDNS_To_calico_SnatToUpstreamDNS is an autogenerated conversion function.
func Convert_v1alpha1_StaticResources_To_calico_StaticResources ¶ added in v1.41.0
func Convert_v1alpha1_StaticResources_To_calico_StaticResources(in *StaticResources, out *calico.StaticResources, s conversion.Scope) error
Convert_v1alpha1_StaticResources_To_calico_StaticResources is an autogenerated conversion function.
func Convert_v1alpha1_Typha_To_calico_Typha ¶
Convert_v1alpha1_Typha_To_calico_Typha is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AutoScaling ¶ added in v1.37.0
type AutoScaling struct { // Mode defines how the calico components are automatically scaled. It allows to use static configuration, vertical pod or cluster-proportional autoscaler (default: cluster-proportional). Mode AutoscalingMode `json:"mode"` // Resources optionally defines the amount of resources to statically allocate for the calico components. Resources *StaticResources `json:"resources,omitempty"` }
AutoScaling defines how the calico components are automatically scaled. It allows to use static configuration, vertical pod or cluster-proportional autoscaler (default: cluster-proportional).
func (*AutoScaling) DeepCopy ¶ added in v1.37.0
func (in *AutoScaling) DeepCopy() *AutoScaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScaling.
func (*AutoScaling) DeepCopyInto ¶ added in v1.37.0
func (in *AutoScaling) DeepCopyInto(out *AutoScaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoscalingMode ¶ added in v1.37.0
type AutoscalingMode string
AutoscalingMode is a type alias for the autoscaling mode string.
const ( // AutoscalingModeClusterProportional is a constant for cluster-proportional autoscaling mode. AutoscalingModeClusterProportional AutoscalingMode = "cluster-proportional" // AutoscalingModeVPA is a constant for vertical pod autoscaling mode. AutoscalingModeVPA AutoscalingMode = "vpa" // AutoscalingModeStatic is a constant for static resource allocation as autoscaling mode. AutoscalingModeStatic AutoscalingMode = "static" )
type EbpfDataplane ¶ added in v1.20.0
type EbpfDataplane struct { // Enabled enables the eBPF dataplane mode. Enabled bool `json:"enabled"` }
func (*EbpfDataplane) DeepCopy ¶ added in v1.20.0
func (in *EbpfDataplane) DeepCopy() *EbpfDataplane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EbpfDataplane.
func (*EbpfDataplane) DeepCopyInto ¶ added in v1.20.0
func (in *EbpfDataplane) DeepCopyInto(out *EbpfDataplane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPAM ¶
type IPAM struct { // Type defines the IPAM plugin type Type string `json:"type"` // CIDR defines the CIDR block to be used // +optional CIDR *CIDR `json:"cidr,omitempty"` }
IPAM defines the block that configuration for the ip assignment plugin to be used
func (*IPAM) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAM.
func (*IPAM) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPv4 ¶
type IPv4 struct { // Pool configures the type of ip pool for the tunnel interface // https://docs.projectcalico.org/v3.8/reference/node/configuration#environment-variables // +optional Pool *Pool `json:"pool,omitempty"` // Mode is the mode for the IPv4 Pool (e.g. Always, Never, CrossSubnet) // ipip pools accept all pool mode values values // vxlan pools accept only Always and Never (unchecked) // +optional Mode *PoolMode `json:"mode,omitempty"` // AutoDetectionMethod is the method to use to autodetect the IPv4 address for this host. This is only used when the IPv4 address is being autodetected. // https://docs.projectcalico.org/v3.8/reference/node/configuration#ip-autodetection-methods // +optional AutoDetectionMethod *string `json:"autoDetectionMethod,omitempty"` }
IPv4 contains configuration for calico ipv4 specific settings
func (*IPv4) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4.
func (*IPv4) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPv4PoolMode ¶
type IPv4PoolMode = PoolMode
type IPv6 ¶ added in v1.38.0
type IPv6 struct { // Pool configures the type of ip pool for the tunnel interface // https://docs.tigera.io/calico/latest/reference/configure-calico-node#configuring-the-default-ip-pools // +optional Pool *Pool `json:"pool,omitempty"` // Mode is the mode for the IPv6 Pool (e.g. Always, Never, CrossSubnet) // TODO: VXLAN also supports CrossSubnet for VXLAN. Why is this not supported? // vxlan pools accept only Always and Never (unchecked) // +optional Mode *PoolMode `json:"mode,omitempty"` // AutoDetectionMethod is the method to use to autodetect the IPv6 address for this host. This is only used when the IPv6 address is being autodetected. // https://docs.projectcalico.org/v3.8/reference/node/configuration#ip-autodetection-methods // +optional AutoDetectionMethod *string `json:"autoDetectionMethod,omitempty"` }
IPv6 contains configuration for calico ipv6 specific settings
func (*IPv6) DeepCopy ¶ added in v1.38.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv6.
func (*IPv6) DeepCopyInto ¶ added in v1.38.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkConfig ¶
type NetworkConfig struct { metav1.TypeMeta `json:",inline"` // Backend defines whether a backend should be used or not (e.g., bird or none) // +optional Backend *Backend `json:"backend,omitempty"` // IPAM to use for the Calico Plugin (e.g., host-local or Calico) // +optional IPAM *IPAM `json:"ipam,omitempty"` // IPv4 contains configuration for calico ipv4 specific settings // +optional IPv4 *IPv4 `json:"ipv4,omitempty"` // IPv6 contains configuration for calico ipv4 specific settings // +optional IPv6 *IPv6 `json:"ipv6,omitempty"` // Typha settings to use for calico-typha component // +optional Typha *Typha `json:"typha,omitempty"` // VethMTU settings used to configure calico port mtu // +optional VethMTU *string `json:"vethMTU,omitempty"` // EbpfDataplane enables the eBPF dataplane mode. // +optional EbpfDataplane *EbpfDataplane `json:"ebpfDataplane,omitempty"` // Overlay enables the network overlay // +optional Overlay *Overlay `json:"overlay,omitempty"` // SnatToUpstreamDNS enables the masquerading of packets to the upstream dns server (default: enabled) // +optional SnatToUpstreamDNS *SnatToUpstreamDNS `json:"snatToUpstreamDNS,omitempty"` // AutoScaling defines how the calico components are automatically scaled. It allows to use static configuration, vertical pod or cluster-proportional autoscaler (default: cluster-proportional). // +optional AutoScaling *AutoScaling `json:"autoScaling,omitempty"` // DEPRECATED. // IPIP is the IPIP Mode for the IPv4 Pool (e.g. Always, Never, CrossSubnet) // It was moved into the IPv4 struct, kept for backwards compatibility. // Will be removed in a future Gardener release. // +optional IPIP *PoolMode `json:"ipip,omitempty"` // DEPRECATED. // IPAutoDetectionMethod is the method to use to autodetect the IPv4 address for this host. This is only used when the IPv4 address is being autodetected. // It was moved into the IPv4 struct, kept for backwards compatibility. // Will be removed in a future Gardener release. // +optional IPAutoDetectionMethod *string `json:"ipAutodetectionMethod,omitempty"` // WireguardEncryption is the option to enable node to node wireguard encryption WireguardEncryption bool `json:"wireguardEncryption,omitempty"` }
NetworkConfig configuration for the calico networking plugin
func (*NetworkConfig) DeepCopy ¶
func (in *NetworkConfig) DeepCopy() *NetworkConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkConfig.
func (*NetworkConfig) DeepCopyInto ¶
func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkConfig) DeepCopyObject ¶
func (in *NetworkConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkStatus ¶
NetworkStatus contains information about created Network resources.
func (*NetworkStatus) DeepCopy ¶
func (in *NetworkStatus) DeepCopy() *NetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkStatus.
func (*NetworkStatus) DeepCopyInto ¶
func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkStatus) DeepCopyObject ¶
func (in *NetworkStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Overlay ¶ added in v1.27.0
type Overlay struct { // Enabled enables the network overlay. Enabled bool `json:"enabled"` // CreatePodRoutes installs routes to pods on all cluster nodes. // This will only work if the cluster nodes share a single L2 network. // +optional CreatePodRoutes *bool `json:"createPodRoutes,omitempty"` }
func (*Overlay) DeepCopy ¶ added in v1.27.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overlay.
func (*Overlay) DeepCopyInto ¶ added in v1.27.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatToUpstreamDNS ¶ added in v1.28.0
type SnatToUpstreamDNS struct {
Enabled bool `json:"enabled"`
}
SnatToUpstreamDNS enables the masquerading of packets to the upstream dns server
func (*SnatToUpstreamDNS) DeepCopy ¶ added in v1.28.0
func (in *SnatToUpstreamDNS) DeepCopy() *SnatToUpstreamDNS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatToUpstreamDNS.
func (*SnatToUpstreamDNS) DeepCopyInto ¶ added in v1.28.0
func (in *SnatToUpstreamDNS) DeepCopyInto(out *SnatToUpstreamDNS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StaticResources ¶ added in v1.41.0
type StaticResources struct { // Node optionally defines the amount of resources to statically allocate for the calico node component. Node *corev1.ResourceList `json:"node,omitempty"` // Node optionally defines the amount of resources to statically allocate for the calico typha component. Typha *corev1.ResourceList `json:"typha,omitempty"` }
StaticResources optionally defines the amount of resources to statically allocate for the calico components.
func (*StaticResources) DeepCopy ¶ added in v1.41.0
func (in *StaticResources) DeepCopy() *StaticResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticResources.
func (*StaticResources) DeepCopyInto ¶ added in v1.41.0
func (in *StaticResources) DeepCopyInto(out *StaticResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Typha ¶
type Typha struct { // Enabled is used to define whether calico-typha is required or not. // Note, typha is used to offload kubernetes API server, // thus consider not to disable it for large clusters in terms of node count. // More info can be found here https://docs.projectcalico.org/v3.9/reference/typha/ Enabled bool `json:"enabled"` }
Typha defines the block with configurations for calico typha
func (*Typha) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Typha.
func (*Typha) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.