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

Commit

Permalink
fix(chart): add prerelease suffix ('>=1.17.0-0') to all semverCompare…
Browse files Browse the repository at this point in the history
… checks in rbac template (#699)

Signed-off-by: Markus Maga <markus@maga.se>
  • Loading branch information
Flydiverny authored Apr 8, 2021
1 parent ce27e88 commit 87d6037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/kubernetes-external-secrets/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rules:
{{- toYaml .Values.customClusterRoles | nindent 2 }}
{{- end }}
---
{{ if semverCompare ">=1.17.0" .Capabilities.KubeVersion.GitVersion -}}
{{ if semverCompare ">=1.17.0-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: rbac.authorization.k8s.io/v1
{{- else -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
Expand All @@ -55,7 +55,7 @@ subjects:
namespace: {{ .Release.Namespace | quote }}
kind: ServiceAccount
---
{{ if semverCompare ">=1.17.0" .Capabilities.KubeVersion.GitVersion -}}
{{ if semverCompare ">=1.17.0-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: rbac.authorization.k8s.io/v1
{{- else -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
Expand Down

0 comments on commit 87d6037

Please sign in to comment.