Skip to content
Snippets Groups Projects
Unverified Commit 9ce7fc9b authored by petruha's avatar petruha Committed by GitHub
Browse files

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

* Create namespace when dashboard deployment uses customized namespace.

* Fix syntax.
parent b6243bfc
Branches
Tags
No related merge requests found
...@@ -17,9 +17,18 @@ ...@@ -17,9 +17,18 @@
# #
# Example usage: kubectl create -f <this_file> # Example usage: kubectl create -f <this_file>
{% if dashboard_namespace != "kube-system" %}
--- ---
# ------------------- Dashboard Secrets ------------------- # apiVersion: v1
kind: Namespace
metadata:
name: {{ dashboard_namespace }}
labels:
name: {{ dashboard_namespace }}
{% endif %}
---
# ------------------- Dashboard Secrets ------------------- #
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment