Browse Source

create cilium_operator_tolerations variable in group_var (#12200)

- This enables ithe override of the tolerations for the cilium-operator deployment
 - default behaviour is to leave the toleration as is unless the var is set
pull/12210/head
felipe88alves 4 months ago
committed by GitHub
parent
commit
9bbd597e20
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions
  1. 4
      roles/network_plugin/cilium/defaults/main.yml
  2. 2
      roles/network_plugin/cilium/templates/cilium-operator/deploy.yml.j2

4
roles/network_plugin/cilium/defaults/main.yml

@ -216,6 +216,10 @@ cilium_operator_extra_volume_mounts: []
# Extra arguments for the Cilium Operator # Extra arguments for the Cilium Operator
cilium_operator_custom_args: [] cilium_operator_custom_args: []
# Tolerations of the cilium operator
cilium_operator_tolerations:
- operator: "Exists"
# Name of the cluster. Only relevant when building a mesh of clusters. # Name of the cluster. Only relevant when building a mesh of clusters.
cilium_cluster_name: default cilium_cluster_name: default

2
roles/network_plugin/cilium/templates/cilium-operator/deploy.yml.j2

@ -146,7 +146,7 @@ spec:
matchLabels: matchLabels:
io.cilium/app: operator io.cilium/app: operator
tolerations: tolerations:
- operator: Exists
{{ cilium_operator_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
volumes: volumes:
- name: cilium-config-path - name: cilium-config-path
configMap: configMap:

Loading…
Cancel
Save