From 179d10e60c7b6433d8db199b97e2552828e59d42 Mon Sep 17 00:00:00 2001 From: Andrii Chubatiuk Date: Thu, 12 Sep 2024 13:22:36 +0300 Subject: [PATCH] minor fix --- charts/victoria-metrics-operator/Chart.lock | 4 ++-- charts/victoria-metrics-operator/templates/role.yaml | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/charts/victoria-metrics-operator/Chart.lock b/charts/victoria-metrics-operator/Chart.lock index 3b437d6e6..9f496cee8 100644 --- a/charts/victoria-metrics-operator/Chart.lock +++ b/charts/victoria-metrics-operator/Chart.lock @@ -5,5 +5,5 @@ dependencies: - name: crds repository: "" version: 0.0.* -digest: sha256:69e95492bf4124e524b99335c1bc02dc4b10b96105f3d5362a042d4985aab3cf -generated: "2024-09-12T12:47:05.668035+03:00" +digest: sha256:14667a2da4b0843956aa57c97b737fbefc3bd24f0376f81b2c2b7e84919e5214 +generated: "2024-09-12T13:21:35.804808+03:00" diff --git a/charts/victoria-metrics-operator/templates/role.yaml b/charts/victoria-metrics-operator/templates/role.yaml index 2c9aa18a4..e645c2a49 100644 --- a/charts/victoria-metrics-operator/templates/role.yaml +++ b/charts/victoria-metrics-operator/templates/role.yaml @@ -26,7 +26,6 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "vm-operator.fullname" . }} - {{- $ctx := dict "helm" . "extraLabels" .Values.extraLabels }} labels: {{ include "vm-operator.labels" $ctx | nindent 4 }} {{- with .Values.annotations }} annotations: {{ toYaml . | nindent 4 }} @@ -51,7 +50,6 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ template "vm-operator.fullname" . }} - {{- $ctx := dict "helm" . "extraLabels" .Values.extraLabels }} labels: {{ include "vm-operator.labels" $ctx | nindent 4 }} {{- with .Values.annotations }} annotations: {{ toYaml . | nindent 4 }} @@ -190,7 +188,7 @@ metadata: rules: {{ toYaml $rules.admin | nindent 2 }} {{- end }} -{{- if and .Values.crds.enabled .Values.rbac.aggregatedClusterRoles.enabled }} +{{- if .Values.rbac.aggregatedClusterRoles.enabled }} {{- /* This template generates readonly and admin cluster roles for */ -}} {{- /* each CRD present in the helm chart. The clusterroles use the */ -}} {{- /* kubernetes clusterrole aggregation feature to include these */ -}}