mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-09 02:17:39 -02:30
[cilium] add custom vars for clusterrole cilium operator (#10267)
This commit is contained in:
@@ -243,3 +243,22 @@
|
|||||||
|
|
||||||
# -- Whether to enable CNP status updates.
|
# -- Whether to enable CNP status updates.
|
||||||
# cilium_disable_cnp_status_updates: true
|
# cilium_disable_cnp_status_updates: true
|
||||||
|
|
||||||
|
# A list of extra rules variables to add to clusterrole for cilium operator, formatted like:
|
||||||
|
# cilium_clusterrole_rules_operator_extra_vars:
|
||||||
|
# - apiGroups:
|
||||||
|
# - '""'
|
||||||
|
# resources:
|
||||||
|
# - pods
|
||||||
|
# verbs:
|
||||||
|
# - delete
|
||||||
|
# - apiGroups:
|
||||||
|
# - '""'
|
||||||
|
# resources:
|
||||||
|
# - nodes
|
||||||
|
# verbs:
|
||||||
|
# - list
|
||||||
|
# - watch
|
||||||
|
# resourceNames:
|
||||||
|
# - toto
|
||||||
|
# cilium_clusterrole_rules_operator_extra_vars: []
|
||||||
|
|||||||
@@ -290,3 +290,22 @@ cilium_certgen_args:
|
|||||||
hubble-relay-client-cert-validity-duration: 94608000s
|
hubble-relay-client-cert-validity-duration: 94608000s
|
||||||
hubble-relay-client-cert-secret-name: hubble-relay-client-certs
|
hubble-relay-client-cert-secret-name: hubble-relay-client-certs
|
||||||
hubble-relay-server-cert-generate: false
|
hubble-relay-server-cert-generate: false
|
||||||
|
|
||||||
|
# A list of extra rules variables to add to clusterrole for cilium operator, formatted like:
|
||||||
|
# cilium_clusterrole_rules_operator_extra_vars:
|
||||||
|
# - apiGroups:
|
||||||
|
# - '""'
|
||||||
|
# resources:
|
||||||
|
# - pods
|
||||||
|
# verbs:
|
||||||
|
# - delete
|
||||||
|
# - apiGroups:
|
||||||
|
# - '""'
|
||||||
|
# resources:
|
||||||
|
# - nodes
|
||||||
|
# verbs:
|
||||||
|
# - list
|
||||||
|
# - watch
|
||||||
|
# resourceNames:
|
||||||
|
# - toto
|
||||||
|
cilium_clusterrole_rules_operator_extra_vars: []
|
||||||
|
|||||||
@@ -147,3 +147,23 @@ rules:
|
|||||||
- ciliumnetworkpolicies.cilium.io
|
- ciliumnetworkpolicies.cilium.io
|
||||||
- ciliumnodes.cilium.io
|
- ciliumnodes.cilium.io
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% for rules in cilium_clusterrole_rules_operator_extra_vars %}
|
||||||
|
- apiGroups:
|
||||||
|
{% for api in rules['apiGroups'] %}
|
||||||
|
- {{ api }}
|
||||||
|
{% endfor %}
|
||||||
|
resources:
|
||||||
|
{% for resource in rules['resources'] %}
|
||||||
|
- {{ resource }}
|
||||||
|
{% endfor %}
|
||||||
|
verbs:
|
||||||
|
{% for verb in rules['verbs'] %}
|
||||||
|
- {{ verb }}
|
||||||
|
{% endfor %}
|
||||||
|
{% if 'resourceNames' in rules %}
|
||||||
|
resourceNames:
|
||||||
|
{% for resourceName in rules['resourceNames'] %}
|
||||||
|
- {{ resourceName }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user