Files
charts/bitnami/external-dns/templates/clusterrolebinding.yaml
superaleks de4f3996ed [bitnami/external-dns] Modify Cluster wide resources naming and add Helm Chart tests (#10679)
* Added antiflake pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Diversified the pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Make a change to trigger TKG

Signed-off-by: alukic <alukic@vmware.com>

* Replaced FIPS with normal AKS

Signed-off-by: alukic <alukic@vmware.com>

* Added extra workflow for Grafana Loki

Signed-off-by: alukic <alukic@vmware.com>

* Changed the pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Modified the workflow

Signed-off-by: alukic <alukic@vmware.com>

* Removed Grafana Loki

Signed-off-by: alukic <alukic@vmware.com>

* Modify naming of cluster wide resources

Signed-off-by: alukic <alukic@vmware.com>

* Added Goss action

Signed-off-by: alukic <alukic@vmware.com>

* Change the name of the workload

Signed-off-by: alukic <alukic@vmware.com>

* Added two Goss tests

Signed-off-by: alukic <alukic@vmware.com>

* Remove root check

Signed-off-by: alukic <alukic@vmware.com>

* Fixed one remaining Goss test

Signed-off-by: alukic <alukic@vmware.com>

* Remove antiflake pipeline

Signed-off-by: alukic <alukic@vmware.com>

* Added 2 more Goss tests

Signed-off-by: alukic <alukic@vmware.com>

* Updated the template as per PR suggestions

Signed-off-by: alukic <alukic@vmware.com>

* Update version

Signed-off-by: alukic <alukic@vmware.com>

* CR changes PRP

Signed-off-by: alukic <alukic@vmware.com>

* Empty commit

* Apply CR changes

Signed-off-by: alukic <alukic@vmware.com>

* Change the name

Signed-off-by: alukic <alukic@vmware.com>

* Apply PR suggestions

Signed-off-by: alukic <alukic@vmware.com>

* Arranged actions accordingly

Signed-off-by: alukic <alukic@vmware.com>

* Change a mistake in templating

Signed-off-by: alukic <alukic@vmware.com>
2022-07-05 10:06:33 +02:00

23 lines
939 B
YAML

{{- if and .Values.rbac.create .Values.rbac.clusterRole }}
apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }}
kind: ClusterRoleBinding
metadata:
name: {{ template "common.names.fullname.namespace" . }}
namespace: {{ .Release.Namespace | quote }}
labels: {{ include "external-dns.labels" . | nindent 4 }}
{{- 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 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "common.names.fullname.namespace" . }}
subjects:
- kind: ServiceAccount
name: {{ template "external-dns.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
{{- end }}