mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-21 06:28:03 -03:30
* project: fix var-spacing ansible rule Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing on the beginning/end of jinja template Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing of default filter Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing between filter arguments Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix double space at beginning/end of jinja Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix remaining jinja[spacing] ansible-lint warning Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
18 lines
842 B
Django/Jinja
18 lines
842 B
Django/Jinja
{% if kube_pod_security_use_default %}
|
|
apiVersion: pod-security.admission.config.k8s.io/v1
|
|
kind: PodSecurityConfiguration
|
|
defaults:
|
|
enforce: "{{ kube_pod_security_default_enforce }}"
|
|
enforce-version: "{{ kube_pod_security_default_enforce_version }}"
|
|
audit: "{{ kube_pod_security_default_audit }}"
|
|
audit-version: "{{ kube_pod_security_default_audit_version }}"
|
|
warn: "{{ kube_pod_security_default_warn }}"
|
|
warn-version: "{{ kube_pod_security_default_warn_version }}"
|
|
exemptions:
|
|
usernames: {{ kube_pod_security_exemptions_usernames | to_json }}
|
|
runtimeClasses: {{ kube_pod_security_exemptions_runtime_class_names | to_json }}
|
|
namespaces: {{ kube_pod_security_exemptions_namespaces | to_json }}
|
|
{% else %}
|
|
# This file is intentinally left empty as kube_pod_security_use_default={{ kube_pod_security_use_default }}
|
|
{% endif %}
|