github.com/splunk/dan1-qbec@v0.7.3/internal/types/testdata/statefulset/bad-object.json (about)

     1  {
     2      "apiVersion": "apps/v1",
     3      "kind": "StatefulSet",
     4      "metadata": {
     5          "creationTimestamp": "2018-10-09T18:30:32Z",
     6          "generation": 7,
     7          "annotations": {
     8            "test/error": "/json unmarshal/"
     9          },
    10          "labels": {
    11              "alertmanager": "main"
    12          },
    13          "name": "ss",
    14          "namespace": "default",
    15          "ownerReferences": [],
    16          "resourceVersion": "95295103",
    17          "selfLink": "/apis/apps/v1/namespaces/default/statefulsets/ss",
    18          "uid": "6822c06e-cbf1-11e8-ba1c-0669aafd7d14"
    19      },
    20      "spec": {
    21          "podManagementPolicy": "OrderedReady",
    22          "replicas": 3,
    23          "revisionHistoryLimit": 10,
    24          "selector": {
    25              "matchLabels": {
    26                  "alertmanager": "main",
    27                  "app": "alertmanager"
    28              }
    29          },
    30          "serviceName": "alertmanager-operated",
    31          "template": {
    32              "metadata": {
    33                  "creationTimestamp": null,
    34                  "labels": {
    35                      "alertmanager": "main",
    36                      "app": "alertmanager"
    37                  }
    38              },
    39              "spec": {
    40                  "affinity": {
    41                      "podAntiAffinity": {
    42                          "preferredDuringSchedulingIgnoredDuringExecution": [
    43                              {
    44                                  "podAffinityTerm": {
    45                                      "labelSelector": {
    46                                          "matchExpressions": [
    47                                              {
    48                                                  "key": "alertmanager",
    49                                                  "operator": "In",
    50                                                  "values": [
    51                                                      "main"
    52                                                  ]
    53                                              }
    54                                          ]
    55                                      },
    56                                      "topologyKey": "failure-domain.beta.kubernetes.io/zone"
    57                                  },
    58                                  "weight": 100
    59                              }
    60                          ]
    61                      }
    62                  },
    63                  "containers": [
    64                      {
    65                          "args": [
    66                          ],
    67                          "env": [
    68                              {
    69                                  "name": "POD_IP",
    70                                  "valueFrom": {
    71                                      "fieldRef": {
    72                                          "apiVersion": "v1",
    73                                          "fieldPath": "status.podIP"
    74                                      }
    75                                  }
    76                              }
    77                          ],
    78                          "image": "nginx",
    79                          "imagePullPolicy": "IfNotPresent",
    80                          "name": "main",
    81                          "ports": [
    82                              {
    83                                  "containerPort": 9093,
    84                                  "name": "web",
    85                                  "protocol": "TCP"
    86                              }
    87                          ],
    88                          "terminationMessagePath": "/dev/termination-log",
    89                          "terminationMessagePolicy": "File"
    90                      }
    91                  ],
    92                  "dnsPolicy": "ClusterFirst",
    93                  "restartPolicy": "Always",
    94                  "schedulerName": "default-scheduler",
    95                  "terminationGracePeriodSeconds": 0
    96              }
    97          },
    98          "updateStrategy": {
    99              "type": "RollingUpdate"
   100          }
   101      },
   102      "status": {
   103          "collisionCount": 0,
   104          "currentReplicas": 3,
   105          "currentRevision": "ss-5fbcc4fd55",
   106          "observedGeneration": "xxx",
   107          "readyReplicas": 3,
   108          "replicas": 3,
   109          "updateRevision": "ss-5fbcc4fd55",
   110          "updatedReplicas": 3
   111      }
   112  }