add new variable allowing additionnal audit webhook server options (#6726)
This commit is contained in:
parent
05c9169c70
commit
e489e70031
2 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,7 @@ kubernetes_audit_webhook: false
|
||||||
# path to audit webhook config file
|
# path to audit webhook config file
|
||||||
audit_webhook_config_file: "{{ kube_config_dir }}/audit-policy/apiserver-audit-webhook-config.yaml"
|
audit_webhook_config_file: "{{ kube_config_dir }}/audit-policy/apiserver-audit-webhook-config.yaml"
|
||||||
audit_webhook_server_url: "https://audit.app"
|
audit_webhook_server_url: "https://audit.app"
|
||||||
|
audit_webhook_server_extra_args: {}
|
||||||
audit_webhook_mode: batch
|
audit_webhook_mode: batch
|
||||||
audit_webhook_batch_max_size: 100
|
audit_webhook_batch_max_size: 100
|
||||||
audit_webhook_batch_max_wait: 1s
|
audit_webhook_batch_max_wait: 1s
|
||||||
|
|
|
@ -3,6 +3,9 @@ kind: Config
|
||||||
clusters:
|
clusters:
|
||||||
- cluster:
|
- cluster:
|
||||||
server: {{ audit_webhook_server_url }}
|
server: {{ audit_webhook_server_url }}
|
||||||
|
{% for key in audit_webhook_server_extra_args %}
|
||||||
|
{{ key }}: "{{ audit_webhook_server_extra_args[key] }}"
|
||||||
|
{% endfor %}
|
||||||
name: auditsink
|
name: auditsink
|
||||||
contexts:
|
contexts:
|
||||||
- context:
|
- context:
|
||||||
|
|
Loading…
Reference in a new issue