Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Sep 12, 2024
1 parent 7087e06 commit 179d10e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/victoria-metrics-operator/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 1 addition & 3 deletions charts/victoria-metrics-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 */ -}}
Expand Down

0 comments on commit 179d10e

Please sign in to comment.