Support Cilium operator pod annotations

This commit is contained in:
Moshe Vayner 2023-05-09 21:50:36 -04:00
parent 40072c13e7
commit 99ff00df61
5 changed files with 17 additions and 0 deletions

View File

@ -391,6 +391,9 @@ type CiliumNetworkingSpec struct {
// AgentPodAnnotations makes possible to add additional annotations to cilium agent.
// Default: none
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".
// Default: vxlan
Tunnel string `json:"tunnel,omitempty"`

View File

@ -464,6 +464,9 @@ type CiliumNetworkingSpec struct {
// AgentPodAnnotations makes possible to add additional annotations to the cilium agent.
// Default: none
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.
// +k8s:conversion-gen=false
Pprof bool `json:"pprof,omitempty"`

View File

@ -354,6 +354,9 @@ type CiliumNetworkingSpec struct {
// AgentPodAnnotations makes possible to add additional annotations to the cilium agent.
// Default: none
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".
// Default: vxlan
Tunnel string `json:"tunnel,omitempty"`

View File

@ -30,6 +30,10 @@ spec:
test1: "true"
test2: "123"
test3: awesome
operatorPodAnnotations:
test1: "true"
test2: "123"
test3: cilium-operator
nonMasqueradeCIDR: 100.64.0.0/10
sshAccess:
- 0.0.0.0/0

View File

@ -964,6 +964,10 @@ spec:
type: RollingUpdate
template:
metadata:
annotations:
{{- range $key, $value := .OperatorPodAnnotations }}
{{ $key }}: "{{ $value }}"
{{- end }}
labels:
io.cilium/app: operator
name: cilium-operator