Skip to content

Commit

Permalink
salt: wait for cert-manager before installing olm
Browse files Browse the repository at this point in the history
  • Loading branch information
eg-ayoub committed Dec 13, 2024
1 parent aa98284 commit a388dbf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions salt/metalk8s/addons/cert-manager/deployed/init.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
include:
- .namespace
- .chart

Wait for cert-manager deployment to be Ready:
test.configurable_test_state:
- changes: False
- result: __slot__:salt:metalk8s_kubernetes.check_object_ready(
apiVersion=apps/v1, kind=Deployment,
name=cert-manager, namespace=metalk8s-certs)
- comment: wait for cert-manager
- retry:
attempts: 30
- require:
- sls: metalk8s.addons.cert-manager.deployed.chart

Wait for cert-manager webhook to be Ready:
test.configurable_test_state:
- changes: False
- result: __slot__:salt:metalk8s_kubernetes.check_object_ready(
apiVersion=apps/v1, kind=Deployment,
name=cert-manager-webhook, namespace=metalk8s-certs)
- comment: wait for cert-manager-webhook
- retry:
attempts: 30
- require:
- sls: metalk8s.addons.cert-manager.deployed.chart

Wait for cert-manager cainjector to be Ready:
test.configurable_test_state:
- changes: False
- result: __slot__:salt:metalk8s_kubernetes.check_object_ready(
apiVersion=apps/v1, kind=Deployment,
name=cert-manager-cainjector, namespace=metalk8s-certs)
- comment: wait for cert-manager-cainjector
- retry:
attempts: 30
- require:
- sls: metalk8s.addons.cert-manager.deployed.chart

0 comments on commit a388dbf

Please sign in to comment.