Skip to content

Commit

Permalink
fix: create SA using helm and use SA annotation for EKS
Browse files Browse the repository at this point in the history
  • Loading branch information
gazal-k committed Mar 31, 2020
1 parent 88909b7 commit b91a2ac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
3 changes: 3 additions & 0 deletions apps/bitnami/external-dns/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ rbac:
{{- if eq .Values.jxRequirements.cluster.provider "gke" }}
serviceAccountAnnotations:
iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-ex@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com
{{- else if eq .Values.jxRequirements.cluster.provider "eks" }}
serviceAccountAnnotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.jxRequirements.cluster.project }}:role/{{ .Values.jxRequirements.cluster.clusterName }}-{{ .Values.jxRequirements.cluster.namespace }}-external-dns
{{- end }}

domainFilters:
Expand Down
8 changes: 3 additions & 5 deletions apps/jenkins-x/jxui/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{- if eq .Values.jxRequirements.cluster.provider "eks" }}
serviceaccount:
{{- if eq "eks" .Values.jxRequirements.cluster.provider }}
enabled: false
{{- else }}
enabled: true
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.jxRequirements.cluster.project }}:role/{{ .Values.jxRequirements.cluster.clusterName }}-{{ .Values.jxRequirements.cluster.namespace }}-jxui
{{- end }}

9 changes: 5 additions & 4 deletions apps/jenkins-x/tekton/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ auth:
url: "{{ .Values.secrets.docker.url }}"
{{- end }}

{{- if eq "eks" .Values.jxRequirements.cluster.provider }}
{{- if eq .Values.jxRequirements.cluster.provider "eks" }}
serviceaccount:
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.jxRequirements.cluster.project }}:role/{{ .Values.jxRequirements.cluster.clusterName }}-{{ .Values.jxRequirements.cluster.namespace }}-tekton-bot
{{- else if eq .Values.jxRequirements.cluster.provider "gke" }}
serviceaccount:
enabled: false
{{- if eq .Values.jxRequirements.cluster.provider "gke" }}
annotations:
iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-tk@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com
{{- end }}
{{- end }}

tillerNamespace: ""
3 changes: 3 additions & 0 deletions apps/jetstack/cert-manager/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ extraArgs:
securityContext:
enabled: true
fsGroup: 1001
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.jxRequirements.cluster.project }}:role/{{ .Values.jxRequirements.cluster.clusterName }}-cert-manager-cert-manager
{{- end }}

webhook:
Expand Down

0 comments on commit b91a2ac

Please sign in to comment.