eeb376460d
* Fix inconsistent handling of admission plugin list * Adjust hardening doc with the normalized admission plugin list * Add pre-check for admission plugins format change * Ignore checking admission plugins value when variable is not defined
9 lines
309 B
Django/Jinja
9 lines
309 B
Django/Jinja
apiVersion: apiserver.config.k8s.io/v1
|
|
kind: AdmissionConfiguration
|
|
plugins:
|
|
{% for plugin in kube_apiserver_enable_admission_plugins %}
|
|
{% if plugin in kube_apiserver_admission_plugins_needs_configuration %}
|
|
- name: {{ plugin }}
|
|
path: {{ kube_config_dir }}/{{ plugin|lower }}.yaml
|
|
{% endif %}
|
|
{% endfor %}
|