mirror of https://github.com/kubernetes/kops.git
Support Cilium operator pod annotations
This commit is contained in:
parent
40072c13e7
commit
99ff00df61
|
|
@ -391,6 +391,9 @@ type CiliumNetworkingSpec struct {
|
||||||
// AgentPodAnnotations makes possible to add additional annotations to cilium agent.
|
// AgentPodAnnotations makes possible to add additional annotations to cilium agent.
|
||||||
// Default: none
|
// Default: none
|
||||||
AgentPodAnnotations map[string]string `json:"agentPodAnnotations,omitempty"`
|
AgentPodAnnotations map[string]string `json:"agentPodAnnotations,omitempty"`
|
||||||
|
// OperatorPodAnnotations makes possible to add additional annotations to cilium operator.
|
||||||
|
// Default: none
|
||||||
|
OperatorPodAnnotations map[string]string `json:"operatorPodAnnotations,omitempty"`
|
||||||
// Tunnel specifies the Cilium tunnelling mode. Possible values are "vxlan", "geneve", or "disabled".
|
// Tunnel specifies the Cilium tunnelling mode. Possible values are "vxlan", "geneve", or "disabled".
|
||||||
// Default: vxlan
|
// Default: vxlan
|
||||||
Tunnel string `json:"tunnel,omitempty"`
|
Tunnel string `json:"tunnel,omitempty"`
|
||||||
|
|
|
||||||
|
|
@ -464,6 +464,9 @@ type CiliumNetworkingSpec struct {
|
||||||
// AgentPodAnnotations makes possible to add additional annotations to the cilium agent.
|
// AgentPodAnnotations makes possible to add additional annotations to the cilium agent.
|
||||||
// Default: none
|
// Default: none
|
||||||
AgentPodAnnotations map[string]string `json:"agentPodAnnotations,omitempty"`
|
AgentPodAnnotations map[string]string `json:"agentPodAnnotations,omitempty"`
|
||||||
|
// OperatorPodAnnotations makes possible to add additional annotations to cilium operator.
|
||||||
|
// Default: none
|
||||||
|
OperatorPodAnnotations map[string]string `json:"operatorPodAnnotations,omitempty"`
|
||||||
// Pprof is unused.
|
// Pprof is unused.
|
||||||
// +k8s:conversion-gen=false
|
// +k8s:conversion-gen=false
|
||||||
Pprof bool `json:"pprof,omitempty"`
|
Pprof bool `json:"pprof,omitempty"`
|
||||||
|
|
|
||||||
|
|
@ -354,6 +354,9 @@ type CiliumNetworkingSpec struct {
|
||||||
// AgentPodAnnotations makes possible to add additional annotations to the cilium agent.
|
// AgentPodAnnotations makes possible to add additional annotations to the cilium agent.
|
||||||
// Default: none
|
// Default: none
|
||||||
AgentPodAnnotations map[string]string `json:"agentPodAnnotations,omitempty"`
|
AgentPodAnnotations map[string]string `json:"agentPodAnnotations,omitempty"`
|
||||||
|
// OperatorPodAnnotations makes possible to add additional annotations to cilium operator.
|
||||||
|
// Default: none
|
||||||
|
OperatorPodAnnotations map[string]string `json:"operatorPodAnnotations,omitempty"`
|
||||||
// Tunnel specifies the Cilium tunnelling mode. Possible values are "vxlan", "geneve", or "disabled".
|
// Tunnel specifies the Cilium tunnelling mode. Possible values are "vxlan", "geneve", or "disabled".
|
||||||
// Default: vxlan
|
// Default: vxlan
|
||||||
Tunnel string `json:"tunnel,omitempty"`
|
Tunnel string `json:"tunnel,omitempty"`
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,10 @@ spec:
|
||||||
test1: "true"
|
test1: "true"
|
||||||
test2: "123"
|
test2: "123"
|
||||||
test3: awesome
|
test3: awesome
|
||||||
|
operatorPodAnnotations:
|
||||||
|
test1: "true"
|
||||||
|
test2: "123"
|
||||||
|
test3: cilium-operator
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
sshAccess:
|
sshAccess:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
|
|
|
||||||
|
|
@ -964,6 +964,10 @@ spec:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := .OperatorPodAnnotations }}
|
||||||
|
{{ $key }}: "{{ $value }}"
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
io.cilium/app: operator
|
io.cilium/app: operator
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue