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
43c1ded7
Commit
43c1ded7
authored
Jun 07, 2021
by
Sandro Mathys
Browse files
add flag to disable openshiftv3 / enable vanilla kubernetes support
parent
7d815276
Changes
3
Hide whitespace changes
Inline
Side-by-side
chart/templates/cronjob.yaml
View file @
43c1ded7
{{
- if (and .Values.backend.shibboleth.sessionCache.enabled .Values.backend.shibboleth.sessionCache.sealerKeys.manage)
}}
---
{{
- if .Values.openshiftv3
}}
apiVersion
:
batch/v1beta1
{{
- else
}}
apiVersion
:
batch/v1
{{
- end
}}
kind
:
CronJob
metadata
:
name
:
{{
include "shibboleth-sp.fullname" .
}}
-rotate-sealer-keys
...
...
chart/templates/rolebinding.yaml
View file @
43c1ded7
{{
- if (and .Values.backend.shibboleth.sessionCache.enabled .Values.backend.shibboleth.sessionCache.sealerKeys.serviceAccount.create)
}}
---
{{
- if .Values.openshiftv3
}}
apiVersion
:
authorization.openshift.io/v1
{{
- else
}}
apiVersion
:
rbac.authorization.k8s.io/v1
{{
- end
}}
kind
:
RoleBinding
metadata
:
name
:
{{
include "shibboleth-sp.sealerKeys.serviceAccountName" .
}}
...
...
@@ -16,5 +20,11 @@ subjects:
-
kind
:
ServiceAccount
name
:
{{
include "shibboleth-sp.sealerKeys.serviceAccountName" .
}}
roleRef
:
{{
- if .Values.openshiftv3
}}
name
:
edit
{{
- else
}}
kind
:
Role
name
:
namespace-editor
apiGroup
:
rbac.authorization.k8s.io
{{
- end
}}
{{
- end -
}}
chart/values.yaml
View file @
43c1ded7
...
...
@@ -14,6 +14,10 @@ global:
##############
### common ###
##############
# temporary flag to support legacy openshiftv3 and modern vanilla kubernetes
openshiftv3
:
true
nameOverride
:
"
"
fullnameOverride
:
"
"
...
...
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