From 0d8facd737159b25a9d6f9959e08cdb61a3a8cd9 Mon Sep 17 00:00:00 2001 From: Balint Molnar Date: Thu, 18 Feb 2021 11:43:12 +0100 Subject: [PATCH] Use chart.appversion as an image tag and remove old cert manager support --- .../operator-deployment-with-webhook.yaml | 2 +- .../kafka-operator/templates/operator-rbac.yaml | 17 ----------------- charts/kafka-operator/values.yaml | 2 +- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/charts/kafka-operator/templates/operator-deployment-with-webhook.yaml b/charts/kafka-operator/templates/operator-deployment-with-webhook.yaml index 87c28873b..c4e5db40c 100644 --- a/charts/kafka-operator/templates/operator-deployment-with-webhook.yaml +++ b/charts/kafka-operator/templates/operator-deployment-with-webhook.yaml @@ -156,7 +156,7 @@ spec: {{- if .Values.operator.developmentLogging }} - --development {{- end }} - image: "{{ .Values.operator.image.repository }}:{{ .Values.operator.image.tag }}" + image: "{{ .Values.operator.image.repository }}:{{ .Values.operator.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.operator.image.pullPolicy }} name: manager env: diff --git a/charts/kafka-operator/templates/operator-rbac.yaml b/charts/kafka-operator/templates/operator-rbac.yaml index a12ac00a2..b0cc0547b 100644 --- a/charts/kafka-operator/templates/operator-rbac.yaml +++ b/charts/kafka-operator/templates/operator-rbac.yaml @@ -190,22 +190,6 @@ rules: - update - patch - delete -{{- if contains "0.7." .Values.operator.image.tag }} -- apiGroups: - - certmanager.k8s.io - resources: - - issuers - - clusterissuers - - certificates - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -{{- else }} - apiGroups: - cert-manager.io resources: @@ -232,7 +216,6 @@ rules: - patch - update - watch -{{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/charts/kafka-operator/values.yaml b/charts/kafka-operator/values.yaml index bd7e57093..bf9ed1d8c 100644 --- a/charts/kafka-operator/values.yaml +++ b/charts/kafka-operator/values.yaml @@ -12,7 +12,7 @@ operator: annotations: {} image: repository: ghcr.io/banzaicloud/kafka-operator - tag: v0.15.0 + tag: "" pullPolicy: IfNotPresent vaultAddress: "" # vaultSecret containing a `ca.crt` key with the Vault CA Certificate