Skip to content

Commit

Permalink
fix(workspace-manager): write secret entry workspace-secret into to…
Browse files Browse the repository at this point in the history
… 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`.
  • Loading branch information
odzhychko committed Jul 3, 2024
1 parent a596c8d commit 4ef3a95
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 -}}

0 comments on commit 4ef3a95

Please sign in to comment.