From 84bcfc4ac317829911b09e8b287202a13b496acb Mon Sep 17 00:00:00 2001
From: Youngsu Kim <youngsu.kim@csusb.edu>
Date: Thu, 16 Jun 2022 19:48:18 -0700
Subject: [PATCH] Add custom login spawn_pending htmls

---
 values.template.yaml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/values.template.yaml b/values.template.yaml
index 896b342..a8bc6de 100644
--- a/values.template.yaml
+++ b/values.template.yaml
@@ -30,6 +30,31 @@ hub:
         - 003087200@csusb.edu
         - 000030081@csusb.edu
         - dmishin@ucsd.edu
+  initContainers:
+    - name: git-clone-templates
+      image: alpine/git
+      args:
+        - clone
+        - --single-branch
+        - --branch=main
+        - --depth=1
+        - --
+        - https://gitlab.nrp-nautilus.io/youngsu_kim/csusb-jupyterhub-custom-templates.git
+        - /etc/jupyterhub/custom
+      securityContext:
+        runAsUser: 0
+      volumeMounts:
+        - name: custom-templates
+          mountPath: /etc/jupyterhub/custom
+  extraVolumes:
+    - name: custom-templates
+      emptyDir: {}
+  extraVolumeMounts:
+    - name: custom-templates
+      mountPath: /etc/jupyterhub/custom
+  extraConfig:
+    templates: |
+      c.JupyterHub.template_paths = ['/etc/jupyterhub/custom']
   service:
     type: ClusterIP
     annotations: {}
-- 
GitLab