Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Nov 22, 2024
1 parent 08e78e3 commit b49d397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions mirrord-operator/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ metadata:
name: mirrord-operator-user
labels:
{{- include "mirrord-operator.labels" . | nindent 4 }}
{{- if .Values.operator.podLabels }}
{{- toYaml .Values.clusterRole.mirrord-operator-user | nindent 4 }}
{{- if index .Values.clusterRole "mirrord-operator-user" }}
{{- toYaml (index .Values.clusterRole "mirrord-operator-user") | nindent 4 }}
{{- end }}
rules:
{{- include "mirrord-operator.rules" . | nindent 0 }}
Expand All @@ -169,8 +169,8 @@ metadata:
name: mirrord-operator-user-basic
labels:
{{- include "mirrord-operator.labels" . | nindent 4 }}
{{- if .Values.operator.podLabels }}
{{- toYaml .Values.clusterRole.mirrord-operator-user-basic | nindent 4 }}
{{- if index .Values.clusterRole "mirrord-operator-user-basic" }}
{{- toYaml (index .Values.clusterRole "mirrord-operator-user-basic") | nindent 4 }}
{{- end }}
rules:
{{- include "mirrord-operator.clusterRules" . | nindent 0 }}
4 changes: 2 additions & 2 deletions mirrord-operator/templates/namespaced-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
namespace: {{.}}
labels:
{{- include "mirrord-operator.labels" $ | nindent 4 }}
{{- if .Values.operator.podLabels }}
{{- toYaml .Values.role.mirrord-operator-user | nindent 4 }}
{{- if index .Values.role "mirrord-operator-user" }}
{{- toYaml (index .Values.role "mirrord-operator-user") | nindent 4 }}
{{- end }}
rules:
{{- include "mirrord-operator.rules" . | nindent 0 }}
Expand Down

0 comments on commit b49d397

Please sign in to comment.