installer: create individual soft-serve instances for each env
diff --git a/core/installer/welcome/env-tmpl/config-secret.yaml b/core/installer/welcome/env-tmpl/config-secret.yaml
index 3ea515b..bba3de0 100644
--- a/core/installer/welcome/env-tmpl/config-secret.yaml
+++ b/core/installer/welcome/env-tmpl/config-secret.yaml
@@ -1,10 +1,10 @@
apiVersion: v1
+kind: Secret
+type: Opaque
+metadata:
+ name: {{ .Name }}
+ namespace: {{ .Name }}
data:
identity: {{ .PrivateKey }}
identity.pub: {{ .PublicKey }}
known_hosts: {{ .KnownHosts }}
-kind: Secret
-metadata:
- name: {{ .Name }}
- namespace: {{ .Name }}
-type: Opaque
diff --git a/core/installer/welcome/env-tmpl/config-source.yaml b/core/installer/welcome/env-tmpl/config-source.yaml
index 895c5e4..d22ab03 100644
--- a/core/installer/welcome/env-tmpl/config-source.yaml
+++ b/core/installer/welcome/env-tmpl/config-source.yaml
@@ -10,4 +10,4 @@
secretRef:
name: {{ .Name }}
timeout: 60s
- url: ssh://{{ .GitHost }}/{{ .Name }}
+ url: ssh://{{ .RepoHost }}/{{ .RepoName }}
diff --git a/core/installer/welcome/env-tmpl/kustomization.yaml b/core/installer/welcome/env-tmpl/kustomization.yaml
index 70db25f..070ae80 100644
--- a/core/installer/welcome/env-tmpl/kustomization.yaml
+++ b/core/installer/welcome/env-tmpl/kustomization.yaml
@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
-- namespace.yaml
+- config-repo
- config-secret.yaml
- config-source.yaml
- config-kustomization.yaml
diff --git a/core/installer/welcome/env-tmpl/namespace.yaml b/core/installer/welcome/env-tmpl/namespace.yaml
deleted file mode 100644
index 0c14654..0000000
--- a/core/installer/welcome/env-tmpl/namespace.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
- name: {{ .Name }}
- labels:
- pcloud-instance-id: {{ .Name }}
- annotations:
- helm.sh/resource-policy: keep