Skip to content

Commit

Permalink
Set SkipDryRunOnMissingResource=true for KeepalivedGroup resources
Browse files Browse the repository at this point in the history
This fixes the initial deployment of the component. Without the
annotation ArgoCD can't validate the `KeepalivedGroup` resources before
applying the manifests, which in turn means that the CRD won't ever be
available.
  • Loading branch information
simu committed Oct 18, 2023
1 parent 4c862e4 commit 9a153d7
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 9a153d7

Please sign in to comment.