update
diff --git a/charts/app-runner/templates/install.yaml b/charts/app-runner/templates/install.yaml
index 7022cfe..f834235 100644
--- a/charts/app-runner/templates/install.yaml
+++ b/charts/app-runner/templates/install.yaml
@@ -73,9 +73,11 @@
spec:
runtimeClassName: {{ .Values.runtimeClassName }}
volumes:
+ {{- if .Values.sshPrivateKey }}
- name: ssh-key
secret:
secretName: {{ .Values.name }}-ssh-key
+ {{- end }}
- name: run-cfg
configMap:
name: {{ .Values.name }}-run-cfg
@@ -108,7 +110,9 @@
- --repo-addr={{ .Values.repoAddr }}
- --branch={{ .Values.branch }}
- --root-dir={{ .Values.rootDir }}
+ {{- if .Values.sshPrivateKey }}
- --ssh-key=/pcloud/ssh-key/private
+ {{- end }}
- --run-cfg=/pcloud/config/run
- --manager-addr={{ .Values.managerAddr }}
volumeMounts: