From cb72ce975630b44ec8786d5b72b1e0ee8bb1a0e4 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 11 Mar 2021 17:06:33 +0000 Subject: [PATCH] Fix api installer to indicate PATCH may return a 201 for server side apply --- api/openapi-spec/swagger.json | 738 ++++++++++++++++++ .../apiserver/pkg/endpoints/installer.go | 2 + 2 files changed, 740 insertions(+) diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 55a7375454c..23bd3890448 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -21369,6 +21369,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" + } + }, "401": { "description": "Unauthorized" } @@ -21956,6 +21962,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" + } + }, "401": { "description": "Unauthorized" } @@ -22543,6 +22555,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Event" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Event" + } + }, "401": { "description": "Unauthorized" } @@ -23130,6 +23148,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" + } + }, "401": { "description": "Unauthorized" } @@ -23717,6 +23741,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, "401": { "description": "Unauthorized" } @@ -23913,6 +23943,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" + } + }, "401": { "description": "Unauthorized" } @@ -24500,6 +24536,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Pod" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, "401": { "description": "Unauthorized" } @@ -24915,6 +24957,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralContainers" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.EphemeralContainers" + } + }, "401": { "description": "Unauthorized" } @@ -26073,6 +26121,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Pod" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Pod" + } + }, "401": { "description": "Unauthorized" } @@ -26660,6 +26714,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" + } + }, "401": { "description": "Unauthorized" } @@ -27247,6 +27307,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, "401": { "description": "Unauthorized" } @@ -27443,6 +27509,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, "401": { "description": "Unauthorized" } @@ -27639,6 +27711,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" + } + }, "401": { "description": "Unauthorized" } @@ -28226,6 +28304,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, "401": { "description": "Unauthorized" } @@ -28422,6 +28506,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" + } + }, "401": { "description": "Unauthorized" } @@ -29009,6 +29099,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Secret" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Secret" + } + }, "401": { "description": "Unauthorized" } @@ -29596,6 +29692,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" + } + }, "401": { "description": "Unauthorized" } @@ -30160,6 +30262,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Service" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, "401": { "description": "Unauthorized" } @@ -30880,6 +30988,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Service" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Service" + } + }, "401": { "description": "Unauthorized" } @@ -31146,6 +31260,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, "401": { "description": "Unauthorized" } @@ -31418,6 +31538,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" + } + }, "401": { "description": "Unauthorized" } @@ -31989,6 +32115,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Node" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, "401": { "description": "Unauthorized" } @@ -32685,6 +32817,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Node" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.Node" + } + }, "401": { "description": "Unauthorized" } @@ -33367,6 +33505,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, "401": { "description": "Unauthorized" } @@ -33555,6 +33699,12 @@ "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" + } + }, "401": { "description": "Unauthorized" } @@ -39976,6 +40126,12 @@ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + } + }, "401": { "description": "Unauthorized" } @@ -40547,6 +40703,12 @@ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + } + }, "401": { "description": "Unauthorized" } @@ -41611,6 +41773,12 @@ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.MutatingWebhookConfiguration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.MutatingWebhookConfiguration" + } + }, "401": { "description": "Unauthorized" } @@ -42182,6 +42350,12 @@ "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration" + } + }, "401": { "description": "Unauthorized" } @@ -43279,6 +43453,12 @@ "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, "401": { "description": "Unauthorized" } @@ -43467,6 +43647,12 @@ "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + } + }, "401": { "description": "Unauthorized" } @@ -44301,6 +44487,12 @@ "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" + } + }, "401": { "description": "Unauthorized" } @@ -44489,6 +44681,12 @@ "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" + } + }, "401": { "description": "Unauthorized" } @@ -45356,6 +45554,12 @@ "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, "401": { "description": "Unauthorized" } @@ -45544,6 +45748,12 @@ "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + } + }, "401": { "description": "Unauthorized" } @@ -46378,6 +46588,12 @@ "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" + } + }, "401": { "description": "Unauthorized" } @@ -46566,6 +46782,12 @@ "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" + } + }, "401": { "description": "Unauthorized" } @@ -47782,6 +48004,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ControllerRevision" + } + }, "401": { "description": "Unauthorized" } @@ -48369,6 +48597,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, "401": { "description": "Unauthorized" } @@ -48565,6 +48799,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.DaemonSet" + } + }, "401": { "description": "Unauthorized" } @@ -49152,6 +49392,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, "401": { "description": "Unauthorized" } @@ -49348,6 +49594,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, "401": { "description": "Unauthorized" } @@ -49544,6 +49796,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.Deployment" + } + }, "401": { "description": "Unauthorized" } @@ -50131,6 +50389,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, "401": { "description": "Unauthorized" } @@ -50327,6 +50591,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, "401": { "description": "Unauthorized" } @@ -50523,6 +50793,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.ReplicaSet" + } + }, "401": { "description": "Unauthorized" } @@ -51110,6 +51386,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, "401": { "description": "Unauthorized" } @@ -51306,6 +51588,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" + } + }, "401": { "description": "Unauthorized" } @@ -51502,6 +51790,12 @@ "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSet" + } + }, "401": { "description": "Unauthorized" } @@ -55307,6 +55601,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, "401": { "description": "Unauthorized" } @@ -55503,6 +55803,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + } + }, "401": { "description": "Unauthorized" } @@ -56591,6 +56897,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" + } + }, "401": { "description": "Unauthorized" } @@ -56787,6 +57099,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" + } + }, "401": { "description": "Unauthorized" } @@ -57875,6 +58193,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + } + }, "401": { "description": "Unauthorized" } @@ -58071,6 +58395,12 @@ "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + } + }, "401": { "description": "Unauthorized" } @@ -59303,6 +59633,12 @@ "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, "401": { "description": "Unauthorized" } @@ -59499,6 +59835,12 @@ "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.CronJob" + } + }, "401": { "description": "Unauthorized" } @@ -60086,6 +60428,12 @@ "$ref": "#/definitions/io.k8s.api.batch.v1.Job" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, "401": { "description": "Unauthorized" } @@ -60282,6 +60630,12 @@ "$ref": "#/definitions/io.k8s.api.batch.v1.Job" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1.Job" + } + }, "401": { "description": "Unauthorized" } @@ -61727,6 +62081,12 @@ "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" + } + }, "401": { "description": "Unauthorized" } @@ -61923,6 +62283,12 @@ "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" + } + }, "401": { "description": "Unauthorized" } @@ -62917,6 +63283,12 @@ "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, "401": { "description": "Unauthorized" } @@ -63105,6 +63477,12 @@ "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, "401": { "description": "Unauthorized" } @@ -63293,6 +63671,12 @@ "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1.CertificateSigningRequest" + } + }, "401": { "description": "Unauthorized" } @@ -64127,6 +64511,12 @@ "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" + } + }, "401": { "description": "Unauthorized" } @@ -64315,6 +64705,12 @@ "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" + } + }, "401": { "description": "Unauthorized" } @@ -64503,6 +64899,12 @@ "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" + } + }, "401": { "description": "Unauthorized" } @@ -65497,6 +65899,12 @@ "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1.Lease" + } + }, "401": { "description": "Unauthorized" } @@ -66585,6 +66993,12 @@ "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.Lease" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.coordination.v1beta1.Lease" + } + }, "401": { "description": "Unauthorized" } @@ -67706,6 +68120,12 @@ "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1.EndpointSlice" + } + }, "401": { "description": "Unauthorized" } @@ -68794,6 +69214,12 @@ "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.discovery.v1beta1.EndpointSlice" + } + }, "401": { "description": "Unauthorized" } @@ -69915,6 +70341,12 @@ "$ref": "#/definitions/io.k8s.api.events.v1.Event" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1.Event" + } + }, "401": { "description": "Unauthorized" } @@ -71003,6 +71435,12 @@ "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.events.v1beta1.Event" + } + }, "401": { "description": "Unauthorized" } @@ -72124,6 +72562,12 @@ "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" + } + }, "401": { "description": "Unauthorized" } @@ -72320,6 +72764,12 @@ "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" + } + }, "401": { "description": "Unauthorized" } @@ -73314,6 +73764,12 @@ "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + } + }, "401": { "description": "Unauthorized" } @@ -73502,6 +73958,12 @@ "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" + } + }, "401": { "description": "Unauthorized" } @@ -74073,6 +74535,12 @@ "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + } + }, "401": { "description": "Unauthorized" } @@ -74261,6 +74729,12 @@ "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + } + }, "401": { "description": "Unauthorized" } @@ -75358,6 +75832,12 @@ "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, "401": { "description": "Unauthorized" } @@ -75546,6 +76026,12 @@ "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + } + }, "401": { "description": "Unauthorized" } @@ -76413,6 +76899,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressClass" + } + }, "401": { "description": "Unauthorized" } @@ -77111,6 +77603,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, "401": { "description": "Unauthorized" } @@ -77307,6 +77805,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.Ingress" + } + }, "401": { "description": "Unauthorized" } @@ -77894,6 +78398,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" + } + }, "401": { "description": "Unauthorized" } @@ -79553,6 +80063,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IngressClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1beta1.IngressClass" + } + }, "401": { "description": "Unauthorized" } @@ -80251,6 +80767,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1beta1.Ingress" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1beta1.Ingress" + } + }, "401": { "description": "Unauthorized" } @@ -80447,6 +80969,12 @@ "$ref": "#/definitions/io.k8s.api.networking.v1beta1.Ingress" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.networking.v1beta1.Ingress" + } + }, "401": { "description": "Unauthorized" } @@ -81671,6 +82199,12 @@ "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1.RuntimeClass" + } + }, "401": { "description": "Unauthorized" } @@ -82505,6 +83039,12 @@ "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1alpha1.RuntimeClass" + } + }, "401": { "description": "Unauthorized" } @@ -83339,6 +83879,12 @@ "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.node.v1beta1.RuntimeClass" + } + }, "401": { "description": "Unauthorized" } @@ -84222,6 +84768,12 @@ "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, "401": { "description": "Unauthorized" } @@ -84418,6 +84970,12 @@ "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1.PodDisruptionBudget" + } + }, "401": { "description": "Unauthorized" } @@ -85506,6 +86064,12 @@ "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" + } + }, "401": { "description": "Unauthorized" } @@ -85702,6 +86266,12 @@ "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" + } + }, "401": { "description": "Unauthorized" } @@ -86384,6 +86954,12 @@ "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodSecurityPolicy" + } + }, "401": { "description": "Unauthorized" } @@ -87608,6 +88184,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" + } + }, "401": { "description": "Unauthorized" } @@ -88179,6 +88761,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" + } + }, "401": { "description": "Unauthorized" } @@ -88766,6 +89354,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" + } + }, "401": { "description": "Unauthorized" } @@ -89353,6 +89947,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" + } + }, "401": { "description": "Unauthorized" } @@ -91353,6 +91953,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" + } + }, "401": { "description": "Unauthorized" } @@ -91924,6 +92530,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" + } + }, "401": { "description": "Unauthorized" } @@ -92511,6 +93123,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" + } + }, "401": { "description": "Unauthorized" } @@ -93098,6 +93716,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" + } + }, "401": { "description": "Unauthorized" } @@ -95098,6 +95722,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" + } + }, "401": { "description": "Unauthorized" } @@ -95669,6 +96299,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" + } + }, "401": { "description": "Unauthorized" } @@ -96256,6 +96892,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" + } + }, "401": { "description": "Unauthorized" } @@ -96843,6 +97485,12 @@ "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" + } + }, "401": { "description": "Unauthorized" } @@ -98876,6 +99524,12 @@ "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1.PriorityClass" + } + }, "401": { "description": "Unauthorized" } @@ -99710,6 +100364,12 @@ "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" + } + }, "401": { "description": "Unauthorized" } @@ -100544,6 +101204,12 @@ "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PriorityClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.scheduling.v1beta1.PriorityClass" + } + }, "401": { "description": "Unauthorized" } @@ -101411,6 +102077,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSIDriver" + } + }, "401": { "description": "Unauthorized" } @@ -101982,6 +102654,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.CSINode" + } + }, "401": { "description": "Unauthorized" } @@ -102553,6 +103231,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" + } + }, "401": { "description": "Unauthorized" } @@ -103124,6 +103808,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, "401": { "description": "Unauthorized" } @@ -103312,6 +104002,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1.VolumeAttachment" + } + }, "401": { "description": "Unauthorized" } @@ -104963,6 +105659,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.CSIStorageCapacity" + } + }, "401": { "description": "Unauthorized" } @@ -105534,6 +106236,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1alpha1.VolumeAttachment" + } + }, "401": { "description": "Unauthorized" } @@ -106725,6 +107433,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIDriver" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIDriver" + } + }, "401": { "description": "Unauthorized" } @@ -107296,6 +108010,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSINode" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSINode" + } + }, "401": { "description": "Unauthorized" } @@ -107994,6 +108714,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1beta1.CSIStorageCapacity" + } + }, "401": { "description": "Unauthorized" } @@ -108565,6 +109291,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" + } + }, "401": { "description": "Unauthorized" } @@ -109136,6 +109868,12 @@ "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttachment" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.storage.v1beta1.VolumeAttachment" + } + }, "401": { "description": "Unauthorized" } diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go b/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go index 23fca82598f..215ecf715ec 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go @@ -805,6 +805,8 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag Operation("patch"+namespaced+kind+strings.Title(subresource)+operationSuffix). Produces(append(storageMeta.ProducesMIMETypes(action.Verb), mediaTypes...)...). Returns(http.StatusOK, "OK", producedObject). + // Patch can return 201 when a server side apply is requested + Returns(http.StatusCreated, "Created", producedObject). Reads(metav1.Patch{}). Writes(producedObject) if err := AddObjectParams(ws, route, versionedPatchOptions); err != nil {