Create namespace when dashboard deployment uses customized namespace. (#6107)

* Create namespace when dashboard deployment uses customized namespace.

* Fix syntax.
This commit is contained in:
petruha 2020-05-10 20:38:02 +02:00 committed by GitHub
parent b6243bfc1c
commit 9ce7fc9b2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,9 +17,18 @@
# #
# Example usage: kubectl create -f <this_file> # Example usage: kubectl create -f <this_file>
{% if dashboard_namespace != "kube-system" %}
---
apiVersion: v1
kind: Namespace
metadata:
name: {{ dashboard_namespace }}
labels:
name: {{ dashboard_namespace }}
{% endif %}
--- ---
# ------------------- Dashboard Secrets ------------------- # # ------------------- Dashboard Secrets ------------------- #
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata: