{{- if and .Values.externaldns.serviceAccount.create .Values.externaldns.enabled -}} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: day0-bootstrap-awsexdnsc-role namespace: kube-system rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] - apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] resources: ["nodes"] verbs: ["list","watch"] {{- end -}}