CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/kubernetes/secrets/templates/ssh-auth.yaml
Views: 1904
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