mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 06:47:24 +08:00
* 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>
27 lines
1.0 KiB
YAML
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 }}
|