chore: make CSI smoke test non-blocking by default
This commit is contained in:
@@ -12,3 +12,4 @@ csi_smoke_test_base_storage_class: "hcloud-volumes"
|
||||
csi_smoke_test_size: "1Gi"
|
||||
csi_smoke_test_pvc_timeout_seconds: 300
|
||||
csi_smoke_test_job_timeout_seconds: 300
|
||||
csi_smoke_test_required: false
|
||||
|
||||
@@ -334,6 +334,18 @@
|
||||
when:
|
||||
- csi_smoke_test_enabled | bool
|
||||
- csi_smoke_pvc_wait.rc != 0 or (csi_smoke_job_wait.rc | default(1)) != 0
|
||||
- csi_smoke_test_required | bool
|
||||
|
||||
- name: Warn when CSI smoke test fails but is non-blocking
|
||||
debug:
|
||||
msg: |
|
||||
CSI smoke test failed but csi_smoke_test_required is false, so deployment will continue.
|
||||
PVC wait stderr: {{ csi_smoke_pvc_wait.stderr | default('') }}
|
||||
Job wait stderr: {{ csi_smoke_job_wait.stderr | default('') }}
|
||||
when:
|
||||
- csi_smoke_test_enabled | bool
|
||||
- csi_smoke_pvc_wait.rc != 0 or (csi_smoke_job_wait.rc | default(1)) != 0
|
||||
- not (csi_smoke_test_required | bool)
|
||||
|
||||
- name: Cleanup CSI smoke test resources
|
||||
shell: |
|
||||
|
||||
Reference in New Issue
Block a user