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