Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload juniper notebook with manuela-dev git repo #303

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 30 additions & 8 deletions charts/datacenter/data-science-project/templates/dev-project.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{{- $giturl := coalesce .Values.global.git.hostname (printf "gitea-route-vp-gitea.%s" .Values.global.localClusterDomain) }}
{{- $full_giturl := printf "https://%s/%s/manuela-dev.git" $giturl .Values.global.git.account }}
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -126,14 +129,33 @@ spec:
cat /var/run/kube-root-ca/ca.crt /var/run/trusted-ca/ca-bundle.crt /var/run/openshift-service-ca/service-ca.crt > /tmp/ca-bundles/ca-bundle.crt || true;
ls -l /tmp/ca-bundles/
volumeMounts:
- mountPath: /var/run/kube-root-ca
name: kube-root-ca
- mountPath: /var/run/trusted-ca
name: trusted-ca-bundle
- mountPath: /var/run/openshift-service-ca
name: openshift-service-ca
- mountPath: /tmp/ca-bundles
name: ca-bundles
- mountPath: /var/run/kube-root-ca
name: kube-root-ca
- mountPath: /var/run/trusted-ca
name: trusted-ca-bundle
- mountPath: /var/run/openshift-service-ca
name: openshift-service-ca
- mountPath: /tmp/ca-bundles
name: ca-bundles
- name: git-init
image: image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/industrial-edge:industrial-edge-v0.1.0
imagePullPolicy: Always
command:
- 'sh'
- '-c'
- >-
if [ ! -d /opt/app-root/src/manuela-dev ]; then export GIT_SSL_CAINFO=/etc/pki/tls/custom-certs/ca-bundle.crt; git clone --single-branch -b {{ .Values.global.git.dev_revision }} {{ $full_giturl }} /opt/app-root/src/manuela-dev; fi
volumeMounts:
- mountPath: /opt/app-root/src
name: jupyterlab
- mountPath: /opt/app-root/runtimes
name: elyra-dsp-details
- mountPath: /dev/shm
name: shm
- mountPath: /etc/pki/tls/custom-certs/ca-bundle.crt
name: ca-bundles
readOnly: true
subPath: ca-bundle.crt
containers:
- resources:
limits:
Expand Down