mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* Add official ingressmonitorcontroller chart Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Remove trailing space from values.yaml in ingressmonitorcontroller chart Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Update chart.yaml in ingressmonitorcontroller chart Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Implement chart review comments Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Fix cluster role api version Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Add labels in rbac Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Update api version of deployment Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
{{- if and ( .Values.ingressMonitorController.rbac.create ) (.Values.ingressMonitorController.watchNamespace) }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
{{- if .Values.ingressMonitorController.useFullName }}
|
|
name: {{ template "fullname" . }}-role-binding
|
|
{{- else }}
|
|
name: {{ template "name" . }}-role-binding
|
|
{{- end }}
|
|
namespace: {{ .Values.ingressMonitorController.watchNamespace | quote }}
|
|
labels:
|
|
app: {{ template "name" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: {{ .Release.Name | quote }}
|
|
heritage: {{ .Release.Service | quote }}
|
|
{{- if .Values.ingressMonitorController.rbac.labels }}
|
|
{{ toYaml .Values.ingressMonitorController.rbac.labels | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.ingressMonitorController.matchLabels }}
|
|
{{ toYaml .Values.ingressMonitorController.matchLabels | indent 4 }}
|
|
{{- end }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
{{- if .Values.ingressMonitorController.useFullName }}
|
|
name: {{ template "fullname" . }}-role
|
|
{{- else }}
|
|
name: {{ template "name" . }}-role
|
|
{{- end }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
{{- end }} |