installer: create namespaces with kube client
diff --git a/charts/welcome/templates/install.yaml b/charts/welcome/templates/install.yaml
index 9dd639a..ddeeab6 100644
--- a/charts/welcome/templates/install.yaml
+++ b/charts/welcome/templates/install.yaml
@@ -1,3 +1,27 @@
+kind: ClusterRole
+metadata:
+ name: {{ .Global.PCloudEnvName }}-welcome
+rules:
+- apiGroups:
+ - ""
+ resources:
+ - namespaces
+ verbs:
+ - create
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: {{ .Global.PCloudEnvName }}-welcome
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: {{ .Global.PCloudEnvName }}-welcome
+subjects:
+- kind: ServiceAccount
+ name: default
+ namespace: {{ .Release.Namespace }}
+---
apiVersion: v1
kind: Secret
metadata: