Launcher: take app information from AppManager
Change-Id: I0dedd5a710adc4810feb9210b903655a3d2f5533
diff --git a/charts/launcher/templates/install.yaml b/charts/launcher/templates/install.yaml
index ee4b215..c2b3330 100644
--- a/charts/launcher/templates/install.yaml
+++ b/charts/launcher/templates/install.yaml
@@ -13,6 +13,14 @@
port: 80
targetPort: http
---
+apiVersion: v1
+kind: Secret
+metadata:
+ name: ssh-key
+type: Opaque
+data:
+ private: {{ .Values.sshPrivateKey }}
+---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -28,6 +36,10 @@
labels:
app: launcher
spec:
+ volumes:
+ - name: ssh-key
+ secret:
+ secretName: ssh-key
containers:
- name: launcher
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
@@ -36,6 +48,13 @@
containerPort: 8080
protocol: TCP
command:
+ - pcloud-installer
- launcher
- --port=8080
- - --logoutUrl={{ .Values.logoutUrl }}
+ - --logout-url={{ .Values.logoutUrl }}
+ - --ssh-key=/pcloud/ssh-key/private
+ - --repo-addr={{ .Values.repoAddr }}
+ volumeMounts:
+ - name: ssh-key
+ readOnly: true
+ mountPath: /pcloud/ssh-key
diff --git a/charts/launcher/values.yaml b/charts/launcher/values.yaml
index 159ee97..9118cc3 100644
--- a/charts/launcher/values.yaml
+++ b/charts/launcher/values.yaml
@@ -3,4 +3,7 @@
tag: latest
pullPolicy: Always
portName: http
+appRepoAddr: ""
logoutUrl: logout.example.com
+sshPrivateKey: key
+repoAddr: ""