# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
  name: non-blocking-deployment
spec:
  namespaceTemplate:
    metadata:
      annotations:
        keptn.sh/lifecycle-toolkit: enabled
  steps:
    - name: step-00
      try:
        - apply:
            file: keptnconfig-non-blocking.yaml
    - name: step-01
      try:
        - script:
            content: ./../common/verify-keptnconfig.sh
        - sleep:
            duration: 30s
    - name: step-02
      try:
        - apply:
            file: 00-install.yaml
        - assert:
            file: 00-assert.yaml
    - name: step-03
      try:
        - apply:
            file: keptnconfig-blocking.yaml
    - name: step-04
      try:
        - script:
            content: ./../common/verify-keptnconfig.sh
        - sleep:
            duration: 30s
    - name: step-05
      try:
        - apply:
            file: 01-install.yaml
        - assert:
            file: 01-assert.yaml
