feat: add list option to disable k3s components
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2023-01-23 09:47:18 +01:00
parent b8f4148994
commit bf41674581
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 5 additions and 1 deletions

View File

@ -26,6 +26,9 @@ k3s_server_cloud_controller_enabled: True
k3s_server_workload_enabled: True
k3s_server_feature_gates: []
k3s_server_components_disabled:
- traefik
k3s_server_manifests_templates: []
k3s_server_manifests_urls: []

View File

@ -21,8 +21,9 @@ bind-address: "{{ k3s_server_bind_ip }}"
secrets-encryption: True
write-kubeconfig: "{{ __k3s_config_dir }}/k3s.yaml"
write-kubeconfig-mode: "0600"
{% if k3s_server_components_disabled | length > 0 %}
disable:
- traefik
{{ k3s_server_components_disabled | to_nice_yaml(indent=2) | indent(2, False) }}
{% if __k3s_kube_apiserver_arg is iterable %}
kube-apiserver-arg:
{{ __k3s_kube_apiserver_arg | to_nice_yaml(indent=2) | indent(2, False) }}