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
4bf065f5
Commit
4bf065f5
authored
Jun 07, 2021
by
Sandro Mathys
Browse files
drop route, add ingress, if openshiftv3=false
parent
43c1ded7
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
chart/templates/ingress.yaml
0 → 100644
View file @
4bf065f5
{{
- if .Values.ingress.enabled
}}
{{
- if not .Values.openshiftv3
}}
apiVersion
:
networking.k8s.io/v1
kind
:
Ingress
metadata
:
name
:
{{
include "shibboleth-sp.fullname" .
}}
labels
:
{{
- include "shibboleth-sp.labels" . | nindent 4
}}
annotations
:
{{
- if .Values.ingress.keep
}}
helm.sh/resource-policy
:
"
keep"
{{
- end
}}
{{
- if .Values.ingress.letsEncrypt.enabled
}}
cert-manager.io/cluster-issuer
:
{{
- .Values.ingress.letsEncrypt.clusterIssuer
}}
{{
- end
}}
{{
- if .Values.ingress.annotations
}}
{{
- .Values.ingress.annotations | toYaml | nindent 4
}}
{{
- end
}}
spec
:
rules
:
-
host
:
{{
.Values.global.domainName
}}
http
:
paths
:
-
backend
:
service
:
name
:
{{
include "shibboleth-sp.fullname" .
}}
port
:
number
:
80
path
:
/
pathType
:
Exact
{{
- if .Values.ingress.letsEncrypt.enabled
}}
tls
:
-
hosts
:
-
{{
.Values.global.domainName
}}
secretName
:
{{
include "shibboleth-sp.frontend.fullname" .
}}
-letsencrypt-certs
{{
- end
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
chart/templates/route.yaml
View file @
4bf065f5
{{
- if .Values.route.enabled
}}
{{
- if .Values.openshiftv3
}}
---
apiVersion
:
route.openshift.io/v1
kind
:
Route
...
...
@@ -34,3 +35,4 @@ spec:
weight
:
100
wildcardPolicy
:
None
{{
- end
}}
{{
- end
}}
chart/values.yaml
View file @
4bf065f5
...
...
@@ -16,6 +16,7 @@ global:
##############
# temporary flag to support legacy openshiftv3 and modern vanilla kubernetes
# TODO: documentation
openshiftv3
:
true
nameOverride
:
"
"
...
...
@@ -63,6 +64,7 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name
:
"
"
# only if openshiftv3=true
route
:
enabled
:
false
# Annotations to add to the route
...
...
@@ -79,6 +81,16 @@ route:
termination
:
"
edge"
insecureEdgeTerminationPolicy
:
"
Redirect"
# only if openshiftv3=false
# TODO: validation, documentation
ingress
:
enabled
:
false
annotations
:
{}
keep
:
false
letsEncrypt
:
enabled
:
false
clusterIssuer
:
"
"
deployment
:
# To pick up ConfigMap and Secret changes, all pods in the Deployment need to be restarted. This can
# be done manually, e.g. with `kubectl rollout restart deployment/<deployment>`, or automatically.
...
...
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