Skip to content

Commit

Permalink
Turn the job into a PostSync ArgoCD hook
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed Nov 11, 2024
1 parent 182fe7c commit af4f84c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions component/notifications.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ local createUpgradeNotification(overlay) = [

kube.Job('create-notification') {
metadata+: {
//generateName: 'create-notification-',
namespace: params.namespace,
annotations+: {
'argocd.argoproj.io/hook': 'PostSync',
},
},
spec+: {
template+: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ metadata:
apiVersion: batch/v1
kind: Job
metadata:
annotations: {}
annotations:
argocd.argoproj.io/hook: PostSync
labels:
name: create-notification
name: create-notification
Expand Down

0 comments on commit af4f84c

Please sign in to comment.