Add optional setting for ca data in auth webhook (#8777)

* Add optional setting for ca data in auth webhook

* add webhook token auth variables to sample inventory
This commit is contained in:
David Louks
2022-05-05 16:52:43 -05:00
committed by GitHub
parent 94484873d1
commit 3e52a0db95
3 changed files with 16 additions and 2 deletions

View File

@@ -4,6 +4,9 @@ clusters:
cluster:
server: {{ kube_webhook_token_auth_url }}
insecure-skip-tls-verify: {{ kube_webhook_token_auth_url_skip_tls_verify }}
{% if kube_webhook_token_auth_ca_data is defined %}
certificate-authority-data: {{ kube_webhook_token_auth_ca_data }}
{% endif %}
# users refers to the API server's webhook configuration.
users: