Skip to content

Instantly share code, notes, and snippets.

@sgibson91
Created November 28, 2019 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgibson91/a89d0ab815259816f4c7f228b33197f3 to your computer and use it in GitHub Desktop.
Save sgibson91/a89d0ab815259816f4c7f228b33197f3 to your computer and use it in GitHub Desktop.
cert-manager user-configmap file
kind: ConfigMap
apiVersion: v1
metadata:
name: user-etc-jupyter
labels:
app: jupyterhub
component: etc-jupyter
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
{{- range $name, $content := .Values.etcJupyter }}
{{- if eq (typeOf $content) "string" }}
{{ $name }}: |
{{- $content | nindent 4 }}
{{- else }}
{{ $name }}: {{ $content | toJson | quote }}
{{- end }}
{{- end }}
{{- (.Files.Glob "files/etc/jupyter/*").AsConfig | nindent 2 }}
---
kind: ConfigMap
apiVersion: v1
metadata:
name: user-etc-jupyter-templates
labels:
app: jupyterhub
component: etc-jupyter
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
{{- (.Files.Glob "files/etc/jupyter/templates/*").AsConfig | nindent 2 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment