v1alpha1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the configuration of the Calico Network Extension. +groupName=calico.networking.extensions.gardener.cloud

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.SchemeBuilder

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_calico_IPAM_To_v1alpha1_IPAM

func Convert_calico_IPAM_To_v1alpha1_IPAM(in *calico.IPAM, out *IPAM, s conversion.Scope) error

Convert_calico_IPAM_To_v1alpha1_IPAM is an autogenerated conversion function.

func Convert_calico_IPv4_To_v1alpha1_IPv4

func Convert_calico_IPv4_To_v1alpha1_IPv4(in *calico.IPv4, out *IPv4, s conversion.Scope) error

Convert_calico_IPv4_To_v1alpha1_IPv4 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_Typha_To_v1alpha1_Typha

func Convert_calico_Typha_To_v1alpha1_Typha(in *calico.Typha, out *Typha, s conversion.Scope) error

Convert_calico_Typha_To_v1alpha1_Typha is an autogenerated conversion function.

func Convert_v1alpha1_IPAM_To_calico_IPAM

func Convert_v1alpha1_IPAM_To_calico_IPAM(in *IPAM, out *calico.IPAM, s conversion.Scope) error

Convert_v1alpha1_IPAM_To_calico_IPAM is an autogenerated conversion function.

func Convert_v1alpha1_IPv4_To_calico_IPv4

func Convert_v1alpha1_IPv4_To_calico_IPv4(in *IPv4, out *calico.IPv4, s conversion.Scope) error

Convert_v1alpha1_IPv4_To_calico_IPv4 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_Typha_To_calico_Typha

func Convert_v1alpha1_Typha_To_calico_Typha(in *Typha, out *calico.Typha, s conversion.Scope) error

Convert_v1alpha1_Typha_To_calico_Typha is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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 Backend

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

type CIDR

type CIDR string

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

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
	// +optional
	Pool *IPv4Pool `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 *IPv4PoolMode `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

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 string
const (
	PoolIPIP  IPv4Pool = "ipip"
	PoolVXLan IPv4Pool = "vxlan"
)

type IPv4PoolMode

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

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"`
	// 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"`
	// 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"`

	// 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 *IPv4PoolMode `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"`
}

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 `json:",inline"`
}

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

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.

Jump to

Keyboard shortcuts

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