CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/kubernetes/secrets/templates/ssh-auth.yaml
Views: 11784
1
{{- $fullName := include "secrets.fullname" . -}}
2
{{- range $path, $bytes := .Files.Glob "files/ssh-auth/*" }}
3
{{- $name := base $path }}
4
{{- if not (hasSuffix ".pub" $path) }}
5
apiVersion: v1
6
kind: Secret
7
type: kubernetes.io/ssh-auth
8
metadata:
9
name: {{ $fullName }}-{{ $name }}
10
data:
11
ssh-privatekey: {{ ($.Files.Get $path) | b64enc | nindent 4 }}
12
---
13
{{- end }}
14
{{- end }}
15
16