Skip to content

Commit

Permalink
Merge pull request #12 from appuio/fix/initial-apply
Browse files Browse the repository at this point in the history
Set `SkipDryRunOnMissingResource=true` for `KeepalivedGroup` resources
  • Loading branch information
simu authored Oct 18, 2023
2 parents 4c862e4 + 9a153d7 commit cf6eeee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ local keepalived_groups = std.filter(
kube._Object('redhatcop.redhat.io/v1alpha1', 'KeepalivedGroup', formated_name) {
metadata+: {
namespace: params.namespace,
annotations+: {
'argocd.argoproj.io/sync-options': 'SkipDryRunOnMissingResource=true',
},
},
spec+: {
image: image,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: redhatcop.redhat.io/v1alpha1
kind: KeepalivedGroup
metadata:
annotations: {}
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
name: group-1
name: group-1
Expand All @@ -18,7 +19,8 @@ spec:
apiVersion: redhatcop.redhat.io/v1alpha1
kind: KeepalivedGroup
metadata:
annotations: {}
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
name: group-2
name: group-2
Expand Down

0 comments on commit cf6eeee

Please sign in to comment.