diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.json new file mode 100644 index 00000000000..9c21afab669 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.json @@ -0,0 +1,1821 @@ +{ + "kind": "StatefulSet", + "apiVersion": "apps/v1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "replicas": 1, + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "template": { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "volumes": [ + { + "name": "nameValue", + "hostPath": { + "path": "pathValue", + "type": "typeValue" + }, + "emptyDir": { + "medium": "mediumValue", + "sizeLimit": "0" + }, + "gcePersistentDisk": { + "pdName": "pdNameValue", + "fsType": "fsTypeValue", + "partition": 3, + "readOnly": true + }, + "awsElasticBlockStore": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "partition": 3, + "readOnly": true + }, + "gitRepo": { + "repository": "repositoryValue", + "revision": "revisionValue", + "directory": "directoryValue" + }, + "secret": { + "secretName": "secretNameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "defaultMode": 3, + "optional": true + }, + "nfs": { + "server": "serverValue", + "path": "pathValue", + "readOnly": true + }, + "iscsi": { + "targetPortal": "targetPortalValue", + "iqn": "iqnValue", + "lun": 3, + "iscsiInterface": "iscsiInterfaceValue", + "fsType": "fsTypeValue", + "readOnly": true, + "portals": [ + "portalsValue" + ], + "chapAuthDiscovery": true, + "chapAuthSession": true, + "secretRef": { + "name": "nameValue" + }, + "initiatorName": "initiatorNameValue" + }, + "glusterfs": { + "endpoints": "endpointsValue", + "path": "pathValue", + "readOnly": true + }, + "persistentVolumeClaim": { + "claimName": "claimNameValue", + "readOnly": true + }, + "rbd": { + "monitors": [ + "monitorsValue" + ], + "image": "imageValue", + "fsType": "fsTypeValue", + "pool": "poolValue", + "user": "userValue", + "keyring": "keyringValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true + }, + "flexVolume": { + "driver": "driverValue", + "fsType": "fsTypeValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true, + "options": { + "optionsKey": "optionsValue" + } + }, + "cinder": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "readOnly": true, + "secretRef": { + "name": "nameValue" + } + }, + "cephfs": { + "monitors": [ + "monitorsValue" + ], + "path": "pathValue", + "user": "userValue", + "secretFile": "secretFileValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true + }, + "flocker": { + "datasetName": "datasetNameValue", + "datasetUUID": "datasetUUIDValue" + }, + "downwardAPI": { + "items": [ + { + "path": "pathValue", + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "mode": 4 + } + ], + "defaultMode": 2 + }, + "fc": { + "targetWWNs": [ + "targetWWNsValue" + ], + "lun": 2, + "fsType": "fsTypeValue", + "readOnly": true, + "wwids": [ + "wwidsValue" + ] + }, + "azureFile": { + "secretName": "secretNameValue", + "shareName": "shareNameValue", + "readOnly": true + }, + "configMap": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "defaultMode": 3, + "optional": true + }, + "vsphereVolume": { + "volumePath": "volumePathValue", + "fsType": "fsTypeValue", + "storagePolicyName": "storagePolicyNameValue", + "storagePolicyID": "storagePolicyIDValue" + }, + "quobyte": { + "registry": "registryValue", + "volume": "volumeValue", + "readOnly": true, + "user": "userValue", + "group": "groupValue", + "tenant": "tenantValue" + }, + "azureDisk": { + "diskName": "diskNameValue", + "diskURI": "diskURIValue", + "cachingMode": "cachingModeValue", + "fsType": "fsTypeValue", + "readOnly": true, + "kind": "kindValue" + }, + "photonPersistentDisk": { + "pdID": "pdIDValue", + "fsType": "fsTypeValue" + }, + "projected": { + "sources": [ + { + "secret": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "optional": true + }, + "downwardAPI": { + "items": [ + { + "path": "pathValue", + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "mode": 4 + } + ] + }, + "configMap": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "optional": true + }, + "serviceAccountToken": { + "audience": "audienceValue", + "expirationSeconds": 2, + "path": "pathValue" + } + } + ], + "defaultMode": 2 + }, + "portworxVolume": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "readOnly": true + }, + "scaleIO": { + "gateway": "gatewayValue", + "system": "systemValue", + "secretRef": { + "name": "nameValue" + }, + "sslEnabled": true, + "protectionDomain": "protectionDomainValue", + "storagePool": "storagePoolValue", + "storageMode": "storageModeValue", + "volumeName": "volumeNameValue", + "fsType": "fsTypeValue", + "readOnly": true + }, + "storageos": { + "volumeName": "volumeNameValue", + "volumeNamespace": "volumeNamespaceValue", + "fsType": "fsTypeValue", + "readOnly": true, + "secretRef": { + "name": "nameValue" + } + }, + "csi": { + "driver": "driverValue", + "readOnly": true, + "fsType": "fsTypeValue", + "volumeAttributes": { + "volumeAttributesKey": "volumeAttributesValue" + }, + "nodePublishSecretRef": { + "name": "nameValue" + } + }, + "ephemeral": { + "volumeClaimTemplate": { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + } + } + } + } + ], + "initContainers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true + } + ], + "containers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true + } + ], + "ephemeralContainers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true, + "targetContainerName": "targetContainerNameValue" + } + ], + "restartPolicy": "restartPolicyValue", + "terminationGracePeriodSeconds": 4, + "activeDeadlineSeconds": 5, + "dnsPolicy": "dnsPolicyValue", + "nodeSelector": { + "nodeSelectorKey": "nodeSelectorValue" + }, + "serviceAccountName": "serviceAccountNameValue", + "serviceAccount": "serviceAccountValue", + "automountServiceAccountToken": true, + "nodeName": "nodeNameValue", + "hostNetwork": true, + "hostPID": true, + "hostIPC": true, + "shareProcessNamespace": true, + "securityContext": { + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 2, + "runAsGroup": 6, + "runAsNonRoot": true, + "supplementalGroups": [ + 4 + ], + "fsGroup": 5, + "sysctls": [ + { + "name": "nameValue", + "value": "valueValue" + } + ], + "fsGroupChangePolicy": "fsGroupChangePolicyValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "imagePullSecrets": [ + { + "name": "nameValue" + } + ], + "hostname": "hostnameValue", + "subdomain": "subdomainValue", + "affinity": { + "nodeAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": { + "nodeSelectorTerms": [ + { + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ], + "matchFields": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + ] + }, + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "preference": { + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ], + "matchFields": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ] + }, + "podAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": [ + { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ], + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "podAffinityTerm": { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + } + ] + }, + "podAntiAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": [ + { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ], + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "podAffinityTerm": { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + } + ] + } + }, + "schedulerName": "schedulerNameValue", + "tolerations": [ + { + "key": "keyValue", + "operator": "operatorValue", + "value": "valueValue", + "effect": "effectValue", + "tolerationSeconds": 5 + } + ], + "hostAliases": [ + { + "ip": "ipValue", + "hostnames": [ + "hostnamesValue" + ] + } + ], + "priorityClassName": "priorityClassNameValue", + "priority": 25, + "dnsConfig": { + "nameservers": [ + "nameserversValue" + ], + "searches": [ + "searchesValue" + ], + "options": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "readinessGates": [ + { + "conditionType": "conditionTypeValue" + } + ], + "runtimeClassName": "runtimeClassNameValue", + "enableServiceLinks": true, + "preemptionPolicy": "preemptionPolicyValue", + "overhead": { + "overheadKey": "0" + }, + "topologySpreadConstraints": [ + { + "maxSkew": 1, + "topologyKey": "topologyKeyValue", + "whenUnsatisfiable": "whenUnsatisfiableValue", + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "minDomains": 5, + "nodeAffinityPolicy": "nodeAffinityPolicyValue", + "nodeTaintsPolicy": "nodeTaintsPolicyValue", + "matchLabelKeys": [ + "matchLabelKeysValue" + ] + } + ], + "setHostnameAsFQDN": true, + "os": { + "name": "nameValue" + }, + "hostUsers": true, + "schedulingGates": [ + { + "name": "nameValue" + } + ], + "resourceClaims": [ + { + "name": "nameValue", + "source": { + "resourceClaimName": "resourceClaimNameValue", + "resourceClaimTemplateName": "resourceClaimTemplateNameValue" + } + } + ] + } + }, + "volumeClaimTemplates": [ + { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + }, + "status": { + "phase": "phaseValue", + "accessModes": [ + "accessModesValue" + ], + "capacity": { + "capacityKey": "0" + }, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastProbeTime": "2003-01-01T01:01:01Z", + "lastTransitionTime": "2004-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "allocatedResources": { + "allocatedResourcesKey": "0" + } + } + } + ], + "serviceName": "serviceNameValue", + "podManagementPolicy": "podManagementPolicyValue", + "updateStrategy": { + "type": "typeValue", + "rollingUpdate": { + "partition": 1, + "maxUnavailable": "maxUnavailableValue" + } + }, + "revisionHistoryLimit": 8, + "minReadySeconds": 9, + "persistentVolumeClaimRetentionPolicy": { + "whenDeleted": "whenDeletedValue", + "whenScaled": "whenScaledValue" + }, + "ordinals": { + "start": 1 + } + }, + "status": { + "observedGeneration": 1, + "replicas": 2, + "readyReplicas": 3, + "currentReplicas": 4, + "updatedReplicas": 5, + "currentRevision": "currentRevisionValue", + "updateRevision": "updateRevisionValue", + "collisionCount": 9, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastTransitionTime": "2003-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "availableReplicas": 11 + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.pb new file mode 100644 index 00000000000..3f6045c1c11 Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.yaml new file mode 100644 index 00000000000..5d90df0b021 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1.StatefulSet.after_roundtrip.yaml @@ -0,0 +1,1250 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + minReadySeconds: 9 + ordinals: + start: 1 + persistentVolumeClaimRetentionPolicy: + whenDeleted: whenDeletedValue + whenScaled: whenScaledValue + podManagementPolicy: podManagementPolicyValue + replicas: 1 + revisionHistoryLimit: 8 + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + serviceName: serviceNameValue + template: + metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + activeDeadlineSeconds: 5 + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchFields: + - key: keyValue + operator: operatorValue + values: + - valuesValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchFields: + - key: keyValue + operator: operatorValue + values: + - valuesValue + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + automountServiceAccountToken: true + containers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + dnsConfig: + nameservers: + - nameserversValue + options: + - name: nameValue + value: valueValue + searches: + - searchesValue + dnsPolicy: dnsPolicyValue + enableServiceLinks: true + ephemeralContainers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + targetContainerName: targetContainerNameValue + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + hostAliases: + - hostnames: + - hostnamesValue + ip: ipValue + hostIPC: true + hostNetwork: true + hostPID: true + hostUsers: true + hostname: hostnameValue + imagePullSecrets: + - name: nameValue + initContainers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + nodeName: nodeNameValue + nodeSelector: + nodeSelectorKey: nodeSelectorValue + os: + name: nameValue + overhead: + overheadKey: "0" + preemptionPolicy: preemptionPolicyValue + priority: 25 + priorityClassName: priorityClassNameValue + readinessGates: + - conditionType: conditionTypeValue + resourceClaims: + - name: nameValue + source: + resourceClaimName: resourceClaimNameValue + resourceClaimTemplateName: resourceClaimTemplateNameValue + restartPolicy: restartPolicyValue + runtimeClassName: runtimeClassNameValue + schedulerName: schedulerNameValue + schedulingGates: + - name: nameValue + securityContext: + fsGroup: 5 + fsGroupChangePolicy: fsGroupChangePolicyValue + runAsGroup: 6 + runAsNonRoot: true + runAsUser: 2 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + supplementalGroups: + - 4 + sysctls: + - name: nameValue + value: valueValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + serviceAccount: serviceAccountValue + serviceAccountName: serviceAccountNameValue + setHostnameAsFQDN: true + shareProcessNamespace: true + subdomain: subdomainValue + terminationGracePeriodSeconds: 4 + tolerations: + - effect: effectValue + key: keyValue + operator: operatorValue + tolerationSeconds: 5 + value: valueValue + topologySpreadConstraints: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + matchLabelKeys: + - matchLabelKeysValue + maxSkew: 1 + minDomains: 5 + nodeAffinityPolicy: nodeAffinityPolicyValue + nodeTaintsPolicy: nodeTaintsPolicyValue + topologyKey: topologyKeyValue + whenUnsatisfiable: whenUnsatisfiableValue + volumes: + - awsElasticBlockStore: + fsType: fsTypeValue + partition: 3 + readOnly: true + volumeID: volumeIDValue + azureDisk: + cachingMode: cachingModeValue + diskName: diskNameValue + diskURI: diskURIValue + fsType: fsTypeValue + kind: kindValue + readOnly: true + azureFile: + readOnly: true + secretName: secretNameValue + shareName: shareNameValue + cephfs: + monitors: + - monitorsValue + path: pathValue + readOnly: true + secretFile: secretFileValue + secretRef: + name: nameValue + user: userValue + cinder: + fsType: fsTypeValue + readOnly: true + secretRef: + name: nameValue + volumeID: volumeIDValue + configMap: + defaultMode: 3 + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + csi: + driver: driverValue + fsType: fsTypeValue + nodePublishSecretRef: + name: nameValue + readOnly: true + volumeAttributes: + volumeAttributesKey: volumeAttributesValue + downwardAPI: + defaultMode: 2 + items: + - fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + mode: 4 + path: pathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + emptyDir: + medium: mediumValue + sizeLimit: "0" + ephemeral: + volumeClaimTemplate: + metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue + fc: + fsType: fsTypeValue + lun: 2 + readOnly: true + targetWWNs: + - targetWWNsValue + wwids: + - wwidsValue + flexVolume: + driver: driverValue + fsType: fsTypeValue + options: + optionsKey: optionsValue + readOnly: true + secretRef: + name: nameValue + flocker: + datasetName: datasetNameValue + datasetUUID: datasetUUIDValue + gcePersistentDisk: + fsType: fsTypeValue + partition: 3 + pdName: pdNameValue + readOnly: true + gitRepo: + directory: directoryValue + repository: repositoryValue + revision: revisionValue + glusterfs: + endpoints: endpointsValue + path: pathValue + readOnly: true + hostPath: + path: pathValue + type: typeValue + iscsi: + chapAuthDiscovery: true + chapAuthSession: true + fsType: fsTypeValue + initiatorName: initiatorNameValue + iqn: iqnValue + iscsiInterface: iscsiInterfaceValue + lun: 3 + portals: + - portalsValue + readOnly: true + secretRef: + name: nameValue + targetPortal: targetPortalValue + name: nameValue + nfs: + path: pathValue + readOnly: true + server: serverValue + persistentVolumeClaim: + claimName: claimNameValue + readOnly: true + photonPersistentDisk: + fsType: fsTypeValue + pdID: pdIDValue + portworxVolume: + fsType: fsTypeValue + readOnly: true + volumeID: volumeIDValue + projected: + defaultMode: 2 + sources: + - configMap: + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + downwardAPI: + items: + - fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + mode: 4 + path: pathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secret: + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + serviceAccountToken: + audience: audienceValue + expirationSeconds: 2 + path: pathValue + quobyte: + group: groupValue + readOnly: true + registry: registryValue + tenant: tenantValue + user: userValue + volume: volumeValue + rbd: + fsType: fsTypeValue + image: imageValue + keyring: keyringValue + monitors: + - monitorsValue + pool: poolValue + readOnly: true + secretRef: + name: nameValue + user: userValue + scaleIO: + fsType: fsTypeValue + gateway: gatewayValue + protectionDomain: protectionDomainValue + readOnly: true + secretRef: + name: nameValue + sslEnabled: true + storageMode: storageModeValue + storagePool: storagePoolValue + system: systemValue + volumeName: volumeNameValue + secret: + defaultMode: 3 + items: + - key: keyValue + mode: 3 + path: pathValue + optional: true + secretName: secretNameValue + storageos: + fsType: fsTypeValue + readOnly: true + secretRef: + name: nameValue + volumeName: volumeNameValue + volumeNamespace: volumeNamespaceValue + vsphereVolume: + fsType: fsTypeValue + storagePolicyID: storagePolicyIDValue + storagePolicyName: storagePolicyNameValue + volumePath: volumePathValue + updateStrategy: + rollingUpdate: + maxUnavailable: maxUnavailableValue + partition: 1 + type: typeValue + volumeClaimTemplates: + - metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue + status: + accessModes: + - accessModesValue + allocatedResources: + allocatedResourcesKey: "0" + capacity: + capacityKey: "0" + conditions: + - lastProbeTime: "2003-01-01T01:01:01Z" + lastTransitionTime: "2004-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + phase: phaseValue +status: + availableReplicas: 11 + collisionCount: 9 + conditions: + - lastTransitionTime: "2003-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + currentReplicas: 4 + currentRevision: currentRevisionValue + observedGeneration: 1 + readyReplicas: 3 + replicas: 2 + updateRevision: updateRevisionValue + updatedReplicas: 5 diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.json new file mode 100644 index 00000000000..ab37de84553 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.json @@ -0,0 +1,1821 @@ +{ + "kind": "StatefulSet", + "apiVersion": "apps/v1beta1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "replicas": 1, + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "template": { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "volumes": [ + { + "name": "nameValue", + "hostPath": { + "path": "pathValue", + "type": "typeValue" + }, + "emptyDir": { + "medium": "mediumValue", + "sizeLimit": "0" + }, + "gcePersistentDisk": { + "pdName": "pdNameValue", + "fsType": "fsTypeValue", + "partition": 3, + "readOnly": true + }, + "awsElasticBlockStore": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "partition": 3, + "readOnly": true + }, + "gitRepo": { + "repository": "repositoryValue", + "revision": "revisionValue", + "directory": "directoryValue" + }, + "secret": { + "secretName": "secretNameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "defaultMode": 3, + "optional": true + }, + "nfs": { + "server": "serverValue", + "path": "pathValue", + "readOnly": true + }, + "iscsi": { + "targetPortal": "targetPortalValue", + "iqn": "iqnValue", + "lun": 3, + "iscsiInterface": "iscsiInterfaceValue", + "fsType": "fsTypeValue", + "readOnly": true, + "portals": [ + "portalsValue" + ], + "chapAuthDiscovery": true, + "chapAuthSession": true, + "secretRef": { + "name": "nameValue" + }, + "initiatorName": "initiatorNameValue" + }, + "glusterfs": { + "endpoints": "endpointsValue", + "path": "pathValue", + "readOnly": true + }, + "persistentVolumeClaim": { + "claimName": "claimNameValue", + "readOnly": true + }, + "rbd": { + "monitors": [ + "monitorsValue" + ], + "image": "imageValue", + "fsType": "fsTypeValue", + "pool": "poolValue", + "user": "userValue", + "keyring": "keyringValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true + }, + "flexVolume": { + "driver": "driverValue", + "fsType": "fsTypeValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true, + "options": { + "optionsKey": "optionsValue" + } + }, + "cinder": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "readOnly": true, + "secretRef": { + "name": "nameValue" + } + }, + "cephfs": { + "monitors": [ + "monitorsValue" + ], + "path": "pathValue", + "user": "userValue", + "secretFile": "secretFileValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true + }, + "flocker": { + "datasetName": "datasetNameValue", + "datasetUUID": "datasetUUIDValue" + }, + "downwardAPI": { + "items": [ + { + "path": "pathValue", + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "mode": 4 + } + ], + "defaultMode": 2 + }, + "fc": { + "targetWWNs": [ + "targetWWNsValue" + ], + "lun": 2, + "fsType": "fsTypeValue", + "readOnly": true, + "wwids": [ + "wwidsValue" + ] + }, + "azureFile": { + "secretName": "secretNameValue", + "shareName": "shareNameValue", + "readOnly": true + }, + "configMap": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "defaultMode": 3, + "optional": true + }, + "vsphereVolume": { + "volumePath": "volumePathValue", + "fsType": "fsTypeValue", + "storagePolicyName": "storagePolicyNameValue", + "storagePolicyID": "storagePolicyIDValue" + }, + "quobyte": { + "registry": "registryValue", + "volume": "volumeValue", + "readOnly": true, + "user": "userValue", + "group": "groupValue", + "tenant": "tenantValue" + }, + "azureDisk": { + "diskName": "diskNameValue", + "diskURI": "diskURIValue", + "cachingMode": "cachingModeValue", + "fsType": "fsTypeValue", + "readOnly": true, + "kind": "kindValue" + }, + "photonPersistentDisk": { + "pdID": "pdIDValue", + "fsType": "fsTypeValue" + }, + "projected": { + "sources": [ + { + "secret": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "optional": true + }, + "downwardAPI": { + "items": [ + { + "path": "pathValue", + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "mode": 4 + } + ] + }, + "configMap": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "optional": true + }, + "serviceAccountToken": { + "audience": "audienceValue", + "expirationSeconds": 2, + "path": "pathValue" + } + } + ], + "defaultMode": 2 + }, + "portworxVolume": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "readOnly": true + }, + "scaleIO": { + "gateway": "gatewayValue", + "system": "systemValue", + "secretRef": { + "name": "nameValue" + }, + "sslEnabled": true, + "protectionDomain": "protectionDomainValue", + "storagePool": "storagePoolValue", + "storageMode": "storageModeValue", + "volumeName": "volumeNameValue", + "fsType": "fsTypeValue", + "readOnly": true + }, + "storageos": { + "volumeName": "volumeNameValue", + "volumeNamespace": "volumeNamespaceValue", + "fsType": "fsTypeValue", + "readOnly": true, + "secretRef": { + "name": "nameValue" + } + }, + "csi": { + "driver": "driverValue", + "readOnly": true, + "fsType": "fsTypeValue", + "volumeAttributes": { + "volumeAttributesKey": "volumeAttributesValue" + }, + "nodePublishSecretRef": { + "name": "nameValue" + } + }, + "ephemeral": { + "volumeClaimTemplate": { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + } + } + } + } + ], + "initContainers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true + } + ], + "containers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true + } + ], + "ephemeralContainers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true, + "targetContainerName": "targetContainerNameValue" + } + ], + "restartPolicy": "restartPolicyValue", + "terminationGracePeriodSeconds": 4, + "activeDeadlineSeconds": 5, + "dnsPolicy": "dnsPolicyValue", + "nodeSelector": { + "nodeSelectorKey": "nodeSelectorValue" + }, + "serviceAccountName": "serviceAccountNameValue", + "serviceAccount": "serviceAccountValue", + "automountServiceAccountToken": true, + "nodeName": "nodeNameValue", + "hostNetwork": true, + "hostPID": true, + "hostIPC": true, + "shareProcessNamespace": true, + "securityContext": { + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 2, + "runAsGroup": 6, + "runAsNonRoot": true, + "supplementalGroups": [ + 4 + ], + "fsGroup": 5, + "sysctls": [ + { + "name": "nameValue", + "value": "valueValue" + } + ], + "fsGroupChangePolicy": "fsGroupChangePolicyValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "imagePullSecrets": [ + { + "name": "nameValue" + } + ], + "hostname": "hostnameValue", + "subdomain": "subdomainValue", + "affinity": { + "nodeAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": { + "nodeSelectorTerms": [ + { + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ], + "matchFields": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + ] + }, + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "preference": { + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ], + "matchFields": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ] + }, + "podAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": [ + { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ], + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "podAffinityTerm": { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + } + ] + }, + "podAntiAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": [ + { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ], + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "podAffinityTerm": { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + } + ] + } + }, + "schedulerName": "schedulerNameValue", + "tolerations": [ + { + "key": "keyValue", + "operator": "operatorValue", + "value": "valueValue", + "effect": "effectValue", + "tolerationSeconds": 5 + } + ], + "hostAliases": [ + { + "ip": "ipValue", + "hostnames": [ + "hostnamesValue" + ] + } + ], + "priorityClassName": "priorityClassNameValue", + "priority": 25, + "dnsConfig": { + "nameservers": [ + "nameserversValue" + ], + "searches": [ + "searchesValue" + ], + "options": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "readinessGates": [ + { + "conditionType": "conditionTypeValue" + } + ], + "runtimeClassName": "runtimeClassNameValue", + "enableServiceLinks": true, + "preemptionPolicy": "preemptionPolicyValue", + "overhead": { + "overheadKey": "0" + }, + "topologySpreadConstraints": [ + { + "maxSkew": 1, + "topologyKey": "topologyKeyValue", + "whenUnsatisfiable": "whenUnsatisfiableValue", + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "minDomains": 5, + "nodeAffinityPolicy": "nodeAffinityPolicyValue", + "nodeTaintsPolicy": "nodeTaintsPolicyValue", + "matchLabelKeys": [ + "matchLabelKeysValue" + ] + } + ], + "setHostnameAsFQDN": true, + "os": { + "name": "nameValue" + }, + "hostUsers": true, + "schedulingGates": [ + { + "name": "nameValue" + } + ], + "resourceClaims": [ + { + "name": "nameValue", + "source": { + "resourceClaimName": "resourceClaimNameValue", + "resourceClaimTemplateName": "resourceClaimTemplateNameValue" + } + } + ] + } + }, + "volumeClaimTemplates": [ + { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + }, + "status": { + "phase": "phaseValue", + "accessModes": [ + "accessModesValue" + ], + "capacity": { + "capacityKey": "0" + }, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastProbeTime": "2003-01-01T01:01:01Z", + "lastTransitionTime": "2004-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "allocatedResources": { + "allocatedResourcesKey": "0" + } + } + } + ], + "serviceName": "serviceNameValue", + "podManagementPolicy": "podManagementPolicyValue", + "updateStrategy": { + "type": "typeValue", + "rollingUpdate": { + "partition": 1, + "maxUnavailable": "maxUnavailableValue" + } + }, + "revisionHistoryLimit": 8, + "minReadySeconds": 9, + "persistentVolumeClaimRetentionPolicy": { + "whenDeleted": "whenDeletedValue", + "whenScaled": "whenScaledValue" + }, + "ordinals": { + "start": 1 + } + }, + "status": { + "observedGeneration": 1, + "replicas": 2, + "readyReplicas": 3, + "currentReplicas": 4, + "updatedReplicas": 5, + "currentRevision": "currentRevisionValue", + "updateRevision": "updateRevisionValue", + "collisionCount": 9, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastTransitionTime": "2003-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "availableReplicas": 11 + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.pb new file mode 100644 index 00000000000..b0512dd909c Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml new file mode 100644 index 00000000000..edc4eba917e --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml @@ -0,0 +1,1250 @@ +apiVersion: apps/v1beta1 +kind: StatefulSet +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + minReadySeconds: 9 + ordinals: + start: 1 + persistentVolumeClaimRetentionPolicy: + whenDeleted: whenDeletedValue + whenScaled: whenScaledValue + podManagementPolicy: podManagementPolicyValue + replicas: 1 + revisionHistoryLimit: 8 + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + serviceName: serviceNameValue + template: + metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + activeDeadlineSeconds: 5 + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchFields: + - key: keyValue + operator: operatorValue + values: + - valuesValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchFields: + - key: keyValue + operator: operatorValue + values: + - valuesValue + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + automountServiceAccountToken: true + containers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + dnsConfig: + nameservers: + - nameserversValue + options: + - name: nameValue + value: valueValue + searches: + - searchesValue + dnsPolicy: dnsPolicyValue + enableServiceLinks: true + ephemeralContainers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + targetContainerName: targetContainerNameValue + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + hostAliases: + - hostnames: + - hostnamesValue + ip: ipValue + hostIPC: true + hostNetwork: true + hostPID: true + hostUsers: true + hostname: hostnameValue + imagePullSecrets: + - name: nameValue + initContainers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + nodeName: nodeNameValue + nodeSelector: + nodeSelectorKey: nodeSelectorValue + os: + name: nameValue + overhead: + overheadKey: "0" + preemptionPolicy: preemptionPolicyValue + priority: 25 + priorityClassName: priorityClassNameValue + readinessGates: + - conditionType: conditionTypeValue + resourceClaims: + - name: nameValue + source: + resourceClaimName: resourceClaimNameValue + resourceClaimTemplateName: resourceClaimTemplateNameValue + restartPolicy: restartPolicyValue + runtimeClassName: runtimeClassNameValue + schedulerName: schedulerNameValue + schedulingGates: + - name: nameValue + securityContext: + fsGroup: 5 + fsGroupChangePolicy: fsGroupChangePolicyValue + runAsGroup: 6 + runAsNonRoot: true + runAsUser: 2 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + supplementalGroups: + - 4 + sysctls: + - name: nameValue + value: valueValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + serviceAccount: serviceAccountValue + serviceAccountName: serviceAccountNameValue + setHostnameAsFQDN: true + shareProcessNamespace: true + subdomain: subdomainValue + terminationGracePeriodSeconds: 4 + tolerations: + - effect: effectValue + key: keyValue + operator: operatorValue + tolerationSeconds: 5 + value: valueValue + topologySpreadConstraints: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + matchLabelKeys: + - matchLabelKeysValue + maxSkew: 1 + minDomains: 5 + nodeAffinityPolicy: nodeAffinityPolicyValue + nodeTaintsPolicy: nodeTaintsPolicyValue + topologyKey: topologyKeyValue + whenUnsatisfiable: whenUnsatisfiableValue + volumes: + - awsElasticBlockStore: + fsType: fsTypeValue + partition: 3 + readOnly: true + volumeID: volumeIDValue + azureDisk: + cachingMode: cachingModeValue + diskName: diskNameValue + diskURI: diskURIValue + fsType: fsTypeValue + kind: kindValue + readOnly: true + azureFile: + readOnly: true + secretName: secretNameValue + shareName: shareNameValue + cephfs: + monitors: + - monitorsValue + path: pathValue + readOnly: true + secretFile: secretFileValue + secretRef: + name: nameValue + user: userValue + cinder: + fsType: fsTypeValue + readOnly: true + secretRef: + name: nameValue + volumeID: volumeIDValue + configMap: + defaultMode: 3 + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + csi: + driver: driverValue + fsType: fsTypeValue + nodePublishSecretRef: + name: nameValue + readOnly: true + volumeAttributes: + volumeAttributesKey: volumeAttributesValue + downwardAPI: + defaultMode: 2 + items: + - fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + mode: 4 + path: pathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + emptyDir: + medium: mediumValue + sizeLimit: "0" + ephemeral: + volumeClaimTemplate: + metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue + fc: + fsType: fsTypeValue + lun: 2 + readOnly: true + targetWWNs: + - targetWWNsValue + wwids: + - wwidsValue + flexVolume: + driver: driverValue + fsType: fsTypeValue + options: + optionsKey: optionsValue + readOnly: true + secretRef: + name: nameValue + flocker: + datasetName: datasetNameValue + datasetUUID: datasetUUIDValue + gcePersistentDisk: + fsType: fsTypeValue + partition: 3 + pdName: pdNameValue + readOnly: true + gitRepo: + directory: directoryValue + repository: repositoryValue + revision: revisionValue + glusterfs: + endpoints: endpointsValue + path: pathValue + readOnly: true + hostPath: + path: pathValue + type: typeValue + iscsi: + chapAuthDiscovery: true + chapAuthSession: true + fsType: fsTypeValue + initiatorName: initiatorNameValue + iqn: iqnValue + iscsiInterface: iscsiInterfaceValue + lun: 3 + portals: + - portalsValue + readOnly: true + secretRef: + name: nameValue + targetPortal: targetPortalValue + name: nameValue + nfs: + path: pathValue + readOnly: true + server: serverValue + persistentVolumeClaim: + claimName: claimNameValue + readOnly: true + photonPersistentDisk: + fsType: fsTypeValue + pdID: pdIDValue + portworxVolume: + fsType: fsTypeValue + readOnly: true + volumeID: volumeIDValue + projected: + defaultMode: 2 + sources: + - configMap: + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + downwardAPI: + items: + - fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + mode: 4 + path: pathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secret: + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + serviceAccountToken: + audience: audienceValue + expirationSeconds: 2 + path: pathValue + quobyte: + group: groupValue + readOnly: true + registry: registryValue + tenant: tenantValue + user: userValue + volume: volumeValue + rbd: + fsType: fsTypeValue + image: imageValue + keyring: keyringValue + monitors: + - monitorsValue + pool: poolValue + readOnly: true + secretRef: + name: nameValue + user: userValue + scaleIO: + fsType: fsTypeValue + gateway: gatewayValue + protectionDomain: protectionDomainValue + readOnly: true + secretRef: + name: nameValue + sslEnabled: true + storageMode: storageModeValue + storagePool: storagePoolValue + system: systemValue + volumeName: volumeNameValue + secret: + defaultMode: 3 + items: + - key: keyValue + mode: 3 + path: pathValue + optional: true + secretName: secretNameValue + storageos: + fsType: fsTypeValue + readOnly: true + secretRef: + name: nameValue + volumeName: volumeNameValue + volumeNamespace: volumeNamespaceValue + vsphereVolume: + fsType: fsTypeValue + storagePolicyID: storagePolicyIDValue + storagePolicyName: storagePolicyNameValue + volumePath: volumePathValue + updateStrategy: + rollingUpdate: + maxUnavailable: maxUnavailableValue + partition: 1 + type: typeValue + volumeClaimTemplates: + - metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue + status: + accessModes: + - accessModesValue + allocatedResources: + allocatedResourcesKey: "0" + capacity: + capacityKey: "0" + conditions: + - lastProbeTime: "2003-01-01T01:01:01Z" + lastTransitionTime: "2004-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + phase: phaseValue +status: + availableReplicas: 11 + collisionCount: 9 + conditions: + - lastTransitionTime: "2003-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + currentReplicas: 4 + currentRevision: currentRevisionValue + observedGeneration: 1 + readyReplicas: 3 + replicas: 2 + updateRevision: updateRevisionValue + updatedReplicas: 5 diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.json new file mode 100644 index 00000000000..731fc186042 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.json @@ -0,0 +1,1821 @@ +{ + "kind": "StatefulSet", + "apiVersion": "apps/v1beta2", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "replicas": 1, + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "template": { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "volumes": [ + { + "name": "nameValue", + "hostPath": { + "path": "pathValue", + "type": "typeValue" + }, + "emptyDir": { + "medium": "mediumValue", + "sizeLimit": "0" + }, + "gcePersistentDisk": { + "pdName": "pdNameValue", + "fsType": "fsTypeValue", + "partition": 3, + "readOnly": true + }, + "awsElasticBlockStore": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "partition": 3, + "readOnly": true + }, + "gitRepo": { + "repository": "repositoryValue", + "revision": "revisionValue", + "directory": "directoryValue" + }, + "secret": { + "secretName": "secretNameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "defaultMode": 3, + "optional": true + }, + "nfs": { + "server": "serverValue", + "path": "pathValue", + "readOnly": true + }, + "iscsi": { + "targetPortal": "targetPortalValue", + "iqn": "iqnValue", + "lun": 3, + "iscsiInterface": "iscsiInterfaceValue", + "fsType": "fsTypeValue", + "readOnly": true, + "portals": [ + "portalsValue" + ], + "chapAuthDiscovery": true, + "chapAuthSession": true, + "secretRef": { + "name": "nameValue" + }, + "initiatorName": "initiatorNameValue" + }, + "glusterfs": { + "endpoints": "endpointsValue", + "path": "pathValue", + "readOnly": true + }, + "persistentVolumeClaim": { + "claimName": "claimNameValue", + "readOnly": true + }, + "rbd": { + "monitors": [ + "monitorsValue" + ], + "image": "imageValue", + "fsType": "fsTypeValue", + "pool": "poolValue", + "user": "userValue", + "keyring": "keyringValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true + }, + "flexVolume": { + "driver": "driverValue", + "fsType": "fsTypeValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true, + "options": { + "optionsKey": "optionsValue" + } + }, + "cinder": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "readOnly": true, + "secretRef": { + "name": "nameValue" + } + }, + "cephfs": { + "monitors": [ + "monitorsValue" + ], + "path": "pathValue", + "user": "userValue", + "secretFile": "secretFileValue", + "secretRef": { + "name": "nameValue" + }, + "readOnly": true + }, + "flocker": { + "datasetName": "datasetNameValue", + "datasetUUID": "datasetUUIDValue" + }, + "downwardAPI": { + "items": [ + { + "path": "pathValue", + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "mode": 4 + } + ], + "defaultMode": 2 + }, + "fc": { + "targetWWNs": [ + "targetWWNsValue" + ], + "lun": 2, + "fsType": "fsTypeValue", + "readOnly": true, + "wwids": [ + "wwidsValue" + ] + }, + "azureFile": { + "secretName": "secretNameValue", + "shareName": "shareNameValue", + "readOnly": true + }, + "configMap": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "defaultMode": 3, + "optional": true + }, + "vsphereVolume": { + "volumePath": "volumePathValue", + "fsType": "fsTypeValue", + "storagePolicyName": "storagePolicyNameValue", + "storagePolicyID": "storagePolicyIDValue" + }, + "quobyte": { + "registry": "registryValue", + "volume": "volumeValue", + "readOnly": true, + "user": "userValue", + "group": "groupValue", + "tenant": "tenantValue" + }, + "azureDisk": { + "diskName": "diskNameValue", + "diskURI": "diskURIValue", + "cachingMode": "cachingModeValue", + "fsType": "fsTypeValue", + "readOnly": true, + "kind": "kindValue" + }, + "photonPersistentDisk": { + "pdID": "pdIDValue", + "fsType": "fsTypeValue" + }, + "projected": { + "sources": [ + { + "secret": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "optional": true + }, + "downwardAPI": { + "items": [ + { + "path": "pathValue", + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "mode": 4 + } + ] + }, + "configMap": { + "name": "nameValue", + "items": [ + { + "key": "keyValue", + "path": "pathValue", + "mode": 3 + } + ], + "optional": true + }, + "serviceAccountToken": { + "audience": "audienceValue", + "expirationSeconds": 2, + "path": "pathValue" + } + } + ], + "defaultMode": 2 + }, + "portworxVolume": { + "volumeID": "volumeIDValue", + "fsType": "fsTypeValue", + "readOnly": true + }, + "scaleIO": { + "gateway": "gatewayValue", + "system": "systemValue", + "secretRef": { + "name": "nameValue" + }, + "sslEnabled": true, + "protectionDomain": "protectionDomainValue", + "storagePool": "storagePoolValue", + "storageMode": "storageModeValue", + "volumeName": "volumeNameValue", + "fsType": "fsTypeValue", + "readOnly": true + }, + "storageos": { + "volumeName": "volumeNameValue", + "volumeNamespace": "volumeNamespaceValue", + "fsType": "fsTypeValue", + "readOnly": true, + "secretRef": { + "name": "nameValue" + } + }, + "csi": { + "driver": "driverValue", + "readOnly": true, + "fsType": "fsTypeValue", + "volumeAttributes": { + "volumeAttributesKey": "volumeAttributesValue" + }, + "nodePublishSecretRef": { + "name": "nameValue" + } + }, + "ephemeral": { + "volumeClaimTemplate": { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + } + } + } + } + ], + "initContainers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true + } + ], + "containers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true + } + ], + "ephemeralContainers": [ + { + "name": "nameValue", + "image": "imageValue", + "command": [ + "commandValue" + ], + "args": [ + "argsValue" + ], + "workingDir": "workingDirValue", + "ports": [ + { + "name": "nameValue", + "hostPort": 2, + "containerPort": 3, + "protocol": "protocolValue", + "hostIP": "hostIPValue" + } + ], + "envFrom": [ + { + "prefix": "prefixValue", + "configMapRef": { + "name": "nameValue", + "optional": true + }, + "secretRef": { + "name": "nameValue", + "optional": true + } + } + ], + "env": [ + { + "name": "nameValue", + "value": "valueValue", + "valueFrom": { + "fieldRef": { + "apiVersion": "apiVersionValue", + "fieldPath": "fieldPathValue" + }, + "resourceFieldRef": { + "containerName": "containerNameValue", + "resource": "resourceValue", + "divisor": "0" + }, + "configMapKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + }, + "secretKeyRef": { + "name": "nameValue", + "key": "keyValue", + "optional": true + } + } + } + ], + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeMounts": [ + { + "name": "nameValue", + "readOnly": true, + "mountPath": "mountPathValue", + "subPath": "subPathValue", + "mountPropagation": "mountPropagationValue", + "subPathExpr": "subPathExprValue" + } + ], + "volumeDevices": [ + { + "name": "nameValue", + "devicePath": "devicePathValue" + } + ], + "livenessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "readinessProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "startupProbe": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + }, + "grpc": { + "port": 1, + "service": "serviceValue" + }, + "initialDelaySeconds": 2, + "timeoutSeconds": 3, + "periodSeconds": 4, + "successThreshold": 5, + "failureThreshold": 6, + "terminationGracePeriodSeconds": 7 + }, + "lifecycle": { + "postStart": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + }, + "preStop": { + "exec": { + "command": [ + "commandValue" + ] + }, + "httpGet": { + "path": "pathValue", + "port": "portValue", + "host": "hostValue", + "scheme": "schemeValue", + "httpHeaders": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "tcpSocket": { + "port": "portValue", + "host": "hostValue" + } + } + }, + "terminationMessagePath": "terminationMessagePathValue", + "terminationMessagePolicy": "terminationMessagePolicyValue", + "imagePullPolicy": "imagePullPolicyValue", + "securityContext": { + "capabilities": { + "add": [ + "addValue" + ], + "drop": [ + "dropValue" + ] + }, + "privileged": true, + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 4, + "runAsGroup": 8, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "allowPrivilegeEscalation": true, + "procMount": "procMountValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "stdin": true, + "stdinOnce": true, + "tty": true, + "targetContainerName": "targetContainerNameValue" + } + ], + "restartPolicy": "restartPolicyValue", + "terminationGracePeriodSeconds": 4, + "activeDeadlineSeconds": 5, + "dnsPolicy": "dnsPolicyValue", + "nodeSelector": { + "nodeSelectorKey": "nodeSelectorValue" + }, + "serviceAccountName": "serviceAccountNameValue", + "serviceAccount": "serviceAccountValue", + "automountServiceAccountToken": true, + "nodeName": "nodeNameValue", + "hostNetwork": true, + "hostPID": true, + "hostIPC": true, + "shareProcessNamespace": true, + "securityContext": { + "seLinuxOptions": { + "user": "userValue", + "role": "roleValue", + "type": "typeValue", + "level": "levelValue" + }, + "windowsOptions": { + "gmsaCredentialSpecName": "gmsaCredentialSpecNameValue", + "gmsaCredentialSpec": "gmsaCredentialSpecValue", + "runAsUserName": "runAsUserNameValue", + "hostProcess": true + }, + "runAsUser": 2, + "runAsGroup": 6, + "runAsNonRoot": true, + "supplementalGroups": [ + 4 + ], + "fsGroup": 5, + "sysctls": [ + { + "name": "nameValue", + "value": "valueValue" + } + ], + "fsGroupChangePolicy": "fsGroupChangePolicyValue", + "seccompProfile": { + "type": "typeValue", + "localhostProfile": "localhostProfileValue" + } + }, + "imagePullSecrets": [ + { + "name": "nameValue" + } + ], + "hostname": "hostnameValue", + "subdomain": "subdomainValue", + "affinity": { + "nodeAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": { + "nodeSelectorTerms": [ + { + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ], + "matchFields": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + ] + }, + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "preference": { + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ], + "matchFields": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ] + }, + "podAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": [ + { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ], + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "podAffinityTerm": { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + } + ] + }, + "podAntiAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": [ + { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + ], + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "weight": 1, + "podAffinityTerm": { + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "namespaces": [ + "namespacesValue" + ], + "topologyKey": "topologyKeyValue", + "namespaceSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + } + } + } + ] + } + }, + "schedulerName": "schedulerNameValue", + "tolerations": [ + { + "key": "keyValue", + "operator": "operatorValue", + "value": "valueValue", + "effect": "effectValue", + "tolerationSeconds": 5 + } + ], + "hostAliases": [ + { + "ip": "ipValue", + "hostnames": [ + "hostnamesValue" + ] + } + ], + "priorityClassName": "priorityClassNameValue", + "priority": 25, + "dnsConfig": { + "nameservers": [ + "nameserversValue" + ], + "searches": [ + "searchesValue" + ], + "options": [ + { + "name": "nameValue", + "value": "valueValue" + } + ] + }, + "readinessGates": [ + { + "conditionType": "conditionTypeValue" + } + ], + "runtimeClassName": "runtimeClassNameValue", + "enableServiceLinks": true, + "preemptionPolicy": "preemptionPolicyValue", + "overhead": { + "overheadKey": "0" + }, + "topologySpreadConstraints": [ + { + "maxSkew": 1, + "topologyKey": "topologyKeyValue", + "whenUnsatisfiable": "whenUnsatisfiableValue", + "labelSelector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "minDomains": 5, + "nodeAffinityPolicy": "nodeAffinityPolicyValue", + "nodeTaintsPolicy": "nodeTaintsPolicyValue", + "matchLabelKeys": [ + "matchLabelKeysValue" + ] + } + ], + "setHostnameAsFQDN": true, + "os": { + "name": "nameValue" + }, + "hostUsers": true, + "schedulingGates": [ + { + "name": "nameValue" + } + ], + "resourceClaims": [ + { + "name": "nameValue", + "source": { + "resourceClaimName": "resourceClaimNameValue", + "resourceClaimTemplateName": "resourceClaimTemplateNameValue" + } + } + ] + } + }, + "volumeClaimTemplates": [ + { + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + }, + "status": { + "phase": "phaseValue", + "accessModes": [ + "accessModesValue" + ], + "capacity": { + "capacityKey": "0" + }, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastProbeTime": "2003-01-01T01:01:01Z", + "lastTransitionTime": "2004-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "allocatedResources": { + "allocatedResourcesKey": "0" + } + } + } + ], + "serviceName": "serviceNameValue", + "podManagementPolicy": "podManagementPolicyValue", + "updateStrategy": { + "type": "typeValue", + "rollingUpdate": { + "partition": 1, + "maxUnavailable": "maxUnavailableValue" + } + }, + "revisionHistoryLimit": 8, + "minReadySeconds": 9, + "persistentVolumeClaimRetentionPolicy": { + "whenDeleted": "whenDeletedValue", + "whenScaled": "whenScaledValue" + }, + "ordinals": { + "start": 1 + } + }, + "status": { + "observedGeneration": 1, + "replicas": 2, + "readyReplicas": 3, + "currentReplicas": 4, + "updatedReplicas": 5, + "currentRevision": "currentRevisionValue", + "updateRevision": "updateRevisionValue", + "collisionCount": 9, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastTransitionTime": "2003-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "availableReplicas": 11 + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.pb new file mode 100644 index 00000000000..9bcc1e46543 Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml new file mode 100644 index 00000000000..d2e65bdb9a8 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml @@ -0,0 +1,1250 @@ +apiVersion: apps/v1beta2 +kind: StatefulSet +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + minReadySeconds: 9 + ordinals: + start: 1 + persistentVolumeClaimRetentionPolicy: + whenDeleted: whenDeletedValue + whenScaled: whenScaledValue + podManagementPolicy: podManagementPolicyValue + replicas: 1 + revisionHistoryLimit: 8 + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + serviceName: serviceNameValue + template: + metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + activeDeadlineSeconds: 5 + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchFields: + - key: keyValue + operator: operatorValue + values: + - valuesValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchFields: + - key: keyValue + operator: operatorValue + values: + - valuesValue + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + weight: 1 + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaceSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + namespaces: + - namespacesValue + topologyKey: topologyKeyValue + automountServiceAccountToken: true + containers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + dnsConfig: + nameservers: + - nameserversValue + options: + - name: nameValue + value: valueValue + searches: + - searchesValue + dnsPolicy: dnsPolicyValue + enableServiceLinks: true + ephemeralContainers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + targetContainerName: targetContainerNameValue + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + hostAliases: + - hostnames: + - hostnamesValue + ip: ipValue + hostIPC: true + hostNetwork: true + hostPID: true + hostUsers: true + hostname: hostnameValue + imagePullSecrets: + - name: nameValue + initContainers: + - args: + - argsValue + command: + - commandValue + env: + - name: nameValue + value: valueValue + valueFrom: + configMapKeyRef: + key: keyValue + name: nameValue + optional: true + fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secretKeyRef: + key: keyValue + name: nameValue + optional: true + envFrom: + - configMapRef: + name: nameValue + optional: true + prefix: prefixValue + secretRef: + name: nameValue + optional: true + image: imageValue + imagePullPolicy: imagePullPolicyValue + lifecycle: + postStart: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + preStop: + exec: + command: + - commandValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + tcpSocket: + host: hostValue + port: portValue + livenessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + name: nameValue + ports: + - containerPort: 3 + hostIP: hostIPValue + hostPort: 2 + name: nameValue + protocol: protocolValue + readinessProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - addValue + drop: + - dropValue + privileged: true + procMount: procMountValue + readOnlyRootFilesystem: true + runAsGroup: 8 + runAsNonRoot: true + runAsUser: 4 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + startupProbe: + exec: + command: + - commandValue + failureThreshold: 6 + grpc: + port: 1 + service: serviceValue + httpGet: + host: hostValue + httpHeaders: + - name: nameValue + value: valueValue + path: pathValue + port: portValue + scheme: schemeValue + initialDelaySeconds: 2 + periodSeconds: 4 + successThreshold: 5 + tcpSocket: + host: hostValue + port: portValue + terminationGracePeriodSeconds: 7 + timeoutSeconds: 3 + stdin: true + stdinOnce: true + terminationMessagePath: terminationMessagePathValue + terminationMessagePolicy: terminationMessagePolicyValue + tty: true + volumeDevices: + - devicePath: devicePathValue + name: nameValue + volumeMounts: + - mountPath: mountPathValue + mountPropagation: mountPropagationValue + name: nameValue + readOnly: true + subPath: subPathValue + subPathExpr: subPathExprValue + workingDir: workingDirValue + nodeName: nodeNameValue + nodeSelector: + nodeSelectorKey: nodeSelectorValue + os: + name: nameValue + overhead: + overheadKey: "0" + preemptionPolicy: preemptionPolicyValue + priority: 25 + priorityClassName: priorityClassNameValue + readinessGates: + - conditionType: conditionTypeValue + resourceClaims: + - name: nameValue + source: + resourceClaimName: resourceClaimNameValue + resourceClaimTemplateName: resourceClaimTemplateNameValue + restartPolicy: restartPolicyValue + runtimeClassName: runtimeClassNameValue + schedulerName: schedulerNameValue + schedulingGates: + - name: nameValue + securityContext: + fsGroup: 5 + fsGroupChangePolicy: fsGroupChangePolicyValue + runAsGroup: 6 + runAsNonRoot: true + runAsUser: 2 + seLinuxOptions: + level: levelValue + role: roleValue + type: typeValue + user: userValue + seccompProfile: + localhostProfile: localhostProfileValue + type: typeValue + supplementalGroups: + - 4 + sysctls: + - name: nameValue + value: valueValue + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpecValue + gmsaCredentialSpecName: gmsaCredentialSpecNameValue + hostProcess: true + runAsUserName: runAsUserNameValue + serviceAccount: serviceAccountValue + serviceAccountName: serviceAccountNameValue + setHostnameAsFQDN: true + shareProcessNamespace: true + subdomain: subdomainValue + terminationGracePeriodSeconds: 4 + tolerations: + - effect: effectValue + key: keyValue + operator: operatorValue + tolerationSeconds: 5 + value: valueValue + topologySpreadConstraints: + - labelSelector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + matchLabelKeys: + - matchLabelKeysValue + maxSkew: 1 + minDomains: 5 + nodeAffinityPolicy: nodeAffinityPolicyValue + nodeTaintsPolicy: nodeTaintsPolicyValue + topologyKey: topologyKeyValue + whenUnsatisfiable: whenUnsatisfiableValue + volumes: + - awsElasticBlockStore: + fsType: fsTypeValue + partition: 3 + readOnly: true + volumeID: volumeIDValue + azureDisk: + cachingMode: cachingModeValue + diskName: diskNameValue + diskURI: diskURIValue + fsType: fsTypeValue + kind: kindValue + readOnly: true + azureFile: + readOnly: true + secretName: secretNameValue + shareName: shareNameValue + cephfs: + monitors: + - monitorsValue + path: pathValue + readOnly: true + secretFile: secretFileValue + secretRef: + name: nameValue + user: userValue + cinder: + fsType: fsTypeValue + readOnly: true + secretRef: + name: nameValue + volumeID: volumeIDValue + configMap: + defaultMode: 3 + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + csi: + driver: driverValue + fsType: fsTypeValue + nodePublishSecretRef: + name: nameValue + readOnly: true + volumeAttributes: + volumeAttributesKey: volumeAttributesValue + downwardAPI: + defaultMode: 2 + items: + - fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + mode: 4 + path: pathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + emptyDir: + medium: mediumValue + sizeLimit: "0" + ephemeral: + volumeClaimTemplate: + metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue + fc: + fsType: fsTypeValue + lun: 2 + readOnly: true + targetWWNs: + - targetWWNsValue + wwids: + - wwidsValue + flexVolume: + driver: driverValue + fsType: fsTypeValue + options: + optionsKey: optionsValue + readOnly: true + secretRef: + name: nameValue + flocker: + datasetName: datasetNameValue + datasetUUID: datasetUUIDValue + gcePersistentDisk: + fsType: fsTypeValue + partition: 3 + pdName: pdNameValue + readOnly: true + gitRepo: + directory: directoryValue + repository: repositoryValue + revision: revisionValue + glusterfs: + endpoints: endpointsValue + path: pathValue + readOnly: true + hostPath: + path: pathValue + type: typeValue + iscsi: + chapAuthDiscovery: true + chapAuthSession: true + fsType: fsTypeValue + initiatorName: initiatorNameValue + iqn: iqnValue + iscsiInterface: iscsiInterfaceValue + lun: 3 + portals: + - portalsValue + readOnly: true + secretRef: + name: nameValue + targetPortal: targetPortalValue + name: nameValue + nfs: + path: pathValue + readOnly: true + server: serverValue + persistentVolumeClaim: + claimName: claimNameValue + readOnly: true + photonPersistentDisk: + fsType: fsTypeValue + pdID: pdIDValue + portworxVolume: + fsType: fsTypeValue + readOnly: true + volumeID: volumeIDValue + projected: + defaultMode: 2 + sources: + - configMap: + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + downwardAPI: + items: + - fieldRef: + apiVersion: apiVersionValue + fieldPath: fieldPathValue + mode: 4 + path: pathValue + resourceFieldRef: + containerName: containerNameValue + divisor: "0" + resource: resourceValue + secret: + items: + - key: keyValue + mode: 3 + path: pathValue + name: nameValue + optional: true + serviceAccountToken: + audience: audienceValue + expirationSeconds: 2 + path: pathValue + quobyte: + group: groupValue + readOnly: true + registry: registryValue + tenant: tenantValue + user: userValue + volume: volumeValue + rbd: + fsType: fsTypeValue + image: imageValue + keyring: keyringValue + monitors: + - monitorsValue + pool: poolValue + readOnly: true + secretRef: + name: nameValue + user: userValue + scaleIO: + fsType: fsTypeValue + gateway: gatewayValue + protectionDomain: protectionDomainValue + readOnly: true + secretRef: + name: nameValue + sslEnabled: true + storageMode: storageModeValue + storagePool: storagePoolValue + system: systemValue + volumeName: volumeNameValue + secret: + defaultMode: 3 + items: + - key: keyValue + mode: 3 + path: pathValue + optional: true + secretName: secretNameValue + storageos: + fsType: fsTypeValue + readOnly: true + secretRef: + name: nameValue + volumeName: volumeNameValue + volumeNamespace: volumeNamespaceValue + vsphereVolume: + fsType: fsTypeValue + storagePolicyID: storagePolicyIDValue + storagePolicyName: storagePolicyNameValue + volumePath: volumePathValue + updateStrategy: + rollingUpdate: + maxUnavailable: maxUnavailableValue + partition: 1 + type: typeValue + volumeClaimTemplates: + - metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue + spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue + status: + accessModes: + - accessModesValue + allocatedResources: + allocatedResourcesKey: "0" + capacity: + capacityKey: "0" + conditions: + - lastProbeTime: "2003-01-01T01:01:01Z" + lastTransitionTime: "2004-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + phase: phaseValue +status: + availableReplicas: 11 + collisionCount: 9 + conditions: + - lastTransitionTime: "2003-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + currentReplicas: 4 + currentRevision: currentRevisionValue + observedGeneration: 1 + readyReplicas: 3 + replicas: 2 + updateRevision: updateRevisionValue + updatedReplicas: 5 diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.json b/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.json new file mode 100644 index 00000000000..cb228c99cac --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.json @@ -0,0 +1,114 @@ +{ + "kind": "PersistentVolumeClaim", + "apiVersion": "v1", + "metadata": { + "name": "nameValue", + "generateName": "generateNameValue", + "namespace": "namespaceValue", + "selfLink": "selfLinkValue", + "uid": "uidValue", + "resourceVersion": "resourceVersionValue", + "generation": 7, + "creationTimestamp": "2008-01-01T01:01:01Z", + "deletionTimestamp": "2009-01-01T01:01:01Z", + "deletionGracePeriodSeconds": 10, + "labels": { + "labelsKey": "labelsValue" + }, + "annotations": { + "annotationsKey": "annotationsValue" + }, + "ownerReferences": [ + { + "apiVersion": "apiVersionValue", + "kind": "kindValue", + "name": "nameValue", + "uid": "uidValue", + "controller": true, + "blockOwnerDeletion": true + } + ], + "finalizers": [ + "finalizersValue" + ], + "managedFields": [ + { + "manager": "managerValue", + "operation": "operationValue", + "apiVersion": "apiVersionValue", + "time": "2004-01-01T01:01:01Z", + "fieldsType": "fieldsTypeValue", + "fieldsV1": {}, + "subresource": "subresourceValue" + } + ] + }, + "spec": { + "accessModes": [ + "accessModesValue" + ], + "selector": { + "matchLabels": { + "matchLabelsKey": "matchLabelsValue" + }, + "matchExpressions": [ + { + "key": "keyValue", + "operator": "operatorValue", + "values": [ + "valuesValue" + ] + } + ] + }, + "resources": { + "limits": { + "limitsKey": "0" + }, + "requests": { + "requestsKey": "0" + }, + "claims": [ + { + "name": "nameValue" + } + ] + }, + "volumeName": "volumeNameValue", + "storageClassName": "storageClassNameValue", + "volumeMode": "volumeModeValue", + "dataSource": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue" + }, + "dataSourceRef": { + "apiGroup": "apiGroupValue", + "kind": "kindValue", + "name": "nameValue", + "namespace": "namespaceValue" + } + }, + "status": { + "phase": "phaseValue", + "accessModes": [ + "accessModesValue" + ], + "capacity": { + "capacityKey": "0" + }, + "conditions": [ + { + "type": "typeValue", + "status": "statusValue", + "lastProbeTime": "2003-01-01T01:01:01Z", + "lastTransitionTime": "2004-01-01T01:01:01Z", + "reason": "reasonValue", + "message": "messageValue" + } + ], + "allocatedResources": { + "allocatedResourcesKey": "0" + } + } +} \ No newline at end of file diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb b/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb new file mode 100644 index 00000000000..f44dd56197e Binary files /dev/null and b/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb differ diff --git a/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml b/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml new file mode 100644 index 00000000000..45f06eb6ff1 --- /dev/null +++ b/staging/src/k8s.io/api/testdata/v1.26.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml @@ -0,0 +1,79 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + annotations: + annotationsKey: annotationsValue + creationTimestamp: "2008-01-01T01:01:01Z" + deletionGracePeriodSeconds: 10 + deletionTimestamp: "2009-01-01T01:01:01Z" + finalizers: + - finalizersValue + generateName: generateNameValue + generation: 7 + labels: + labelsKey: labelsValue + managedFields: + - apiVersion: apiVersionValue + fieldsType: fieldsTypeValue + fieldsV1: {} + manager: managerValue + operation: operationValue + subresource: subresourceValue + time: "2004-01-01T01:01:01Z" + name: nameValue + namespace: namespaceValue + ownerReferences: + - apiVersion: apiVersionValue + blockOwnerDeletion: true + controller: true + kind: kindValue + name: nameValue + uid: uidValue + resourceVersion: resourceVersionValue + selfLink: selfLinkValue + uid: uidValue +spec: + accessModes: + - accessModesValue + dataSource: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + dataSourceRef: + apiGroup: apiGroupValue + kind: kindValue + name: nameValue + namespace: namespaceValue + resources: + claims: + - name: nameValue + limits: + limitsKey: "0" + requests: + requestsKey: "0" + selector: + matchExpressions: + - key: keyValue + operator: operatorValue + values: + - valuesValue + matchLabels: + matchLabelsKey: matchLabelsValue + storageClassName: storageClassNameValue + volumeMode: volumeModeValue + volumeName: volumeNameValue +status: + accessModes: + - accessModesValue + allocatedResources: + allocatedResourcesKey: "0" + capacity: + capacityKey: "0" + conditions: + - lastProbeTime: "2003-01-01T01:01:01Z" + lastTransitionTime: "2004-01-01T01:01:01Z" + message: messageValue + reason: reasonValue + status: statusValue + type: typeValue + phase: phaseValue