Skip to content

Commit

Permalink
Merge pull request #4 from scality/test-new-secret
Browse files Browse the repository at this point in the history
test new secret mechanism
  • Loading branch information
tcarmet authored Oct 26, 2022
2 parents d06256c + b1ef277 commit c3694cd
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 34 deletions.
8 changes: 6 additions & 2 deletions manifests/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,19 @@ spec:
value: {{ .value | quote }}
{{- end }}
volumeMounts:
- name: ssh-host-keys
mountPath: /volume
{{- range .Values.volumeMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath | quote }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}

{{- with .Values.volumes }}
volumes:
- name: ssh-host-keys
secret:
secretName: {{ include "tmate-server.fullname" . }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
Expand Down
11 changes: 11 additions & 0 deletions manifests/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
kind: Secret
apiVersion: v1
metadata:
name: {{ include "tmate-server.fullname" . }}
labels:
{{- include "tmate-server.labels" . | nindent 4 }}
type: Opaque
data:
tmate-server-rsa-key: {{ .Values.tmateServerRsaKey | b64enc }}
tmate-server-ed25519-key: {{ .Values.tmateServerEd25519Key | b64enc }}
16 changes: 0 additions & 16 deletions manifests/templates/tmate-server-ed25519-key.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions manifests/templates/tmate-server-rsa-key.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions manifests/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000

# Content for tmate keys
tmateServerRsaKey: "rsakey"
tmateServerEd25519Key: "ed25519key"

securityContext:
capabilities:
add:
Expand Down

0 comments on commit c3694cd

Please sign in to comment.