diff --git a/bitnami/grafana-operator/templates/grafana.yaml b/bitnami/grafana-operator/templates/grafana.yaml index 0440a206cb..a007dc0f1e 100644 --- a/bitnami/grafana-operator/templates/grafana.yaml +++ b/bitnami/grafana-operator/templates/grafana.yaml @@ -2,7 +2,7 @@ apiVersion: integreatly.org/v1alpha1 kind: Grafana metadata: - name: {{ include "common.names.fullname" . }}-grafana + name: {{ printf "%s-grafana" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} diff --git a/bitnami/grafana-operator/templates/rbac.yaml b/bitnami/grafana-operator/templates/rbac.yaml index 0f7efdc5b1..40f5ab6c94 100644 --- a/bitnami/grafana-operator/templates/rbac.yaml +++ b/bitnami/grafana-operator/templates/rbac.yaml @@ -3,7 +3,7 @@ apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} kind: Role metadata: - name: {{ include "common.names.fullname" . }}-leader-election + name: {{ printf "%s-leader-election" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} @@ -48,7 +48,7 @@ rules: apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} kind: RoleBinding metadata: - name: {{ include "common.names.fullname" . }}-leader-election + name: {{ printf "%s-leader-election" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" . | nindent 4 }} {{- if .Values.commonLabels }} @@ -60,7 +60,7 @@ metadata: roleRef: apiGroup: rbac.authorization.k8s.io kind: Role - name: {{ include "common.names.fullname" . }}-leader-election + name: {{ printf "%s-leader-election" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} subjects: - kind: ServiceAccount name: {{ include "grafana-operator.serviceAccountName" . }}