Skip to content

Commit 976b73b

Browse files
committed
Set sync wave for espejote admission
1 parent e3b8c5d commit 976b73b

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

component/argocd-priority-class.jsonnet

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ local hasEspejote = std.member(inv.applications, 'espejote');
1010
if hasEspejote then
1111
{
1212
'10_argocd_priority_class': esp.admission('argocd-set-priority-class', params.namespace) {
13+
metadata+: {
14+
annotations: {
15+
// We set a higher sync-wave than the syn ArgoCD instance to ensure
16+
// bootstrap is not blocked my missing espejote CRDs
17+
'argocd.argoproj.io/sync-wave': '20'
18+
},
19+
},
1320
spec: {
1421
mutating: true,
1522
template: importstr 'espejote-templates/argocd-priority-class.jsonnet',

tests/golden/openshift/argocd/argocd/30_argocd/10_argocd_priority_class.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apiVersion: espejote.io/v1alpha1
22
kind: Admission
33
metadata:
4+
annotations:
5+
argocd.argoproj.io/sync-wave: '20'
46
labels:
57
app.kubernetes.io/name: argocd-set-priority-class
68
name: argocd-set-priority-class

0 commit comments

Comments
 (0)