Skip to content

Commit cb04c82

Browse files
committed
Prevent failed sync for missing CRDs during bootstrap for whole app
1 parent d2171a4 commit cb04c82

7 files changed

Lines changed: 7 additions & 0 deletions

File tree

component/app.jsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ local app = argocd.App('argocd', params.namespace, secrets=false) {
6161
syncPolicy+: {
6262
syncOptions+: [
6363
'ServerSideApply=true',
64+
'SkipDryRunOnMissingResource=true',
6465
],
6566
automated+: {
6667
[if params.operator.migrate then 'prune' else null]: false,

tests/golden/defaults/argocd/apps/10_argocd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ spec:
2222
selfHeal: true
2323
syncOptions:
2424
- ServerSideApply=true
25+
- SkipDryRunOnMissingResource=true

tests/golden/https-catalog/argocd/apps/10_argocd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ spec:
2222
selfHeal: true
2323
syncOptions:
2424
- ServerSideApply=true
25+
- SkipDryRunOnMissingResource=true

tests/golden/openshift/argocd/apps/10_argocd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ spec:
2222
selfHeal: true
2323
syncOptions:
2424
- ServerSideApply=true
25+
- SkipDryRunOnMissingResource=true

tests/golden/params/argocd/apps/10_argocd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ spec:
2222
selfHeal: true
2323
syncOptions:
2424
- ServerSideApply=true
25+
- SkipDryRunOnMissingResource=true

tests/golden/prometheus/argocd/apps/10_argocd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ spec:
2222
selfHeal: true
2323
syncOptions:
2424
- ServerSideApply=true
25+
- SkipDryRunOnMissingResource=true

tests/golden/syn-teams/argocd/apps/10_argocd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ spec:
2222
selfHeal: true
2323
syncOptions:
2424
- ServerSideApply=true
25+
- SkipDryRunOnMissingResource=true

0 commit comments

Comments
 (0)