-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample_request.json
1 lines (1 loc) · 3.29 KB
/
sample_request.json
1
{"kind": "AdmissionReview", "apiVersion": "admission.k8s.io/v1", "request": {"uid": "bf3588a5-a8a2-48e3-966e-d8ce5d05b938", "kind": {"group": "", "version": "v1", "kind": "Pod"}, "resource": {"group": "", "version": "v1", "resource": "pods"}, "requestKind": {"group": "", "version": "v1", "kind": "Pod"}, "requestResource": {"group": "", "version": "v1", "resource": "pods"}, "name": "nginx", "namespace": "rook-ceph", "operation": "CREATE", "userInfo": {"username": "system:admin", "groups": ["system:masters", "system:authenticated"]}, "object": {"kind": "Pod", "apiVersion": "v1", "metadata": {"name": "nginx", "namespace": "rook-ceph", "creationTimestamp": "", "labels": {"app": "csi-cephfsplugin", "name": "nginx"}, "annotations": {"kubectl.kubernetes.io/last-applied-configuration": "{apiVersion:v1,kind:Pod,metadata:{annotations:{},labels:{app:csi-cephfsplugin,name:nginx},name:nginx,namespace:rook-ceph},spec:{containers:[{image:nginx,name:nginx}]}}\n", "openshift.io/scc": "anyuid"}, "managedFields": [{"manager": "kubectl-client-side-apply", "operation": "Update", "apiVersion": "v1", "time": "2022-05-02T10:01:36Z", "fieldsType": "FieldsV1", "fieldsV1": {"f:metadata": {"f:annotations": {".": {}, "f:kubectl.kubernetes.io/last-applied-configuration": {}}, "f:labels": {".": {}, "f:app": {}, "f:name": {}}}, "f:spec": {"f:containers": {"k:{name:nginx}": {".": {}, "f:image": {}, "f:imagePullPolicy": {}, "f:name": {}, "f:resources": {}, "f:terminationMessagePath": {}, "f:terminationMessagePolicy": {}}}, "f:dnsPolicy": {}, "f:enableServiceLinks": {}, "f:restartPolicy": {}, "f:schedulerName": {}, "f:securityContext": {}, "f:terminationGracePeriodSeconds": {}}}}]}, "spec": {"volumes": [{"name": "kube-api-access-c55zg", "projected": {"sources": [{"serviceAccountToken": {"expirationSeconds": 3607, "path": "token"}}, {"configMap": {"name": "kube-root-ca.crt", "items": [{"key": "ca.crt", "path": "ca.crt"}]}}, {"downwardAPI": {"items": [{"path": "namespace", "fieldRef": {"apiVersion": "v1", "fieldPath": "metadata.namespace"}}]}}, {"configMap": {"name": "openshift-service-ca.crt", "items": [{"key": "service-ca.crt", "path": "service-ca.crt"}]}}], "defaultMode": 420}}], "containers": [{"name": "nginx", "image": "nginx", "resources": {}, "volumeMounts": [{"name": "kube-api-access-c55zg", "readOnly": true, "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"}], "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "imagePullPolicy": "Always", "securityContext": {"capabilities": {"drop": ["MKNOD"]}}}], "restartPolicy": "Always", "terminationGracePeriodSeconds": 30, "dnsPolicy": "ClusterFirst", "serviceAccountName": "default", "serviceAccount": "default", "securityContext": {"seLinuxOptions": {"level": "s0:c26,c0"}}, "imagePullSecrets": [{"name": "default-dockercfg-7nn5l"}], "schedulerName": "default-scheduler", "tolerations": [{"key": "node.kubernetes.io/not-ready", "operator": "Exists", "effect": "NoExecute", "tolerationSeconds": 300}, {"key": "node.kubernetes.io/unreachable", "operator": "Exists", "effect": "NoExecute", "tolerationSeconds": 300}], "priority": 0, "enableServiceLinks": true, "preemptionPolicy": "PreemptLowerPriority"}, "status": {}}, "oldObject": "", "dryRun": false, "options": {"kind": "CreateOptions", "apiVersion": "meta.k8s.io/v1", "fieldManager": "kubectl-client-side-apply"}}}