calico

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const GroupName = "calico.networking.extensions.gardener.cloud"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

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 either vertical pod or cluster-proportional autoscaler (default: cluster-proportional).
	Mode AutoscalingMode
}

AutoScaling defines how the calico components are automatically scaled. It allows to use either 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"
)

type Backend

type Backend string
const (
	Bird  Backend = "bird"
	None  Backend = "none"
	VXLan Backend = "vxlan"
)

type CIDR

type CIDR string

type EbpfDataplane added in v1.20.0

type EbpfDataplane struct {
	// Enabled enables the eBPF dataplane mode.
	Enabled bool
}

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
	// CIDR defines the CIDR block to be used
	CIDR *CIDR
}

IPAM defines the block that configuration for the ip assignment plugin to be used

func (*IPAM) DeepCopy

func (in *IPAM) DeepCopy() *IPAM

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

func (*IPAM) DeepCopyInto

func (in *IPAM) DeepCopyInto(out *IPAM)

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
	Pool *Pool
	// 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)
	Mode *PoolMode
	// 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
	AutoDetectionMethod *string
}

IPv4 contains configuration for calico ipv4 specific settings

func (*IPv4) DeepCopy

func (in *IPv4) DeepCopy() *IPv4

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

func (*IPv4) DeepCopyInto

func (in *IPv4) DeepCopyInto(out *IPv4)

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

type IPv4Pool

type IPv4Pool = Pool

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
	Pool *Pool
	// Mode is the mode for the IPv6 Pool (e.g. Always, Never, CrossSubnet)
	// vxlan pools accept only Always and Never (unchecked)
	Mode *PoolMode
	// 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
	AutoDetectionMethod *string
}

IPv6 contains configuration for calico ipv6 specific settings

func (*IPv6) DeepCopy added in v1.38.0

func (in *IPv6) DeepCopy() *IPv6

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

func (*IPv6) DeepCopyInto added in v1.38.0

func (in *IPv6) DeepCopyInto(out *IPv6)

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

type NetworkConfig

type NetworkConfig struct {
	metav1.TypeMeta
	// Backend defines whether a backend should be used or not (e.g., bird or none)
	Backend *Backend
	// IPAM to use for the Calico Plugin (e.g., host-local or Calico)
	IPAM *IPAM
	// IPv4 contains configuration for calico ipv4 specific settings
	IPv4 *IPv4
	// IPv6 contains configuration for calico ipv4 specific settings
	IPv6 *IPv6
	// Typha settings to use for calico-typha component
	Typha *Typha
	// VethMTU settings used to configure calico port mtu
	VethMTU *string
	// EbpfDataplane enables the eBPF dataplane mode.
	EbpfDataplane *EbpfDataplane
	// Overlay enables the network overlay
	Overlay *Overlay
	// SnatToUpstreamDNS enables the masquerading of packets to the upstream dns server (default: enabled)
	SnatToUpstreamDNS *SnatToUpstreamDNS
	// AutoScaling defines how the calico components are automatically scaled. It allows to use either vertical pod or cluster-proportional autoscaler (default: cluster-proportional).
	// +optional
	AutoScaling *AutoScaling

	// 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.
	IPIP *PoolMode
	// 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.
	IPAutoDetectionMethod *string

	// WireguardEncryption is the option to enable node to node wireguard encryption
	WireguardEncryption bool
}

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

type NetworkStatus struct {
	metav1.TypeMeta
}

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
	// CreatePodRoutes installs routes to pods on all cluster nodes.
	// This will only work if the cluster nodes share a single L2 network.
	CreatePodRoutes *bool
}

func (*Overlay) DeepCopy added in v1.27.0

func (in *Overlay) DeepCopy() *Overlay

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

func (*Overlay) DeepCopyInto added in v1.27.0

func (in *Overlay) DeepCopyInto(out *Overlay)

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

type Pool added in v1.38.0

type Pool string
const (
	PoolIPIP  Pool = "ipip"
	PoolVXLan Pool = "vxlan"
)

type PoolMode added in v1.38.0

type PoolMode string
const (
	Always      PoolMode = "Always"
	Never       PoolMode = "Never"
	CrossSubnet PoolMode = "CrossSubnet"
	Off         PoolMode = "Off"
)

type SnatToUpstreamDNS added in v1.28.0

type SnatToUpstreamDNS struct {
	Enabled bool
}

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 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
}

Typha defines the block with configurations for calico typha

func (*Typha) DeepCopy

func (in *Typha) DeepCopy() *Typha

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

func (*Typha) DeepCopyInto

func (in *Typha) DeepCopyInto(out *Typha)

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

Directories

Path Synopsis
Package v1alpha1 contains the configuration of the Calico Network Extension.
Package v1alpha1 contains the configuration of the Calico Network Extension.

Jump to

Keyboard shortcuts

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