Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sky/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: common
description: Common Helm chart for Kubernetes
type: application
version: 1.0.19
version: 1.0.20
appVersion: "v0.1.0"
1 change: 1 addition & 0 deletions sky/common/templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ metadata:
spec:
template:
spec:
serviceAccountName: {{ include "common.fullname" $ }}
containers:
- name: {{ .name }}
{{- if and (.image).tag .image.repository }}
Expand Down
16 changes: 12 additions & 4 deletions sky/common/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "common.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
# Created in PreSync (wave -3, before PreSync hook Jobs such as db-migrate /
# collectstatic at -1) so that on a fresh namespace the hook pods can run
# under this SA — which carries the workload's IRSA / EKS Pod Identity —
# instead of the credential-less `default` SA. hook-delete-policy is
# BeforeHookCreation; the identity is bound by SA name, so recreate is safe.
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
argocd.argoproj.io/sync-wave: "-3"
{{- with .Values.serviceAccount.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
labels:
{{- include "common.labels" . | nindent 4 }}