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

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: Rollout
     3  metadata:
     4    annotations:
     5      rollout.argoproj.io/revision: "1"
     6    creationTimestamp: "2020-11-13T00:22:49Z"
     7    generation: 3
     8    name: basic
     9    namespace: argocd-e2e
    10    resourceVersion: "181746"
    11    selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/basic
    12    uid: 5b0926f3-30b7-4727-a76e-46c0d2617906
    13  spec:
    14    replicas: 1
    15    selector:
    16      matchLabels:
    17        app: basic
    18    strategy: {}
    19    template:
    20      metadata:
    21        creationTimestamp: null
    22        labels:
    23          app: basic
    24      spec:
    25        containers:
    26        - image: nginx:1.19-alpine
    27          name: basic
    28          resources:
    29            requests:
    30              cpu: 1m
    31              memory: 16Mi
    32  status:
    33    HPAReplicas: 1
    34    availableReplicas: 1
    35    blueGreen: {}
    36    canary: {}
    37    conditions:
    38    - lastTransitionTime: "2020-11-13T00:22:48Z"
    39      lastUpdateTime: "2020-11-13T00:22:50Z"
    40      message: ReplicaSet "basic-754cb84d5" has successfully progressed.
    41      reason: NewReplicaSetAvailable
    42      status: "True"
    43      type: Progressing
    44    - lastTransitionTime: "2020-11-13T00:22:50Z"
    45      lastUpdateTime: "2020-11-13T00:22:50Z"
    46      message: Rollout has minimum availability
    47      reason: AvailableReason
    48      status: "True"
    49      type: Available
    50    - lastTransitionTime: "2020-11-13T00:40:30Z"
    51      lastUpdateTime: "2020-11-13T00:40:30Z"
    52      message: 'The Rollout "basic" is invalid: spec.strategy.strategy: Required value:
    53        Rollout has missing field ''.spec.strategy.canary or .spec.strategy.blueGreen'''
    54      reason: InvalidSpec
    55      status: "True"
    56      type: InvalidSpec
    57    currentPodHash: 754cb84d5
    58    currentStepHash: 757f5f97b
    59    currentStepIndex: 2
    60    observedGeneration: "3"
    61    readyReplicas: 1
    62    replicas: 1
    63    selector: app=basic
    64    stableRS: 754cb84d5
    65    updatedReplicas: 1