Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
helm-charts
Shibboleth SP
Helm Chart
Commits
cbf47d34
Commit
cbf47d34
authored
Aug 15, 2021
by
Sandro Mathys
Browse files
improve tests image handling
parent
5b2a211d
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
ci/values.yaml
View file @
cbf47d34
...
...
@@ -4,7 +4,8 @@ image:
pullPolicy
:
Always
imagePullSecrets
:
-
name
:
maps-shibboleth-sp-helm-chart-registry
# personal(!) access token with read AND write privileges to the registry in order to use the dependency proxy
-
name
:
shibboleth-sp-dependency-proxy
route
:
enabled
:
true
...
...
@@ -46,11 +47,6 @@ frontend:
tests
:
enabled
:
true
imagePullSecrets
:
# personal(!) access token with read AND write privileges to the registry in order to use the dependency proxy
-
name
:
shibboleth-sp-dependency-proxy
image
:
repository
:
"
gitlab.switch.ch/helm-charts/shibboleth-sp/dependency_proxy/containers/curlimages/curl"
tag
:
"
latest"
pullPolicy
:
"
Always"
templates/_helpers.tpl
View file @
cbf47d34
...
...
@@ -152,7 +152,7 @@ Create the names of the images and pull policies to use
{{- printf "%s:%s" .Values.tests.image.repository .Values.tests.image.tag }}
{{- end }}
{{- define "shibboleth-sp.tests.imagePullPolicy" -}}
{{- .Values.tests.image.pullPolicy }}
{{- .Values.tests.image.pullPolicy
| default .Values.image.pullPolicy
}}
{{- end }}
{
{
/*
...
...
templates/tests/curl.yaml
View file @
cbf47d34
...
...
@@ -7,9 +7,9 @@ metadata:
annotations
:
"
helm.sh/hook"
:
test
spec
:
{{
- if .Values.
tests.
imagePullSecrets
}}
{{
- if .Values.imagePullSecrets
}}
imagePullSecrets
:
{{
- with .Values.
tests.
imagePullSecrets
}}
{{
- with .Values.imagePullSecrets
}}
{{
- toYaml . | nindent 4
}}
{{
- end
}}
{{
- end
}}
...
...
values.yaml
View file @
cbf47d34
...
...
@@ -326,11 +326,8 @@ frontend:
tests
:
enabled
:
false
# imagePullSecrets:
# - name:
# requires sh, echo, cat, curl, grep in the path of the image
image
:
repository
:
"
docker.io/curlimages/curl"
tag
:
"
latest"
pullPolicy
:
"
IfNotPresent"
image
:
{}
#
repository: "docker.io/curlimages/curl"
#
tag: "latest"
#
pullPolicy: "IfNotPresent"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment