Commit 43c1ded7 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

add flag to disable openshiftv3 / enable vanilla kubernetes support

parent 7d815276
{{- 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
......
{{- 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 -}}
......@@ -14,6 +14,10 @@ global:
##############
### common ###
##############
# temporary flag to support legacy openshiftv3 and modern vanilla kubernetes
openshiftv3: true
nameOverride: ""
fullnameOverride: ""
......
Supports Markdown
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