{{- /* # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 */ -}} {{- if .Values.controller.rbac.clusterRoleAggregation.editorRoles -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ printf "%s-%s" (include "vso.chart.fullname" .) "aggregate-role-editor" }} labels: app.kubernetes.io/component: rbac vso.hashicorp.com/role-instance: aggregate-role-editor {{- if .Values.controller.rbac.clusterRoleAggregation.userFacingRoles.edit }} rbac.authorization.k8s.io/aggregate-to-edit: "true" {{- end -}} {{- include "vso.chart.labels" . | nindent 4 }} aggregationRule: clusterRoleSelectors: {{- include "vso.aggregateRoleMatchLabelsEditor" . | nindent 2 -}} {{- end -}}