{{- if and .Values.externaldns.serviceAccount.create .Values.externaldns.enabled -}} apiVersion: v1 kind: ServiceAccount metadata: name: day0-bootstrap-awsexdnsc namespace: kube-system # If you're using Amazon EKS with IAM Roles for Service Accounts, specify the following annotation. # Otherwise, you may safely omit it. #annotations: # Substitute your account ID and IAM service role name below. # eks.amazonaws.com/role-arn: arn:aws:iam::574285669006:role/eksctl-kamal-Demo-ocpcf-sample-test-addon-ia-Role1-1NV8AHR96YJJT {{- with .Values.externaldns.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end -}}