Skip to content

Commit

Permalink
adding argocd.argoproj.io/sync-wave annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmartins committed Nov 24, 2023
1 parent 9d3dd41 commit 6fde81f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func Ksops(items []*yaml.RNode) ([]*yaml.RNode, error) {
var node *yaml.RNode
node, err = yaml.Parse(string(secret))
_ = node.SetAnnotations(map[string]string{"kustomize.config.k8s.io/needs-hash": "true"})
_ = node.SetAnnotations(map[string]string{"argocd.argoproj.io/sync-wave": "-3"})
if err != nil {
return nil, fmt.Errorf("failed parse secret into yaml file %s: %w\n", file, err)
}
Expand Down

0 comments on commit 6fde81f

Please sign in to comment.