From 323d788f48f1770e91dcef478bd9428be8d1cbca Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Wed, 20 Feb 2019 08:24:29 +0100 Subject: [PATCH] Add support for --enable-skip-login in Dashboard (#4265) --- roles/kubernetes-apps/ansible/defaults/main.yml | 1 + roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/roles/kubernetes-apps/ansible/defaults/main.yml b/roles/kubernetes-apps/ansible/defaults/main.yml index bf819baa6..55a015d5b 100644 --- a/roles/kubernetes-apps/ansible/defaults/main.yml +++ b/roles/kubernetes-apps/ansible/defaults/main.yml @@ -53,3 +53,4 @@ dashboard_tls_cert_file: dashboard.crt # Override dashboard default settings dashboard_token_ttl: 900 +dashboard_skip_login: false diff --git a/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 b/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 index 8213c8e58..6376e93f9 100644 --- a/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 @@ -163,6 +163,9 @@ spec: - --tls-cert-file={{ dashboard_tls_cert_file }} {% else %} - --auto-generate-certificates +{% endif %} +{% if dashboard_skip_login %} + - --enable-skip-login {% endif %} - --authentication-mode=token{% if kube_basic_auth|default(false) %},basic{% endif %} # Uncomment the following line to manually specify Kubernetes API server Host