Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type BPFSocketLBHostnsOnly
- type CNI
- type EgressGateway
- type ExternalIP
- type Hubble
- type IPv6
- type IdentityAllocationMode
- type InstallIPTableRules
- type KubeProxy
- type KubeProxyReplacementMode
- type LoadBalancingMode
- type NetworkConfig
- type NodePortMode
- type Nodeport
- type Overlay
- type SnatOutOfCluster
- type SnatToUpstreamDNS
- type Store
- type TunnelMode
Constants ¶
const GroupName = "cilium.networking.extensions.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BPFSocketLBHostnsOnly ¶ added in v1.11.0
type BPFSocketLBHostnsOnly struct {
Enabled bool
}
BPFSocketLBHostnsOnly enablement for cilium
func (*BPFSocketLBHostnsOnly) DeepCopy ¶ added in v1.11.0
func (in *BPFSocketLBHostnsOnly) DeepCopy() *BPFSocketLBHostnsOnly
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BPFSocketLBHostnsOnly.
func (*BPFSocketLBHostnsOnly) DeepCopyInto ¶ added in v1.11.0
func (in *BPFSocketLBHostnsOnly) DeepCopyInto(out *BPFSocketLBHostnsOnly)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CNI ¶ added in v1.28.0
type CNI struct {
Exclusive bool
}
CNI configuration for cilium
func (*CNI) DeepCopy ¶ added in v1.28.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNI.
func (*CNI) DeepCopyInto ¶ added in v1.28.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EgressGateway ¶ added in v1.14.0
type EgressGateway struct {
Enabled bool
}
EgressGateway enablement for cilium
func (*EgressGateway) DeepCopy ¶ added in v1.14.0
func (in *EgressGateway) DeepCopy() *EgressGateway
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressGateway.
func (*EgressGateway) DeepCopyInto ¶ added in v1.14.0
func (in *EgressGateway) DeepCopyInto(out *EgressGateway)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalIP ¶
type ExternalIP struct { // ExternalIPenabled is used to define whether ExternalIP address is required or not. Enabled bool }
ExternalIPs configuration for cilium
func (*ExternalIP) DeepCopy ¶
func (in *ExternalIP) DeepCopy() *ExternalIP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalIP.
func (*ExternalIP) DeepCopyInto ¶
func (in *ExternalIP) DeepCopyInto(out *ExternalIP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Hubble ¶
type Hubble struct { // Enabled defines whether hubble will be enabled for the cluster. Enabled bool }
Hubble enablement for cilium
func (*Hubble) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hubble.
func (*Hubble) DeepCopyInto ¶
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 }
IPv6 enablement for cilium
func (*IPv6) DeepCopy ¶ added in v1.6.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv6.
func (*IPv6) DeepCopyInto ¶ added in v1.6.0
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 InstallIPTableRules ¶
type InstallIPTableRules struct {
Enabled bool
}
InstallIPTableRules configuration for cilium
func (*InstallIPTableRules) DeepCopy ¶
func (in *InstallIPTableRules) DeepCopy() *InstallIPTableRules
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallIPTableRules.
func (*InstallIPTableRules) DeepCopyInto ¶
func (in *InstallIPTableRules) DeepCopyInto(out *InstallIPTableRules)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeProxy ¶
type KubeProxy struct { // ServiceHost specify the controlplane node IP Address. ServiceHost *string // ServicePort specify the kube-apiserver port number. ServicePort *int32 }
KubeProxy configuration for cilium
func (*KubeProxy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxy.
func (*KubeProxy) DeepCopyInto ¶
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" // Disabled defines the disabled kube-proxy replacement mode KubeProxyReplacementDisabled KubeProxyReplacementMode = "disabled" // KubeProxyReplacementTrue defines the true kube-proxy replacement mode KubeProxyReplacementTrue KubeProxyReplacementMode = "true" // KubeProxyReplacementFalse defines the false kube-proxy replacement mode KubeProxyReplacementFalse KubeProxyReplacementMode = "false" )
type LoadBalancingMode ¶ added in v1.18.0
type LoadBalancingMode string
LoadBalancingMode defines what load balancing mode to use for Cilium.
const ( // SNAT defines the snat load balancing mode SNAT LoadBalancingMode = "snat" // DSR defines the dsr load balancing mode DSR LoadBalancingMode = "dsr" // Hybrid defines the hybrid load balancing mode Hybrid LoadBalancingMode = "hybrid" )
type NetworkConfig ¶
type NetworkConfig struct { metav1.TypeMeta // Debug configuration to be enabled or not Debug *bool // PSPEnabled configuration PSPEnabled *bool // KubeProxy configuration to be enabled or not KubeProxy *KubeProxy // Hubble configuration to be enabled or not Hubble *Hubble // TunnelMode configuration, it should be 'vxlan', 'geneve' or 'disabled' TunnelMode *TunnelMode // Store can be either Kubernetes or etcd. Store *Store // Enable IPv6 IPv6 *IPv6 // BPFSocketLBHostnsOnly flag to be enabled or not BPFSocketLBHostnsOnly *BPFSocketLBHostnsOnly // CNI configuration CNI *CNI // EgressGateway flag to be enabled or not EgressGateway *EgressGateway // MTU overwrites the auto-detected MTU of the underlying network MTU *int // Devices is the list of devices facing cluster/external network Devices []string // LoadBalancingMode configuration, it should be 'snat', 'dsr' or 'hybrid' LoadBalancingMode *LoadBalancingMode // IPv4NativeRoutingCIDRMode will set the ipv4 native routing cidr from the network configs node's cidr if enabled. IPv4NativeRoutingCIDREnabled *bool // Overlay enables the network overlay Overlay *Overlay // SnatToUpstreamDNS enables the masquerading of packets to the upstream dns server SnatToUpstreamDNS *SnatToUpstreamDNS // SnatOutOfCluster enables the masquerading of packets outside of the cluster SnatOutOfCluster *SnatOutOfCluster }
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 (
Hybird NodePortMode = "hybrid"
)
type Nodeport ¶
type Nodeport struct { // Enabled is used to define whether Nodeport is required or not. Enabled bool // Mode is the mode of NodePort feature Mode NodePortMode }
Nodeport enablement for cilium
func (*Nodeport) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nodeport.
func (*Nodeport) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Overlay ¶ added in v1.18.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 }
Overlay configuration for cilium
func (*Overlay) DeepCopy ¶ added in v1.18.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overlay.
func (*Overlay) DeepCopyInto ¶ added in v1.18.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatOutOfCluster ¶ added in v1.22.0
type SnatOutOfCluster struct {
Enabled bool
}
SnatOutOfCluster enables the masquerading of packets outside of the cluster
func (*SnatOutOfCluster) DeepCopy ¶ added in v1.22.0
func (in *SnatOutOfCluster) DeepCopy() *SnatOutOfCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatOutOfCluster.
func (*SnatOutOfCluster) DeepCopyInto ¶ added in v1.22.0
func (in *SnatOutOfCluster) DeepCopyInto(out *SnatOutOfCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatToUpstreamDNS ¶ added in v1.20.0
type SnatToUpstreamDNS struct {
Enabled bool
}
SnatToUpstreamDNS enables the masquerading of packets to the upstream dns server
func (*SnatToUpstreamDNS) DeepCopy ¶ added in v1.20.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.20.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 Store ¶
type Store string
Store defines the kubernetes storage backend
const ( // Kubernetes defines the kubernetes CRD store type Kubernetes Store = "kubernetes" )
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" )