github.com/argoproj/argo-cd@v1.8.7/resource_customizations/argoproj.io/AnalysisRun/testdata/terminatedAnalysisRun.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: AnalysisRun
     3  metadata:
     4    annotations:
     5      rollout.argoproj.io/revision: '2'
     6    creationTimestamp: '2020-11-06T18:39:45Z'
     7    generation: 4
     8    labels:
     9      rollout-type: Step
    10      rollouts-pod-template-hash: ff68867ff
    11      step-index: '0'
    12    name: rollout-canary-ff68867ff-2-0
    13    namespace: default
    14    ownerReferences:
    15      - apiVersion: argoproj.io/v1alpha1
    16        blockOwnerDeletion: true
    17        controller: true
    18        kind: Rollout
    19        name: rollout-canary
    20        uid: 0223237a-0dc1-45f6-881c-fe1873b1771f
    21    resourceVersion: '1381'
    22    selfLink: >-
    23      /apis/argoproj.io/v1alpha1/namespaces/default/analysisruns/rollout-canary-ff68867ff-2-0
    24    uid: 863da27d-df03-41d2-a528-cc2f1ec25358
    25  spec:
    26    args:
    27      - name: exit-code
    28        value: '0'
    29      - name: duration
    30        value: 1h
    31    metrics:
    32      - name: sleep-job
    33        provider:
    34          job:
    35            metadata:
    36              creationTimestamp: null
    37            spec:
    38              backoffLimit: 0
    39              template:
    40                metadata:
    41                  creationTimestamp: null
    42                spec:
    43                  containers:
    44                    - args:
    45                        - 'sleep {{args.duration}} && exit {{args.exit-code}}'
    46                      command:
    47                        - sh
    48                        - '-c'
    49                        - '-x'
    50                      image: 'nginx:1.19-alpine'
    51                      name: sleep-job
    52                      resources: {}
    53                  restartPolicy: Never
    54    terminate: true
    55  status:
    56    message: run terminated
    57    metricResults:
    58      - count: 1
    59        measurements:
    60          - finishedAt: '2020-11-06T18:42:58Z'
    61            message: metric terminated
    62            metadata:
    63              job-name: 863da27d-df03-41d2-a528-cc2f1ec25358.sleep-job.1
    64            phase: Successful
    65            startedAt: '2020-11-06T18:39:45Z'
    66        message: metric terminated
    67        name: sleep-job
    68        phase: Successful
    69        successful: 1
    70    phase: Successful
    71    startedAt: '2020-11-06T18:39:45Z'