Commit aafeabf5 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

leverage dependency-proxy for third-party images

parent 3a830c18
...@@ -15,8 +15,11 @@ spec: ...@@ -15,8 +15,11 @@ spec:
labels: labels:
app: shibboleth-sp-helm-chart-example-webserver app: shibboleth-sp-helm-chart-example-webserver
spec: spec:
imagePullSecrets:
# personal(!) access token with read AND write privileges to the registry in order to use the dependency proxy
- name: shibboleth-sp-dependency-proxy
containers: containers:
- image: cr.gitlab-int.switch.ch/maps/upstream-images/httpd:2.4-alpine - image: https://gitlab.switch.ch/helm-charts/shibboleth-sp/dependency_proxy/containers/httpd:2.4-alpine
name: apache name: apache
ports: ports:
- containerPort: 8080 - containerPort: 8080
......
...@@ -6,10 +6,13 @@ metadata: ...@@ -6,10 +6,13 @@ metadata:
annotations: annotations:
"helm.sh/hook": test "helm.sh/hook": test
spec: spec:
imagePullSecrets:
# personal(!) access token with read AND write privileges to the registry in order to use the dependency proxy
- name: shibboleth-sp-dependency-proxy
containers: containers:
# check apache is responding # check apache is responding
- name: root - name: root
image: "cr.gitlab-int.switch.ch/maps/upstream-images/curlimages/curl:7.75.0" image: "https://gitlab.switch.ch/helm-charts/shibboleth-sp/dependency_proxy/containers/curlimages/curl:7.75.0"
command: command:
- "sh" - "sh"
- "-c" - "-c"
...@@ -24,7 +27,7 @@ spec: ...@@ -24,7 +27,7 @@ spec:
grep "Location: https://wayf.switch.ch/SWITCHaai/WAYF" /tmp/header.out grep "Location: https://wayf.switch.ch/SWITCHaai/WAYF" /tmp/header.out
# check shibboleth is responding # check shibboleth is responding
- name: session - name: session
image: "cr.gitlab-int.switch.ch/maps/upstream-images/curlimages/curl:7.75.0" image: "https://gitlab.switch.ch/helm-charts/shibboleth-sp/dependency_proxy/containers/curlimages/curl:7.75.0"
command: command:
- "sh" - "sh"
- "-c" - "-c"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment