k8s/control-plane: cleanup excessive defaulting

pull/11567/head
Max Gautier 2024-09-23 20:37:56 +02:00
parent baf0a331c9
commit a2a2dfa419
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ apiServer:
profiling: "{{ kube_profiling }}" profiling: "{{ kube_profiling }}"
request-timeout: "{{ kube_apiserver_request_timeout }}" request-timeout: "{{ kube_apiserver_request_timeout }}"
enable-aggregator-routing: "{{ kube_api_aggregator_routing }}" enable-aggregator-routing: "{{ kube_api_aggregator_routing }}"
{% if kube_token_auth | default(true) %} {% if kube_token_auth %}
token-auth-file: {{ kube_token_dir }}/known_tokens.csv token-auth-file: {{ kube_token_dir }}/known_tokens.csv
{% endif %} {% endif %}
{% if kube_apiserver_service_account_lookup %} {% if kube_apiserver_service_account_lookup %}
@ -230,14 +230,14 @@ apiServer:
{% if kube_apiserver_tracing %} {% if kube_apiserver_tracing %}
tracing-config-file: {{ kube_config_dir }}/tracing/apiserver-tracing.yaml tracing-config-file: {{ kube_config_dir }}/tracing/apiserver-tracing.yaml
{% endif %} {% endif %}
{% if kubernetes_audit or kube_token_auth | default(true) or kube_webhook_token_auth | default(false) or ( cloud_provider is defined and cloud_provider in ["openstack", "azure", "vsphere", "aws", "gce"] ) or apiserver_extra_volumes or ssl_ca_dirs | length %} {% if kubernetes_audit or kube_token_auth or kube_webhook_token_auth or ( cloud_provider is defined and cloud_provider in ["openstack", "azure", "vsphere", "aws", "gce"] ) or apiserver_extra_volumes or ssl_ca_dirs | length %}
extraVolumes: extraVolumes:
{% if cloud_provider is defined and cloud_provider in ["openstack", "azure", "vsphere", "aws", "gce"] %} {% if cloud_provider is defined and cloud_provider in ["openstack", "azure", "vsphere", "aws", "gce"] %}
- name: cloud-config - name: cloud-config
hostPath: {{ kube_config_dir }}/cloud_config hostPath: {{ kube_config_dir }}/cloud_config
mountPath: {{ kube_config_dir }}/cloud_config mountPath: {{ kube_config_dir }}/cloud_config
{% endif %} {% endif %}
{% if kube_token_auth | default(true) %} {% if kube_token_auth %}
- name: token-auth-config - name: token-auth-config
hostPath: {{ kube_token_dir }} hostPath: {{ kube_token_dir }}
mountPath: {{ kube_token_dir }} mountPath: {{ kube_token_dir }}