...

Text file src/k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-edit-subresource-status/2.response

Documentation: k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-edit-subresource-status

     1{
     2    "apiVersion": "apps/v1",
     3    "kind": "Deployment",
     4    "metadata": {
     5        "annotations": {
     6            "deployment.kubernetes.io/revision": "1"
     7        },
     8        "creationTimestamp": "2021-06-23T17:01:10Z",
     9        "generation": 5,
    10        "labels": {
    11            "app": "nginx"
    12        },
    13        "name": "nginx",
    14        "namespace": "edit-test",
    15        "resourceVersion": "121107",
    16        "uid": "a598ee47-9635-482b-bacb-16c9e3ade05c"
    17    },
    18    "spec": {
    19        "progressDeadlineSeconds": 600,
    20        "replicas": 3,
    21        "revisionHistoryLimit": 10,
    22        "selector": {
    23            "matchLabels": {
    24                "app": "nginx"
    25            }
    26        },
    27        "strategy": {
    28            "rollingUpdate": {
    29                "maxSurge": "25%",
    30                "maxUnavailable": "25%"
    31            },
    32            "type": "RollingUpdate"
    33        },
    34        "template": {
    35            "metadata": {
    36                "creationTimestamp": null,
    37                "labels": {
    38                    "app": "nginx"
    39                }
    40            },
    41            "spec": {
    42                "containers": [
    43                    {
    44                        "image": "gcr.io/kakaraparthy-devel/nginx:latest",
    45                        "imagePullPolicy": "Always",
    46                        "name": "nginx",
    47                        "resources": {},
    48                        "terminationMessagePath": "/dev/termination-log",
    49                        "terminationMessagePolicy": "File"
    50                    }
    51                ],
    52                "dnsPolicy": "ClusterFirst",
    53                "restartPolicy": "Always",
    54                "schedulerName": "default-scheduler",
    55                "securityContext": {},
    56                "terminationGracePeriodSeconds": 30
    57            }
    58        }
    59    },
    60    "status": {
    61        "availableReplicas": 3,
    62        "conditions": [
    63            {
    64                "lastTransitionTime": "2021-06-23T17:01:10Z",
    65                "lastUpdateTime": "2021-06-23T17:01:18Z",
    66                "message": "ReplicaSet \"nginx-6f5fdbd667\" has successfully progressed.",
    67                "reason": "NewReplicaSetAvailable",
    68                "status": "True",
    69                "type": "Progressing"
    70            },
    71            {
    72                "lastTransitionTime": "2021-06-23T17:59:01Z",
    73                "lastUpdateTime": "2021-06-23T17:59:01Z",
    74                "message": "Deployment has minimum availability.",
    75                "reason": "MinimumReplicasAvailable",
    76                "status": "True",
    77                "type": "Available"
    78            }
    79        ],
    80        "observedGeneration": 5,
    81        "readyReplicas": 3,
    82        "replicas": 4,
    83        "updatedReplicas": 3
    84    }
    85}

View as plain text