github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/verify-fail-k8s/skaffold.yaml (about)

     1  apiVersion: skaffold/v4beta11
     2  kind: Config
     3  verify:
     4    - name: hello-world
     5      container:
     6        name: hello-world
     7        image: hello-world
     8      executionMode:
     9        kubernetesCluster: {}
    10    - name: alpine
    11      container:
    12        name: alpine
    13        image: alpine:3.15.4
    14        command: ["/bin/sh"]
    15        args: ["-c", "echo $FOO;exit 1"]
    16      executionMode:
    17        kubernetesCluster: {}
    18  
    19  profiles:
    20    - name: no-duplicated-logs
    21      verify:
    22        - name: alpine-1
    23          executionMode:
    24            kubernetesCluster: {}
    25          container:
    26            name: alpine-1
    27            image: alpine:3.15.4
    28            command: ["/bin/sh"]
    29            args: ["-c", "echo alpine-1; sleep 1; echo bye alpine-1"]
    30        
    31        - name: alpine-2
    32          executionMode:
    33            kubernetesCluster: {}
    34          container:
    35            name: alpine-2
    36            image: alpine:3.15.4
    37            command: ["/bin/sh"]
    38            args: ["-c", "echo alpine-2; echo bye alpine-2; exit 1"]
    39  
    40    - name: fail-timeout
    41      verify:
    42        - name: alpine-3
    43          timeout: 5
    44          executionMode:
    45            kubernetesCluster: {}
    46          container:
    47            name: alpine-3
    48            image: alpine:3.15.4
    49            command: ["/bin/sh"]
    50            args: ["-c", "echo alpine-3; sleep 10; echo bye alpine-3"]
    51    
    52    - name: fail-two-test-timeout
    53      verify:
    54        - name: alpine-4
    55          timeout: 6
    56          executionMode:
    57            kubernetesCluster: {}
    58          container:
    59            name: alpine-4
    60            image: alpine:3.15.4
    61            command: ["/bin/sh"]
    62            args: ["-c", "echo alpine-4; sleep 10; echo bye alpine-4"]
    63        - name: alpine-5
    64          timeout: 5
    65          executionMode:
    66            kubernetesCluster: {}
    67          container:
    68            name: alpine-5
    69            image: alpine:3.15.4
    70            command: ["/bin/sh"]
    71            args: ["-c", "echo alpine-5; sleep 8; echo bye alpine-5"]
    72    
    73    - name: fail-only-one-test-timeout
    74      verify:
    75        - name: alpine-6
    76          timeout: 6
    77          executionMode:
    78            kubernetesCluster: {}
    79          container:
    80            name: alpine-6
    81            image: alpine:3.15.4
    82            command: ["/bin/sh"]
    83            args: ["-c", "echo alpine-6; sleep 10; echo bye alpine-6"]
    84        - name: alpine-7
    85          executionMode:
    86            kubernetesCluster: {}
    87          container:
    88            name: alpine-7
    89            image: alpine:3.15.4
    90            command: ["/bin/sh"]
    91            args: ["-c", "echo alpine-7; sleep 15; echo bye alpine-7"]