Skip to content

Commit

Permalink
Merge pull request #15390 from hakman/automated-cherry-pick-of-#15389…
Browse files Browse the repository at this point in the history
…-upstream-release-1.26

Automated cherry pick of #15389: Support Cilium operator pod annotations
  • Loading branch information
k8s-ci-robot committed May 13, 2023
2 parents 24860f2 + de81124 commit 7f9971a
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 1 deletion.
6 changes: 6 additions & 0 deletions k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5036,6 +5036,12 @@ spec:
nodeInitBootstrapFile:
description: NodeInitBootstrapFile is unused.
type: string
operatorPodAnnotations:
additionalProperties:
type: string
description: 'OperatorPodAnnotations makes possible to add
additional annotations to cilium operator. Default: none'
type: object
pprof:
description: Pprof is unused.
type: boolean
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/kops/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,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"`
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/kops/v1alpha2/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/apis/kops/v1alpha3/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha3/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/apis/kops/v1alpha3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/apis/kops/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ spec:
ipam: kubernetes
memoryRequest: 128Mi
monitorAggregation: medium
operatorPodAnnotations:
test1: "true"
test2: "123"
test3: cilium-operator
sidecarIstioProxyImage: cilium/istio_proxy
toFqdnsDnsRejectResponseCode: refused
tunnel: vxlan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
version: 9.99.0
- id: k8s-1.16
manifest: networking.cilium.io/k8s-1.16-v1.12.yaml
manifestHash: 5a6e8ea91bfac11bc5d68b9a754bd516049e699c920b53ebf547c3530ae09a8d
manifestHash: e02776d76bde1fda7e4d5519ca132ba8485c9002bedb347312f27fe5493b84e8
name: networking.cilium.io
needsRollingUpdate: all
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ spec:
type: RollingUpdate
template:
metadata:
annotations:
test1: "true"
test2: "123"
test3: cilium-operator
creationTimestamp: null
labels:
io.cilium/app: operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,10 @@ spec:
type: RollingUpdate
template:
metadata:
annotations:
{{- range $key, $value := .OperatorPodAnnotations }}
{{ $key }}: "{{ $value }}"
{{- end }}
labels:
io.cilium/app: operator
name: cilium-operator
Expand Down

0 comments on commit 7f9971a

Please sign in to comment.