Files
charts/template/CHART_NAME/templates/role.yaml
Fran Mulero 0911c803fc [template] update template with latest standardisation changes (#10231)
* Apply some fixes

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Use the new helper for HPA API version

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Remove extra whitespace

Signed-off-by: Fran Mulero <fmulero@vmware.com>

Co-authored-by: Miguel Ruiz <miruiz@vmware.com>

Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
2022-05-16 11:41:46 +02:00

27 lines
1.0 KiB
YAML

{{ if .Values.rbac.create }}
kind: Role
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: %%COMPONENT_NAME%%
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
rules:
# TODO: Update resources and verbs to the proper values for the application cases
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
{{- if .Values.rbac.rules }}
{{- include "common.tplvalues.render" ( dict "value" .Values.rbac.rules "context" $ ) | nindent 2 }}
{{- end }}
{{- end }}