Skip to content

Commit

Permalink
fix: fixed whitespace for adding annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
naihsuanshao committed Jan 21, 2025
1 parent efc8e1f commit 3caf789
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stack/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ metadata:
.Values.annotations
.Values.serviceAccount.annotations
}}
annotations:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
Expand Down
6 changes: 6 additions & 0 deletions stack/tests/cronjob_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ tests:
schedule: "*/3 * * * *"
serviceAccount:
create: true
annotations:
"eks.amazonaws.com/role-arn": some-role
image:
repository: my-repo
tag: sha-mytag
Expand Down Expand Up @@ -58,6 +60,10 @@ tests:
equal:
path: metadata.name
value: "release-name-stack-job1"
- documentIndex: 1
equal:
path: metadata.annotations["eks.amazonaws.com/role-arn"]
value: "some-role"
- documentIndex: 1
equal:
path: metadata.labels["app.kubernetes.io/name"]
Expand Down

0 comments on commit 3caf789

Please sign in to comment.