Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 87d6037

Browse files
authored
fix(chart): add prerelease suffix ('>=1.17.0-0') to all semverCompare checks in rbac template (#699)
Signed-off-by: Markus Maga <[email protected]>
1 parent ce27e88 commit 87d6037

File tree

1 file changed

+2
-2
lines changed
  • charts/kubernetes-external-secrets/templates

1 file changed

+2
-2
lines changed

charts/kubernetes-external-secrets/templates/rbac.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ rules:
3333
{{- toYaml .Values.customClusterRoles | nindent 2 }}
3434
{{- end }}
3535
---
36-
{{ if semverCompare ">=1.17.0" .Capabilities.KubeVersion.GitVersion -}}
36+
{{ if semverCompare ">=1.17.0-0" .Capabilities.KubeVersion.GitVersion -}}
3737
apiVersion: rbac.authorization.k8s.io/v1
3838
{{- else -}}
3939
apiVersion: rbac.authorization.k8s.io/v1beta1
@@ -55,7 +55,7 @@ subjects:
5555
namespace: {{ .Release.Namespace | quote }}
5656
kind: ServiceAccount
5757
---
58-
{{ if semverCompare ">=1.17.0" .Capabilities.KubeVersion.GitVersion -}}
58+
{{ if semverCompare ">=1.17.0-0" .Capabilities.KubeVersion.GitVersion -}}
5959
apiVersion: rbac.authorization.k8s.io/v1
6060
{{- else -}}
6161
apiVersion: rbac.authorization.k8s.io/v1beta1

0 commit comments

Comments
 (0)