From 4ef3a95f26de084dd91609be06d5d5d87b014c3a Mon Sep 17 00:00:00 2001 From: Oleksandr Dzhychko Date: Wed, 3 Jul 2024 09:08:29 +0200 Subject: [PATCH] fix(workspace-manager): write secret entry `workspace-secret` into to expected file The workspace manager expects to find the secret in the file `workspace-credentials-key.txt`. See https://github.com/modelix/modelix.workspaces/blob/8f5a45adcd35c9d0333647b6d48b5a5aa972aa89/workspaces/src/main/kotlin/org/modelix/workspaces/Workspace.kt#L143 The previous deployment created the file `workspace-secret` in the folder `/secrets/workspacesecret/workspace-credentials-key.txt`. --- .../templates/common/workspace-manager-deployment.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/modelix/templates/common/workspace-manager-deployment.yaml b/helm/modelix/templates/common/workspace-manager-deployment.yaml index 1d2b9ff..a5880ce 100644 --- a/helm/modelix/templates/common/workspace-manager-deployment.yaml +++ b/helm/modelix/templates/common/workspace-manager-deployment.yaml @@ -72,7 +72,7 @@ spec: - mountPath: "/workspace-manager/modelix-workspaces/uploads" name: "{{ include "modelix.fullname" . }}-workspace-uploads" - name: "{{ include "modelix.fullname" . }}-workspace-secret" - mountPath: /secrets/workspacesecret/workspace-credentials-key.txt + mountPath: /secrets/workspacesecret readOnly: true restartPolicy: Always volumes: @@ -82,5 +82,8 @@ spec: - name: "{{ include "modelix.fullname" . }}-workspace-secret" secret: secretName: "{{ include "modelix.fullname" . }}-workspace-secret" + items: + - key: workspace-secret + path: workspace-credentials-key.txt {{- include "modelix.pullSecret" . | nindent 6 }} {{- end -}}