v1alpha1

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0, MIT Imports: 6 Imported by: 1

Documentation

Overview

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

Index

Constants

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

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme is a global function that registers this API group & version to a scheme
	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_cilium_Hubble_To_v1alpha1_Hubble

func Convert_cilium_Hubble_To_v1alpha1_Hubble(in *cilium.Hubble, out *Hubble, s conversion.Scope) error

Convert_cilium_Hubble_To_v1alpha1_Hubble is an autogenerated conversion function.

func Convert_cilium_IPv6_To_v1alpha1_IPv6 added in v1.6.0

func Convert_cilium_IPv6_To_v1alpha1_IPv6(in *cilium.IPv6, out *IPv6, s conversion.Scope) error

Convert_cilium_IPv6_To_v1alpha1_IPv6 is an autogenerated conversion function.

func Convert_cilium_KubeProxy_To_v1alpha1_KubeProxy

func Convert_cilium_KubeProxy_To_v1alpha1_KubeProxy(in *cilium.KubeProxy, out *KubeProxy, s conversion.Scope) error

Convert_cilium_KubeProxy_To_v1alpha1_KubeProxy is an autogenerated conversion function.

func Convert_cilium_NetworkConfig_To_v1alpha1_NetworkConfig

func Convert_cilium_NetworkConfig_To_v1alpha1_NetworkConfig(in *cilium.NetworkConfig, out *NetworkConfig, s conversion.Scope) error

Convert_cilium_NetworkConfig_To_v1alpha1_NetworkConfig is an autogenerated conversion function.

func Convert_cilium_Nodeport_To_v1alpha1_Nodeport

func Convert_cilium_Nodeport_To_v1alpha1_Nodeport(in *cilium.Nodeport, out *Nodeport, s conversion.Scope) error

Convert_cilium_Nodeport_To_v1alpha1_Nodeport is an autogenerated conversion function.

func Convert_v1alpha1_Hubble_To_cilium_Hubble

func Convert_v1alpha1_Hubble_To_cilium_Hubble(in *Hubble, out *cilium.Hubble, s conversion.Scope) error

Convert_v1alpha1_Hubble_To_cilium_Hubble is an autogenerated conversion function.

func Convert_v1alpha1_IPv6_To_cilium_IPv6 added in v1.6.0

func Convert_v1alpha1_IPv6_To_cilium_IPv6(in *IPv6, out *cilium.IPv6, s conversion.Scope) error

Convert_v1alpha1_IPv6_To_cilium_IPv6 is an autogenerated conversion function.

func Convert_v1alpha1_KubeProxy_To_cilium_KubeProxy

func Convert_v1alpha1_KubeProxy_To_cilium_KubeProxy(in *KubeProxy, out *cilium.KubeProxy, s conversion.Scope) error

Convert_v1alpha1_KubeProxy_To_cilium_KubeProxy is an autogenerated conversion function.

func Convert_v1alpha1_NetworkConfig_To_cilium_NetworkConfig

func Convert_v1alpha1_NetworkConfig_To_cilium_NetworkConfig(in *NetworkConfig, out *cilium.NetworkConfig, s conversion.Scope) error

Convert_v1alpha1_NetworkConfig_To_cilium_NetworkConfig is an autogenerated conversion function.

func Convert_v1alpha1_Nodeport_To_cilium_Nodeport

func Convert_v1alpha1_Nodeport_To_cilium_Nodeport(in *Nodeport, out *cilium.Nodeport, s conversion.Scope) error

Convert_v1alpha1_Nodeport_To_cilium_Nodeport is an autogenerated conversion function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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 Hubble

type Hubble struct {
	// Enabled indicates whether hubble is enabled or not.
	Enabled bool `json:"enabled"`
}

Hubble enablement for cilium

func (*Hubble) DeepCopy

func (in *Hubble) DeepCopy() *Hubble

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

func (*Hubble) DeepCopyInto

func (in *Hubble) DeepCopyInto(out *Hubble)

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

type IPv6 added in v1.6.0

type IPv6 struct {
	// Enabled indicates whether IPv6 is enabled or not.
	Enabled bool `json:"enabled"`
}

IPv6 enablement for cilium

func (*IPv6) DeepCopy added in v1.6.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.6.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 IdentityAllocationMode

type IdentityAllocationMode string

IdentityAllocationMode selects how identities are shared between cilium nodes by setting how they are stored. The options are "crd" or "kvstore".

const (
	// CRD defines the crd IdentityAllocationMode type.
	CRD IdentityAllocationMode = "crd"
	// KVStore defines the kvstore IdentityAllocationMode type.
	KVStore IdentityAllocationMode = "kvstore"
)

type KubeProxy

type KubeProxy struct {
	// ServiceHost specify the controlplane node IP Address.
	// +optional
	ServiceHost *string `json:"k8sServiceHost,omitempty"`
	// ServicePort specify the kube-apiserver port number.
	// +optional
	ServicePort *int32 `json:"k8sServicePort,omitempty"`
}

KubeProxy configuration for cilium

func (*KubeProxy) DeepCopy

func (in *KubeProxy) DeepCopy() *KubeProxy

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

func (*KubeProxy) DeepCopyInto

func (in *KubeProxy) DeepCopyInto(out *KubeProxy)

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

type KubeProxyReplacementMode

type KubeProxyReplacementMode string

KubeProxyReplacementMode defines which mode should kube-proxy run in. More infromation here: https://docs.cilium.io/en/v1.7/gettingstarted/kubeproxy-free/

const (
	// Strict defines the strict kube-proxy replacement mode
	Strict KubeProxyReplacementMode = "strict"
	// Probe defines the probe kube-proxy replacement mode
	Probe KubeProxyReplacementMode = "probe"
	// Partial defines the partial kube-proxy replacement mode
	Partial KubeProxyReplacementMode = "partial"
)

type NetworkConfig

type NetworkConfig struct {
	metav1.TypeMeta `json:",inline"`
	// Debug configuration to be enabled or not
	// +optional
	Debug *bool `json:"debug,omitempty"`
	// PSPEnabled configuration
	// +optional
	PSPEnabled *bool `json:"psp,omitempty"`
	// KubeProxy configuration to be enabled or not
	// +optional
	KubeProxy *KubeProxy `json:"kubeproxy,omitempty"`
	// Hubble configuration to be enabled or not
	// +optional
	Hubble *Hubble `json:"hubble,omitempty"`
	// TunnelMode configuration, it should be 'vxlan', 'geneve' or 'disabled'
	// +optional
	TunnelMode *TunnelMode `json:"tunnel,omitempty"`
	// Store can be either Kubernetes or etcd.
	// +optional
	Store *Store `json:"store,omitempty"`
	// Enable IPv6
	// +optional
	IPv6 *IPv6 `json:"ipv6,omitempty"`
}

NetworkConfig is a struct representing the configmap for the cilium 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 NodePortMode

type NodePortMode string

NodePortMode defines how NodePort services are enabled.

const (
	// Hybrid defines the hybrid nodeport mode.
	Hybird NodePortMode = "hybrid"
)

type Nodeport

type Nodeport struct {
	// Enabled is used to define whether Nodeport is required or not.
	Enabled bool `json:"nodePortEnabled"`
	// Mode is the mode of NodePort feature
	Mode NodePortMode `json:"nodePortMode"`
}

Nodeport enablement for cilium

func (*Nodeport) DeepCopy

func (in *Nodeport) DeepCopy() *Nodeport

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

func (*Nodeport) DeepCopyInto

func (in *Nodeport) DeepCopyInto(out *Nodeport)

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

type Store

type Store string

Store defines the kubernetes storage backend

const (
	// Kubernetes defines the kubernetes CRD store type
	Kubernetes Store = "kubernetes"
	// ETCD defines the ETCD store type
	ETCD Store = "etcd"
)

type TunnelMode

type TunnelMode string

TunnelMode defines what tunnel mode to use for Cilium.

const (
	// VXLan defines the vxlan tunnel mode
	VXLan TunnelMode = "vxlan"
	// Geneve defines the geneve tunnel mode.
	Geneve TunnelMode = "geneve"
	// Disabled defines the disabled tunnel mode.
	Disabled TunnelMode = "disabled"
)

Jump to

Keyboard shortcuts

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