From c86b84ccc0b318c158c6ee963ea723efa40a5ef3 Mon Sep 17 00:00:00 2001 From: Matt Liggett Date: Fri, 6 May 2016 13:28:58 -0700 Subject: [PATCH 1/2] Add /eviction subresource. This is for #12611. --- pkg/apis/policy/register.go | 1 + pkg/apis/policy/types.generated.go | 443 +++++++++++++++--- pkg/apis/policy/types.go | 13 + pkg/apis/policy/v1alpha1/generated.pb.go | 314 ++++++++++--- pkg/apis/policy/v1alpha1/generated.proto | 11 + pkg/apis/policy/v1alpha1/register.go | 1 + pkg/apis/policy/v1alpha1/types.generated.go | 443 +++++++++++++++--- pkg/apis/policy/v1alpha1/types.go | 14 +- .../v1alpha1/zz_generated.conversion.go | 53 +++ .../policy/v1alpha1/zz_generated.deepcopy.go | 22 + pkg/apis/policy/zz_generated.deepcopy.go | 22 + pkg/master/master.go | 32 +- pkg/registry/pod/etcd/etcd.go | 153 ++++++ .../securitycontext/scdeny/admission.go | 2 +- 14 files changed, 1321 insertions(+), 203 deletions(-) diff --git a/pkg/apis/policy/register.go b/pkg/apis/policy/register.go index d9c26d2e82e..f6f223221b3 100644 --- a/pkg/apis/policy/register.go +++ b/pkg/apis/policy/register.go @@ -50,6 +50,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, &api.ListOptions{}, + &Eviction{}, ) return nil } diff --git a/pkg/apis/policy/types.generated.go b/pkg/apis/policy/types.generated.go index df46abb38b1..0bd6db8e6fa 100644 --- a/pkg/apis/policy/types.generated.go +++ b/pkg/apis/policy/types.generated.go @@ -1320,15 +1320,330 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym112 := z.EncBinary() + _ = yym112 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep113 := !z.EncBinary() + yy2arr113 := z.EncBasicHandle().StructToArray + var yyq113 [4]bool + _, _, _ = yysep113, yyq113, yy2arr113 + const yyr113 bool = false + yyq113[0] = x.Kind != "" + yyq113[1] = x.APIVersion != "" + yyq113[2] = true + yyq113[3] = x.DeleteOptions != nil + var yynn113 int + if yyr113 || yy2arr113 { + r.EncodeArrayStart(4) + } else { + yynn113 = 0 + for _, b := range yyq113 { + if b { + yynn113++ + } + } + r.EncodeMapStart(yynn113) + yynn113 = 0 + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym116 := z.EncBinary() + _ = yym116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym119 := z.EncBinary() + _ = yym119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[2] { + yy121 := &x.ObjectMeta + yy121.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy122 := &x.ObjectMeta + yy122.CodecEncodeSelf(e) + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[3] { + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq113[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym124 := z.DecBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct125 := r.ContainerType() + if yyct125 == codecSelferValueTypeMap1234 { + yyl125 := r.ReadMapStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl125, d) + } + } else if yyct125 == codecSelferValueTypeArray1234 { + yyl125 := r.ReadArrayStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl125, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys126Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys126Slc + var yyhl126 bool = l >= 0 + for yyj126 := 0; ; yyj126++ { + if yyhl126 { + if yyj126 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys126Slc = r.DecodeBytes(yys126Slc, true, true) + yys126 := string(yys126Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys126 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_api.ObjectMeta{} + } else { + yyv129 := &x.ObjectMeta + yyv129.CodecDecodeSelf(d) + } + case "deleteOptions": + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_api.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys126) + } // end switch yys126 + } // end for yyj126 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_api.ObjectMeta{} + } else { + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_api.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + for { + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj131-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv112 := range v { + for _, yyv136 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy113 := &yyv112 - yy113.CodecEncodeSelf(e) + yy137 := &yyv136 + yy137.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1338,83 +1653,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv114 := *v - yyh114, yyl114 := z.DecSliceHelperStart() - var yyc114 bool - if yyl114 == 0 { - if yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true - } else if len(yyv114) != 0 { - yyv114 = yyv114[:0] - yyc114 = true + yyv138 := *v + yyh138, yyl138 := z.DecSliceHelperStart() + var yyc138 bool + if yyl138 == 0 { + if yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true + } else if len(yyv138) != 0 { + yyv138 = yyv138[:0] + yyc138 = true } - } else if yyl114 > 0 { - var yyrr114, yyrl114 int - var yyrt114 bool - if yyl114 > cap(yyv114) { + } else if yyl138 > 0 { + var yyrr138, yyrl138 int + var yyrt138 bool + if yyl138 > cap(yyv138) { - yyrg114 := len(yyv114) > 0 - yyv2114 := yyv114 - yyrl114, yyrt114 = z.DecInferLen(yyl114, z.DecBasicHandle().MaxInitLen, 296) - if yyrt114 { - if yyrl114 <= cap(yyv114) { - yyv114 = yyv114[:yyrl114] + yyrg138 := len(yyv138) > 0 + yyv2138 := yyv138 + yyrl138, yyrt138 = z.DecInferLen(yyl138, z.DecBasicHandle().MaxInitLen, 296) + if yyrt138 { + if yyrl138 <= cap(yyv138) { + yyv138 = yyv138[:yyrl138] } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } - yyc114 = true - yyrr114 = len(yyv114) - if yyrg114 { - copy(yyv114, yyv2114) + yyc138 = true + yyrr138 = len(yyv138) + if yyrg138 { + copy(yyv138, yyv2138) } - } else if yyl114 != len(yyv114) { - yyv114 = yyv114[:yyl114] - yyc114 = true + } else if yyl138 != len(yyv138) { + yyv138 = yyv138[:yyl138] + yyc138 = true } - yyj114 := 0 - for ; yyj114 < yyrr114; yyj114++ { - yyh114.ElemContainerState(yyj114) + yyj138 := 0 + for ; yyj138 < yyrr138; yyj138++ { + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv115 := &yyv114[yyj114] - yyv115.CodecDecodeSelf(d) + yyv139 := &yyv138[yyj138] + yyv139.CodecDecodeSelf(d) } } - if yyrt114 { - for ; yyj114 < yyl114; yyj114++ { - yyv114 = append(yyv114, PodDisruptionBudget{}) - yyh114.ElemContainerState(yyj114) + if yyrt138 { + for ; yyj138 < yyl138; yyj138++ { + yyv138 = append(yyv138, PodDisruptionBudget{}) + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv116 := &yyv114[yyj114] - yyv116.CodecDecodeSelf(d) + yyv140 := &yyv138[yyj138] + yyv140.CodecDecodeSelf(d) } } } } else { - yyj114 := 0 - for ; !r.CheckBreak(); yyj114++ { + yyj138 := 0 + for ; !r.CheckBreak(); yyj138++ { - if yyj114 >= len(yyv114) { - yyv114 = append(yyv114, PodDisruptionBudget{}) // var yyz114 PodDisruptionBudget - yyc114 = true + if yyj138 >= len(yyv138) { + yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget + yyc138 = true } - yyh114.ElemContainerState(yyj114) - if yyj114 < len(yyv114) { + yyh138.ElemContainerState(yyj138) + if yyj138 < len(yyv138) { if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv117 := &yyv114[yyj114] - yyv117.CodecDecodeSelf(d) + yyv141 := &yyv138[yyj138] + yyv141.CodecDecodeSelf(d) } } else { @@ -1422,16 +1737,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj114 < len(yyv114) { - yyv114 = yyv114[:yyj114] - yyc114 = true - } else if yyj114 == 0 && yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true + if yyj138 < len(yyv138) { + yyv138 = yyv138[:yyj138] + yyc138 = true + } else if yyj138 == 0 && yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true } } - yyh114.End() - if yyc114 { - *v = yyv114 + yyh138.End() + if yyc138 { + *v = yyv138 } } diff --git a/pkg/apis/policy/types.go b/pkg/apis/policy/types.go index adc31e59f15..d7c7e86151c 100644 --- a/pkg/apis/policy/types.go +++ b/pkg/apis/policy/types.go @@ -69,3 +69,16 @@ type PodDisruptionBudgetList struct { unversioned.ListMeta `json:"metadata,omitempty"` Items []PodDisruptionBudget `json:"items"` } + +// Eviction evicts a pod from its node subject to certain policies and safety constraints. +// This is a subresource of Pod. A request to cause such an eviction is +// created by POSTing to .../pods/foo/evictions. +type Eviction struct { + unversioned.TypeMeta `json:",inline"` + + // ObjectMeta describes the pod that is being evicted. + api.ObjectMeta `json:"metadata,omitempty"` + + // DeleteOptions may be provided + DeleteOptions *api.DeleteOptions `json:"deleteOptions,omitempty"` +} diff --git a/pkg/apis/policy/v1alpha1/generated.pb.go b/pkg/apis/policy/v1alpha1/generated.pb.go index b38407716db..3f3daf97ecd 100644 --- a/pkg/apis/policy/v1alpha1/generated.pb.go +++ b/pkg/apis/policy/v1alpha1/generated.pb.go @@ -25,6 +25,7 @@ limitations under the License. k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto It has these top-level messages: + Eviction PodDisruptionBudget PodDisruptionBudgetList PodDisruptionBudgetSpec @@ -37,6 +38,7 @@ import fmt "fmt" import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/kubernetes/pkg/api/v1" import strings "strings" import reflect "reflect" @@ -52,30 +54,71 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. const _ = proto.GoGoProtoPackageIsVersion1 +func (m *Eviction) Reset() { *m = Eviction{} } +func (*Eviction) ProtoMessage() {} +func (*Eviction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} } func (*PodDisruptionBudget) ProtoMessage() {} -func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } +func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} } func (*PodDisruptionBudgetList) ProtoMessage() {} -func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } +func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} } func (*PodDisruptionBudgetSpec) ProtoMessage() {} -func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } +func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} } func (*PodDisruptionBudgetStatus) ProtoMessage() {} func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{3} + return fileDescriptorGenerated, []int{4} } func init() { + proto.RegisterType((*Eviction)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.Eviction") proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudget") proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetList") proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetSpec") proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetStatus") } +func (m *Eviction) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Eviction) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) + n1, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + if m.DeleteOptions != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.DeleteOptions.Size())) + n2, err := m.DeleteOptions.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + return i, nil +} + func (m *PodDisruptionBudget) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -94,27 +137,27 @@ func (m *PodDisruptionBudget) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n1 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n2, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n2 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n3, err := m.Status.MarshalTo(data[i:]) + n3, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n3 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n4, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n5, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 return i, nil } @@ -136,11 +179,11 @@ func (m *PodDisruptionBudgetList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n4, err := m.ListMeta.MarshalTo(data[i:]) + n6, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n4 + i += n6 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -174,20 +217,20 @@ func (m *PodDisruptionBudgetSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.MinAvailable.Size())) - n5, err := m.MinAvailable.MarshalTo(data[i:]) + n7, err := m.MinAvailable.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n5 + i += n7 if m.Selector != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n6, err := m.Selector.MarshalTo(data[i:]) + n8, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n6 + i += n8 } return i, nil } @@ -254,6 +297,18 @@ func encodeVarintGenerated(data []byte, offset int, v uint64) int { data[offset] = uint8(v) return offset + 1 } +func (m *Eviction) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.DeleteOptions != nil { + l = m.DeleteOptions.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + func (m *PodDisruptionBudget) Size() (n int) { var l int _ = l @@ -315,6 +370,17 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Eviction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Eviction{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `DeleteOptions:` + strings.Replace(fmt.Sprintf("%v", this.DeleteOptions), "DeleteOptions", "k8s_io_kubernetes_pkg_api_v1.DeleteOptions", 1) + `,`, + `}`, + }, "") + return s +} func (this *PodDisruptionBudget) String() string { if this == nil { return "nil" @@ -370,6 +436,119 @@ func valueToStringGenerated(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } +func (m *Eviction) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Eviction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Eviction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteOptions == nil { + m.DeleteOptions = &k8s_io_kubernetes_pkg_api_v1.DeleteOptions{} + } + if err := m.DeleteOptions.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *PodDisruptionBudget) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -967,43 +1146,46 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 607 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x94, 0xdf, 0x6a, 0x13, 0x4f, - 0x14, 0xc7, 0x9b, 0xfe, 0x23, 0xcc, 0x2f, 0xbf, 0xa2, 0x6b, 0xd1, 0x18, 0xa4, 0x95, 0x5c, 0x95, - 0x62, 0x67, 0x69, 0x51, 0x28, 0x5e, 0x28, 0xdd, 0xb6, 0x60, 0xc5, 0x52, 0xd9, 0xdc, 0x88, 0xa0, - 0x30, 0xbb, 0x7b, 0xdc, 0x8c, 0xd9, 0xdd, 0x59, 0x66, 0x66, 0xa3, 0xbd, 0xf3, 0x11, 0x7c, 0x05, - 0x1f, 0x46, 0xc8, 0x65, 0x2f, 0xbd, 0x0a, 0xda, 0xbe, 0x88, 0xb3, 0xb3, 0x93, 0x34, 0x9b, 0x64, - 0xa5, 0xd0, 0x8b, 0x03, 0x39, 0x3b, 0xe7, 0xf3, 0x3d, 0x7f, 0x09, 0x7a, 0xde, 0xdb, 0x17, 0x98, - 0x32, 0xbb, 0x97, 0x79, 0xc0, 0x13, 0x90, 0x20, 0xec, 0xb4, 0x17, 0xda, 0x24, 0xa5, 0xea, 0x07, - 0x8b, 0xa8, 0x7f, 0x6e, 0xf7, 0x77, 0x49, 0x94, 0x76, 0xc9, 0xae, 0x1d, 0x42, 0x02, 0x9c, 0x48, - 0x08, 0x70, 0xca, 0x99, 0x64, 0xd6, 0x76, 0xc1, 0xe2, 0x6b, 0x16, 0x2b, 0x16, 0xe7, 0x2c, 0x2e, - 0x58, 0x3c, 0x62, 0x5b, 0x3b, 0x21, 0x95, 0xdd, 0xcc, 0xc3, 0x3e, 0x8b, 0xed, 0x90, 0x85, 0xcc, - 0xd6, 0x12, 0x5e, 0xf6, 0x49, 0x7b, 0xda, 0xd1, 0xbf, 0x0a, 0xe9, 0xd6, 0x5e, 0x65, 0x59, 0x36, - 0x07, 0xc1, 0x32, 0xee, 0xc3, 0x74, 0x39, 0xad, 0x67, 0xd5, 0x4c, 0x96, 0xf4, 0x81, 0x0b, 0xca, - 0x12, 0x08, 0x66, 0xb0, 0x27, 0xd5, 0x58, 0x7f, 0xa6, 0xe7, 0xd6, 0xce, 0xfc, 0x68, 0x9e, 0x25, - 0x92, 0xc6, 0xb3, 0x35, 0xed, 0xce, 0x0f, 0xcf, 0x24, 0x8d, 0x6c, 0x9a, 0x48, 0x21, 0xf9, 0x34, - 0xd2, 0xfe, 0xb9, 0x88, 0xee, 0xbd, 0x65, 0xc1, 0x11, 0x15, 0x3c, 0x4b, 0xa5, 0xaa, 0xd9, 0xc9, - 0x82, 0x10, 0xa4, 0xf5, 0x0e, 0xd5, 0x63, 0x90, 0x24, 0x20, 0x92, 0x34, 0x6b, 0x8f, 0x6b, 0x5b, - 0xff, 0xed, 0x6d, 0xe1, 0xca, 0x05, 0xa8, 0xc1, 0xe3, 0x33, 0xef, 0x33, 0xf8, 0xf2, 0x54, 0x31, - 0x8e, 0x35, 0x18, 0x6e, 0x2e, 0x5c, 0x0e, 0x37, 0xd1, 0xf5, 0x37, 0x77, 0xac, 0x66, 0x01, 0x5a, - 0x16, 0x29, 0xf8, 0xcd, 0x45, 0xad, 0x7a, 0x88, 0x6f, 0xbe, 0x56, 0x3c, 0xa7, 0xd0, 0x8e, 0x92, - 0x72, 0x1a, 0x26, 0xe1, 0x72, 0xee, 0xb9, 0x5a, 0xde, 0x8a, 0xd1, 0xaa, 0x90, 0x44, 0x66, 0xa2, - 0xb9, 0xa4, 0x13, 0x1d, 0xdf, 0x36, 0x91, 0x16, 0x73, 0xd6, 0x4c, 0xaa, 0xd5, 0xc2, 0x77, 0x4d, - 0x92, 0xf6, 0xb0, 0x86, 0x1e, 0xcc, 0xa1, 0xde, 0x50, 0x21, 0xad, 0x0f, 0x33, 0xb3, 0xb4, 0xff, - 0x31, 0xcb, 0x89, 0xeb, 0xc1, 0x39, 0xae, 0x47, 0x7a, 0xc7, 0xa4, 0xad, 0x8f, 0xbe, 0x4c, 0x0c, - 0x34, 0x40, 0x2b, 0x54, 0x42, 0x2c, 0xd4, 0x44, 0x97, 0x94, 0xf6, 0xcb, 0x5b, 0x36, 0xea, 0xfc, - 0x6f, 0x72, 0xad, 0x9c, 0xe4, 0xaa, 0x6e, 0x21, 0xde, 0xbe, 0x9a, 0xdf, 0x60, 0x3e, 0x71, 0xab, - 0x8b, 0x1a, 0x31, 0x4d, 0x0e, 0xfa, 0x84, 0x46, 0xc4, 0x8b, 0xc0, 0x34, 0x89, 0x2b, 0x0a, 0xc9, - 0xcf, 0x11, 0x17, 0xe7, 0x88, 0x4f, 0x12, 0x79, 0xc6, 0x3b, 0x92, 0xd3, 0x24, 0x74, 0xd6, 0x4d, - 0xde, 0xc6, 0xe9, 0x84, 0x96, 0x5b, 0x52, 0xb6, 0x3e, 0xa2, 0xba, 0x80, 0x48, 0x1d, 0x15, 0xe3, - 0xe6, 0x80, 0x9e, 0xde, 0x74, 0x94, 0xc4, 0x83, 0xa8, 0x63, 0x58, 0xa7, 0x91, 0xcf, 0x72, 0xe4, - 0xb9, 0x63, 0xcd, 0xf6, 0x8f, 0x45, 0xf4, 0xb0, 0x72, 0xf9, 0xd6, 0x6b, 0x74, 0x37, 0x18, 0xbf, - 0x1c, 0x44, 0x11, 0xfb, 0x02, 0x81, 0x6e, 0xb6, 0xee, 0x3c, 0x32, 0xc5, 0xaf, 0x97, 0x68, 0x13, - 0xe3, 0xce, 0x62, 0xd6, 0x0b, 0xb4, 0xe6, 0x67, 0x9c, 0x43, 0x22, 0x5f, 0x01, 0x89, 0x64, 0xf7, - 0x5c, 0xf7, 0xb3, 0xe2, 0xdc, 0x37, 0x42, 0x6b, 0x87, 0xa5, 0x57, 0x77, 0x2a, 0x3a, 0xe7, 0x03, - 0x10, 0x94, 0x43, 0x30, 0xe2, 0x97, 0xca, 0xfc, 0x51, 0xe9, 0xd5, 0x9d, 0x8a, 0xb6, 0xf6, 0x51, - 0x03, 0xbe, 0xaa, 0xe5, 0xa9, 0xbf, 0x02, 0x55, 0xb2, 0x68, 0x2e, 0x6b, 0x7a, 0xbc, 0x83, 0xe3, - 0x89, 0x37, 0xb7, 0x14, 0xe9, 0x6c, 0x0f, 0xfe, 0x6c, 0x2c, 0x5c, 0x28, 0xfb, 0xa5, 0xec, 0xdb, - 0xe5, 0x46, 0x6d, 0xa0, 0xec, 0x42, 0xd9, 0x6f, 0x65, 0xdf, 0xaf, 0x36, 0x16, 0xde, 0xd7, 0x47, - 0xf7, 0xf5, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xae, 0xf9, 0xfa, 0xf1, 0x05, 0x00, 0x00, + // 648 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6a, 0xd4, 0x4e, + 0x14, 0xc7, 0xbb, 0xfd, 0xc7, 0x32, 0xbf, 0x6d, 0xf9, 0x35, 0x16, 0x5d, 0x17, 0x69, 0x65, 0xaf, + 0x4a, 0xb5, 0x13, 0x5a, 0x14, 0x8a, 0x17, 0x4a, 0xd3, 0x16, 0xac, 0x58, 0x2a, 0xe9, 0x8d, 0x08, + 0x0a, 0x93, 0xe4, 0x98, 0x1d, 0x9b, 0x64, 0xc2, 0xcc, 0x64, 0xb5, 0x77, 0x3e, 0x82, 0xaf, 0xe0, + 0xc3, 0x08, 0xc5, 0xab, 0x5e, 0x7a, 0xb5, 0x68, 0xfb, 0x22, 0x4e, 0x26, 0xb3, 0xdb, 0xcd, 0xee, + 0xa6, 0x14, 0x8a, 0x17, 0x03, 0x39, 0x33, 0xe7, 0xf3, 0x3d, 0x7f, 0xe6, 0x4c, 0xd0, 0xb3, 0x93, + 0x6d, 0x81, 0x29, 0xb3, 0x4f, 0x32, 0x0f, 0x78, 0x02, 0x12, 0x84, 0x9d, 0x9e, 0x84, 0x36, 0x49, + 0xa9, 0xfa, 0x60, 0x11, 0xf5, 0x4f, 0xed, 0xee, 0x26, 0x89, 0xd2, 0x0e, 0xd9, 0xb4, 0x43, 0x48, + 0x80, 0x13, 0x09, 0x01, 0x4e, 0x39, 0x93, 0xcc, 0x5a, 0x2f, 0x58, 0x7c, 0xc5, 0x62, 0xc5, 0xe2, + 0x9c, 0xc5, 0x05, 0x8b, 0xfb, 0x6c, 0x6b, 0x23, 0xa4, 0xb2, 0x93, 0x79, 0xd8, 0x67, 0xb1, 0x1d, + 0xb2, 0x90, 0xd9, 0x5a, 0xc2, 0xcb, 0x3e, 0x6a, 0x4b, 0x1b, 0xfa, 0xab, 0x90, 0x6e, 0x6d, 0x55, + 0xa6, 0x65, 0x73, 0x10, 0x2c, 0xe3, 0x3e, 0x8c, 0xa6, 0xd3, 0x7a, 0x5a, 0xcd, 0x64, 0x49, 0x17, + 0xb8, 0xa0, 0x2c, 0x81, 0x60, 0x0c, 0x7b, 0x5c, 0x8d, 0x75, 0xc7, 0x6a, 0x6e, 0x6d, 0x4c, 0xf6, + 0xe6, 0x59, 0x22, 0x69, 0x3c, 0x9e, 0xd3, 0xe6, 0x64, 0xf7, 0x4c, 0xd2, 0xc8, 0xa6, 0x89, 0x14, + 0x92, 0x8f, 0x22, 0xed, 0x9f, 0x35, 0x54, 0xdf, 0xef, 0x52, 0x5f, 0xaa, 0x74, 0xad, 0xb7, 0xa8, + 0x1e, 0x83, 0x24, 0x01, 0x91, 0xa4, 0x59, 0x7b, 0x58, 0x5b, 0xfb, 0x6f, 0x6b, 0x0d, 0x57, 0x76, + 0x5d, 0x75, 0x1b, 0x1f, 0x79, 0x9f, 0xc0, 0x97, 0x87, 0x8a, 0x71, 0xac, 0xb3, 0xde, 0xea, 0xd4, + 0x45, 0x6f, 0x15, 0x5d, 0xed, 0xb9, 0x03, 0x35, 0x2b, 0x40, 0x0b, 0x01, 0x44, 0x0a, 0x3f, 0x4a, + 0xf3, 0x48, 0xa2, 0x39, 0xad, 0xe5, 0x1f, 0x5d, 0x2f, 0xbf, 0x37, 0x8c, 0x38, 0x4b, 0x4a, 0x7d, + 0xa1, 0xb4, 0xe5, 0x96, 0x45, 0xdb, 0x3f, 0xa6, 0xd1, 0x9d, 0x37, 0x2c, 0xd8, 0xa3, 0x82, 0x67, + 0x7a, 0xcb, 0xc9, 0x82, 0x10, 0xe4, 0x3f, 0xac, 0x0b, 0xd0, 0xac, 0x48, 0xc1, 0x37, 0xe5, 0xec, + 0xe2, 0x9b, 0xcf, 0x28, 0x9e, 0x90, 0xe8, 0xb1, 0x92, 0x72, 0x1a, 0x26, 0xe0, 0x6c, 0x6e, 0xb9, + 0x5a, 0xde, 0x8a, 0xd1, 0xbc, 0x90, 0x44, 0x66, 0xa2, 0x39, 0xa3, 0x03, 0xed, 0xdf, 0x36, 0x90, + 0x16, 0x73, 0x16, 0x4d, 0xa8, 0xf9, 0xc2, 0x76, 0x4d, 0x90, 0x76, 0xaf, 0x86, 0xee, 0x4d, 0xa0, + 0x5e, 0x53, 0x21, 0xad, 0xf7, 0x63, 0xbd, 0xb4, 0xaf, 0xe9, 0xe5, 0xd0, 0x53, 0xc0, 0x39, 0xae, + 0x5b, 0xfa, 0xbf, 0x09, 0x5b, 0xef, 0xef, 0x94, 0x06, 0x65, 0x8e, 0x4a, 0x88, 0xf3, 0x01, 0x99, + 0x51, 0xda, 0x2f, 0x6e, 0x59, 0xa8, 0xb3, 0x60, 0x62, 0xcd, 0x1d, 0xe4, 0xaa, 0x6e, 0x21, 0xde, + 0xbe, 0x9c, 0x5c, 0x60, 0xde, 0x71, 0xab, 0x83, 0x1a, 0x31, 0x4d, 0x76, 0xba, 0x84, 0x46, 0xc4, + 0x8b, 0xc0, 0x14, 0x89, 0x2b, 0x12, 0xc9, 0xdf, 0x16, 0x2e, 0xde, 0x16, 0x3e, 0x48, 0xe4, 0x11, + 0x3f, 0x96, 0x9c, 0x26, 0xa1, 0xb3, 0x6c, 0xe2, 0x36, 0x0e, 0x87, 0xb4, 0xdc, 0x92, 0xb2, 0xf5, + 0x01, 0xd5, 0x85, 0x9a, 0x5f, 0x5f, 0x32, 0x6e, 0x06, 0xe8, 0xc9, 0x4d, 0x5b, 0x49, 0x3c, 0x88, + 0x8e, 0x0d, 0xeb, 0x34, 0xf2, 0x5e, 0xf6, 0x2d, 0x77, 0xa0, 0xd9, 0xfe, 0x3e, 0x8d, 0xee, 0x57, + 0x5e, 0xbe, 0xf5, 0x0a, 0x2d, 0x05, 0x83, 0x93, 0x9d, 0x28, 0x62, 0x9f, 0x21, 0xd0, 0xc5, 0xd6, + 0x9d, 0x07, 0x26, 0xf9, 0xe5, 0x12, 0x6d, 0x7c, 0xdc, 0x71, 0xcc, 0x7a, 0x8e, 0x16, 0xfd, 0x8c, + 0x73, 0x48, 0xe4, 0x4b, 0x20, 0x91, 0xec, 0x9c, 0xea, 0x7a, 0xe6, 0x9c, 0xbb, 0x46, 0x68, 0x71, + 0xb7, 0x74, 0xea, 0x8e, 0x78, 0xe7, 0x7c, 0x00, 0x82, 0x72, 0x08, 0xfa, 0xfc, 0x4c, 0x99, 0xdf, + 0x2b, 0x9d, 0xba, 0x23, 0xde, 0xd6, 0x36, 0x6a, 0xc0, 0x17, 0x75, 0x79, 0xea, 0xbf, 0xa6, 0x52, + 0x16, 0xcd, 0x59, 0x4d, 0x0f, 0xee, 0x60, 0x7f, 0xe8, 0xcc, 0x2d, 0x79, 0x3a, 0xeb, 0x67, 0x7f, + 0x56, 0xa6, 0xce, 0xd5, 0xfa, 0xa5, 0xd6, 0xd7, 0x8b, 0x95, 0xda, 0x99, 0x5a, 0xe7, 0x6a, 0xfd, + 0x56, 0xeb, 0xdb, 0xe5, 0xca, 0xd4, 0xbb, 0x7a, 0x7f, 0xbe, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x7d, 0xdd, 0x26, 0x2d, 0xbe, 0x06, 0x00, 0x00, } diff --git a/pkg/apis/policy/v1alpha1/generated.proto b/pkg/apis/policy/v1alpha1/generated.proto index d04a0af8cd2..2bc3b524b8b 100644 --- a/pkg/apis/policy/v1alpha1/generated.proto +++ b/pkg/apis/policy/v1alpha1/generated.proto @@ -30,6 +30,17 @@ import "k8s.io/kubernetes/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "v1alpha1"; +// Eviction evicts a pod from its node subject to certain policies and safety constraints. +// This is a subresource of Pod. A request to cause such an eviction is +// created by POSTing to .../pods/foo/evictions. +message Eviction { + // ObjectMeta describes the pod that is being evicted. + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // DeleteOptions may be provided + optional k8s.io.kubernetes.pkg.api.v1.DeleteOptions deleteOptions = 2; +} + // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods message PodDisruptionBudget { optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; diff --git a/pkg/apis/policy/v1alpha1/register.go b/pkg/apis/policy/v1alpha1/register.go index 9cba49d20bc..8fcb0be023f 100644 --- a/pkg/apis/policy/v1alpha1/register.go +++ b/pkg/apis/policy/v1alpha1/register.go @@ -39,6 +39,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, + &Eviction{}, &v1.ListOptions{}, &v1.DeleteOptions{}, ) diff --git a/pkg/apis/policy/v1alpha1/types.generated.go b/pkg/apis/policy/v1alpha1/types.generated.go index f18ee2af817..f238733f8e6 100644 --- a/pkg/apis/policy/v1alpha1/types.generated.go +++ b/pkg/apis/policy/v1alpha1/types.generated.go @@ -1320,15 +1320,330 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym112 := z.EncBinary() + _ = yym112 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep113 := !z.EncBinary() + yy2arr113 := z.EncBasicHandle().StructToArray + var yyq113 [4]bool + _, _, _ = yysep113, yyq113, yy2arr113 + const yyr113 bool = false + yyq113[0] = x.Kind != "" + yyq113[1] = x.APIVersion != "" + yyq113[2] = true + yyq113[3] = x.DeleteOptions != nil + var yynn113 int + if yyr113 || yy2arr113 { + r.EncodeArrayStart(4) + } else { + yynn113 = 0 + for _, b := range yyq113 { + if b { + yynn113++ + } + } + r.EncodeMapStart(yynn113) + yynn113 = 0 + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym116 := z.EncBinary() + _ = yym116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym119 := z.EncBinary() + _ = yym119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[2] { + yy121 := &x.ObjectMeta + yy121.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy122 := &x.ObjectMeta + yy122.CodecEncodeSelf(e) + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[3] { + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq113[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym124 := z.DecBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct125 := r.ContainerType() + if yyct125 == codecSelferValueTypeMap1234 { + yyl125 := r.ReadMapStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl125, d) + } + } else if yyct125 == codecSelferValueTypeArray1234 { + yyl125 := r.ReadArrayStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl125, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys126Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys126Slc + var yyhl126 bool = l >= 0 + for yyj126 := 0; ; yyj126++ { + if yyhl126 { + if yyj126 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys126Slc = r.DecodeBytes(yys126Slc, true, true) + yys126 := string(yys126Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys126 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_v1.ObjectMeta{} + } else { + yyv129 := &x.ObjectMeta + yyv129.CodecDecodeSelf(d) + } + case "deleteOptions": + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_v1.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys126) + } // end switch yys126 + } // end for yyj126 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_v1.ObjectMeta{} + } else { + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_v1.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + for { + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj131-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv112 := range v { + for _, yyv136 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy113 := &yyv112 - yy113.CodecEncodeSelf(e) + yy137 := &yyv136 + yy137.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1338,83 +1653,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv114 := *v - yyh114, yyl114 := z.DecSliceHelperStart() - var yyc114 bool - if yyl114 == 0 { - if yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true - } else if len(yyv114) != 0 { - yyv114 = yyv114[:0] - yyc114 = true + yyv138 := *v + yyh138, yyl138 := z.DecSliceHelperStart() + var yyc138 bool + if yyl138 == 0 { + if yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true + } else if len(yyv138) != 0 { + yyv138 = yyv138[:0] + yyc138 = true } - } else if yyl114 > 0 { - var yyrr114, yyrl114 int - var yyrt114 bool - if yyl114 > cap(yyv114) { + } else if yyl138 > 0 { + var yyrr138, yyrl138 int + var yyrt138 bool + if yyl138 > cap(yyv138) { - yyrg114 := len(yyv114) > 0 - yyv2114 := yyv114 - yyrl114, yyrt114 = z.DecInferLen(yyl114, z.DecBasicHandle().MaxInitLen, 296) - if yyrt114 { - if yyrl114 <= cap(yyv114) { - yyv114 = yyv114[:yyrl114] + yyrg138 := len(yyv138) > 0 + yyv2138 := yyv138 + yyrl138, yyrt138 = z.DecInferLen(yyl138, z.DecBasicHandle().MaxInitLen, 296) + if yyrt138 { + if yyrl138 <= cap(yyv138) { + yyv138 = yyv138[:yyrl138] } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } - yyc114 = true - yyrr114 = len(yyv114) - if yyrg114 { - copy(yyv114, yyv2114) + yyc138 = true + yyrr138 = len(yyv138) + if yyrg138 { + copy(yyv138, yyv2138) } - } else if yyl114 != len(yyv114) { - yyv114 = yyv114[:yyl114] - yyc114 = true + } else if yyl138 != len(yyv138) { + yyv138 = yyv138[:yyl138] + yyc138 = true } - yyj114 := 0 - for ; yyj114 < yyrr114; yyj114++ { - yyh114.ElemContainerState(yyj114) + yyj138 := 0 + for ; yyj138 < yyrr138; yyj138++ { + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv115 := &yyv114[yyj114] - yyv115.CodecDecodeSelf(d) + yyv139 := &yyv138[yyj138] + yyv139.CodecDecodeSelf(d) } } - if yyrt114 { - for ; yyj114 < yyl114; yyj114++ { - yyv114 = append(yyv114, PodDisruptionBudget{}) - yyh114.ElemContainerState(yyj114) + if yyrt138 { + for ; yyj138 < yyl138; yyj138++ { + yyv138 = append(yyv138, PodDisruptionBudget{}) + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv116 := &yyv114[yyj114] - yyv116.CodecDecodeSelf(d) + yyv140 := &yyv138[yyj138] + yyv140.CodecDecodeSelf(d) } } } } else { - yyj114 := 0 - for ; !r.CheckBreak(); yyj114++ { + yyj138 := 0 + for ; !r.CheckBreak(); yyj138++ { - if yyj114 >= len(yyv114) { - yyv114 = append(yyv114, PodDisruptionBudget{}) // var yyz114 PodDisruptionBudget - yyc114 = true + if yyj138 >= len(yyv138) { + yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget + yyc138 = true } - yyh114.ElemContainerState(yyj114) - if yyj114 < len(yyv114) { + yyh138.ElemContainerState(yyj138) + if yyj138 < len(yyv138) { if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv117 := &yyv114[yyj114] - yyv117.CodecDecodeSelf(d) + yyv141 := &yyv138[yyj138] + yyv141.CodecDecodeSelf(d) } } else { @@ -1422,16 +1737,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj114 < len(yyv114) { - yyv114 = yyv114[:yyj114] - yyc114 = true - } else if yyj114 == 0 && yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true + if yyj138 < len(yyv138) { + yyv138 = yyv138[:yyj138] + yyc138 = true + } else if yyj138 == 0 && yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true } } - yyh114.End() - if yyc114 { - *v = yyv114 + yyh138.End() + if yyc138 { + *v = yyv138 } } diff --git a/pkg/apis/policy/v1alpha1/types.go b/pkg/apis/policy/v1alpha1/types.go index efe136fda2a..0b9e1b38713 100644 --- a/pkg/apis/policy/v1alpha1/types.go +++ b/pkg/apis/policy/v1alpha1/types.go @@ -18,7 +18,6 @@ package v1alpha1 import ( "k8s.io/kubernetes/pkg/api/unversioned" - "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/util/intstr" ) @@ -70,3 +69,16 @@ type PodDisruptionBudgetList struct { unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` } + +// Eviction evicts a pod from its node subject to certain policies and safety constraints. +// This is a subresource of Pod. A request to cause such an eviction is +// created by POSTing to .../pods/foo/evictions. +type Eviction struct { + unversioned.TypeMeta `json:",inline"` + + // ObjectMeta describes the pod that is being evicted. + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // DeleteOptions may be provided + DeleteOptions *v1.DeleteOptions `json:"deleteOptions,omitempty" protobuf:"bytes,2,opt,name=deleteOptions"` +} diff --git a/pkg/apis/policy/v1alpha1/zz_generated.conversion.go b/pkg/apis/policy/v1alpha1/zz_generated.conversion.go index 589d25b06dd..9a59f8ea29a 100644 --- a/pkg/apis/policy/v1alpha1/zz_generated.conversion.go +++ b/pkg/apis/policy/v1alpha1/zz_generated.conversion.go @@ -22,6 +22,7 @@ package v1alpha1 import ( api "k8s.io/kubernetes/pkg/api" + v1 "k8s.io/kubernetes/pkg/api/v1" policy "k8s.io/kubernetes/pkg/apis/policy" conversion "k8s.io/kubernetes/pkg/conversion" runtime "k8s.io/kubernetes/pkg/runtime" @@ -35,6 +36,8 @@ func init() { // Public to allow building arbitrary schemes. func RegisterConversions(scheme *runtime.Scheme) error { return scheme.AddGeneratedConversionFuncs( + Convert_v1alpha1_Eviction_To_policy_Eviction, + Convert_policy_Eviction_To_v1alpha1_Eviction, Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget, Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget, Convert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList, @@ -46,6 +49,56 @@ func RegisterConversions(scheme *runtime.Scheme) error { ) } +func autoConvert_v1alpha1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(api.DeleteOptions) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(*in, *out, 0); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil +} + +func Convert_v1alpha1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { + return autoConvert_v1alpha1_Eviction_To_policy_Eviction(in, out, s) +} + +func autoConvert_policy_Eviction_To_v1alpha1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(v1.DeleteOptions) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(*in, *out, 0); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil +} + +func Convert_policy_Eviction_To_v1alpha1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { + return autoConvert_policy_Eviction_To_v1alpha1_Eviction(in, out, s) +} + func autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error { if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { return err diff --git a/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go index f36bc703b8a..c5a4ee22a54 100644 --- a/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go @@ -36,6 +36,7 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Eviction, InType: reflect.TypeOf(&Eviction{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, @@ -43,6 +44,27 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { ) } +func DeepCopy_v1alpha1_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Eviction) + out := out.(*Eviction) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(v1.DeleteOptions) + if err := v1.DeepCopy_v1_DeleteOptions(*in, *out, c); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil + } +} + func DeepCopy_v1alpha1_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudget) diff --git a/pkg/apis/policy/zz_generated.deepcopy.go b/pkg/apis/policy/zz_generated.deepcopy.go index b03180edae5..ed2db3be69c 100644 --- a/pkg/apis/policy/zz_generated.deepcopy.go +++ b/pkg/apis/policy/zz_generated.deepcopy.go @@ -36,6 +36,7 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_Eviction, InType: reflect.TypeOf(&Eviction{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, @@ -43,6 +44,27 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { ) } +func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Eviction) + out := out.(*Eviction) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(api.DeleteOptions) + if err := api.DeepCopy_api_DeleteOptions(*in, *out, c); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil + } +} + func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudget) diff --git a/pkg/master/master.go b/pkg/master/master.go index 59072cbf803..8e3d9d82551 100644 --- a/pkg/master/master.go +++ b/pkg/master/master.go @@ -242,15 +242,17 @@ func (m *Master) InstallAPIs(c *Config) { VersionedResourcesStorageMap: map[string]map[string]rest.Storage{ "v1": m.v1ResourcesStorage, }, - IsLegacyGroup: true, - Scheme: api.Scheme, - ParameterCodec: api.ParameterCodec, - NegotiatedSerializer: api.Codecs, + IsLegacyGroup: true, + Scheme: api.Scheme, + ParameterCodec: api.ParameterCodec, + NegotiatedSerializer: api.Codecs, + SubresourceGroupVersionKind: map[string]unversioned.GroupVersionKind{}, } if autoscalingGroupVersion := (unversioned.GroupVersion{Group: "autoscaling", Version: "v1"}); registered.IsEnabledVersion(autoscalingGroupVersion) { - apiGroupInfo.SubresourceGroupVersionKind = map[string]unversioned.GroupVersionKind{ - "replicationcontrollers/scale": autoscalingGroupVersion.WithKind("Scale"), - } + apiGroupInfo.SubresourceGroupVersionKind["replicationcontrollers/scale"] = autoscalingGroupVersion.WithKind("Scale") + } + if policyGroupVersion := (unversioned.GroupVersion{Group: "policy", Version: "v1alpha1"}); registered.IsEnabledVersion(policyGroupVersion) { + apiGroupInfo.SubresourceGroupVersionKind["pods/eviction"] = policyGroupVersion.WithKind("Eviction") } apiGroupsInfo = append(apiGroupsInfo, apiGroupInfo) } @@ -300,6 +302,19 @@ func (m *Master) InstallAPIs(c *Config) { continue } + // This is here so that, if the policy group is present, the eviction + // subresource handler wil be able to find poddisruptionbudgets + // TODO(lavalamp) find a better way for groups to discover and interact + // with each other + if group == "policy" { + storage := apiGroupsInfo[0].VersionedResourcesStorageMap["v1"]["pods/eviction"] + evictionStorage := storage.(*podetcd.EvictionREST) + + storage = apiGroupInfo.VersionedResourcesStorageMap["v1alpha1"]["poddisruptionbudgets"] + evictionStorage.PodDisruptionBudgetLister = storage.(rest.Lister) + evictionStorage.PodDisruptionBudgetUpdater = storage.(rest.Updater) + } + apiGroupsInfo = append(apiGroupsInfo, apiGroupInfo) } @@ -426,6 +441,9 @@ func (m *Master) initV1ResourcesStorage(c *Config) { if registered.IsEnabledVersion(unversioned.GroupVersion{Group: "autoscaling", Version: "v1"}) { m.v1ResourcesStorage["replicationControllers/scale"] = controllerStorage.Scale } + if registered.IsEnabledVersion(unversioned.GroupVersion{Group: "policy", Version: "v1alpha1"}) { + m.v1ResourcesStorage["pods/eviction"] = podStorage.Eviction + } } // NewBootstrapController returns a controller for watching the core capabilities of the master. If diff --git a/pkg/registry/pod/etcd/etcd.go b/pkg/registry/pod/etcd/etcd.go index bdcab477a3f..ca5368d676a 100644 --- a/pkg/registry/pod/etcd/etcd.go +++ b/pkg/registry/pod/etcd/etcd.go @@ -27,7 +27,9 @@ import ( "k8s.io/kubernetes/pkg/api/rest" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/api/validation" + "k8s.io/kubernetes/pkg/apis/policy" "k8s.io/kubernetes/pkg/kubelet/client" + "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/registry/cachesize" "k8s.io/kubernetes/pkg/registry/generic" "k8s.io/kubernetes/pkg/registry/generic/registry" @@ -41,6 +43,7 @@ import ( type PodStorage struct { Pod *REST Binding *BindingREST + Eviction *EvictionREST Status *StatusREST Log *podrest.LogREST Proxy *podrest.ProxyREST @@ -100,6 +103,7 @@ func NewStorage(opts generic.RESTOptions, k client.ConnectionInfoGetter, proxyTr return PodStorage{ Pod: &REST{store, proxyTransport}, Binding: &BindingREST{store: store}, + Eviction: &EvictionREST{store: store}, Status: &StatusREST{store: &statusStore}, Log: &podrest.LogREST{Store: store, KubeletConn: k}, Proxy: &podrest.ProxyREST{Store: store, ProxyTransport: proxyTransport}, @@ -117,6 +121,155 @@ func (r *REST) ResourceLocation(ctx api.Context, name string) (*url.URL, http.Ro return pod.ResourceLocation(r, r.proxyTransport, ctx, name) } +// EvictionREST implements the REST endpoint for evicting pods from nodes when etcd is in use. +type EvictionREST struct { + store *registry.Store + PodDisruptionBudgetLister rest.Lister + PodDisruptionBudgetUpdater rest.Updater +} + +var _ = rest.Creater(&EvictionREST{}) + +// New creates a new eviction resource +func (r *EvictionREST) New() runtime.Object { + return &policy.Eviction{} +} + +// Create attempts to create a new eviction. That is, it tries to evict a pod. +func (r *EvictionREST) Create(ctx api.Context, obj runtime.Object) (runtime.Object, error) { + eviction := obj.(*policy.Eviction) + + obj, err := r.store.Get(ctx, eviction.Name) + if err != nil { + return nil, err + } + pod := obj.(*api.Pod) + pdbs, err := r.getPodDisruptionBudgets(ctx, pod) + if err != nil { + return nil, err + } + + if len(pdbs) > 1 { + return &unversioned.Status{ + Status: unversioned.StatusFailure, + Message: "This pod has more than one PodDisruptionBudget, which the eviction subresource does not support.", + Code: 500, + }, nil + } else if len(pdbs) == 1 { + pdb := pdbs[0] + // Try to verify-and-decrement + + // If it was false already, or if it becomes false during the course of our retries, + // raise an error marked as a ... 429 maybe? + ok, err := r.checkAndDecrement(ctx, pdb) + if err != nil { + return nil, err + } + + if !ok { + return &unversioned.Status{ + Status: unversioned.StatusFailure, + // TODO(mml): Include some more details about why the eviction is disallowed. + // Ideally any such text is generated by the DisruptionController (offline). + Message: "Cannot evict pod as it would violate the pod's disruption budget.", + Code: 429, + // TODO(mml): Add a Retry-After header. Once there are time-based + // budgets, we can sometimes compute a sensible suggested value. But + // even without that, we can give a suggestion (10 minutes?) that + // prevents well-behaved clients from hammering us. + }, nil + } + } + + // At this point there was either no PDB or we succeded in decrementing + + // Try the delete + _, err = r.store.Delete(ctx, eviction.Name, eviction.DeleteOptions) + if err != nil { + return nil, err + } + + // Success! + return &unversioned.Status{Status: unversioned.StatusSuccess}, nil +} + +// UpdatedObjectInfo is a simple interface for attempting updates to +// runtime.Objects. EvictionREST implements it directly. +var _ = rest.UpdatedObjectInfo(&EvictionREST{}) + +// Preconditions returns any preconditions required prior to updating the +// PDB. None currently. +func (r *EvictionREST) Preconditions() *api.Preconditions { + return nil +} + +// UpdatedObject returns the updated PDB if it is able to update +// PodDisruptionAllowed from true->false. +func (r *EvictionREST) UpdatedObject(ctx api.Context, oldObj runtime.Object) (newObj runtime.Object, err error) { + copy, err := api.Scheme.DeepCopy(oldObj) + if err != nil { + return + } + newObj = copy.(runtime.Object) + pdb := oldObj.(*policy.PodDisruptionBudget) + if !pdb.Status.PodDisruptionAllowed { + return nil, fmt.Errorf("PodDisruptionAllowed is already false") + } + pdb.Status.PodDisruptionAllowed = false + + return +} + +func (r *EvictionREST) checkAndDecrement(ctx api.Context, pdb policy.PodDisruptionBudget) (ok bool, err error) { + if !pdb.Status.PodDisruptionAllowed { + return false, nil + } + newObj, _, err := r.PodDisruptionBudgetUpdater.Update(ctx, pdb.Name, r) + if err != nil { + return false, err + } + + newPdb := newObj.(*policy.PodDisruptionBudget) + if newPdb.Status.PodDisruptionAllowed { + return false, fmt.Errorf("update did not succeed") + } + + return true, nil +} + +// Returns any PDBs that match the pod. +// err is set if there's an error. +func (r *EvictionREST) getPodDisruptionBudgets(ctx api.Context, pod *api.Pod) (pdbs []policy.PodDisruptionBudget, err error) { + if len(pod.Labels) == 0 { + return + } + + l, err := r.PodDisruptionBudgetLister.List(ctx, nil) + if err != nil { + return + } + + pdbList := l.(*policy.PodDisruptionBudgetList) + + for _, pdb := range pdbList.Items { + if pdb.Namespace != pod.Namespace { + continue + } + selector, err := unversioned.LabelSelectorAsSelector(pdb.Spec.Selector) + if err != nil { + continue + } + // If a PDB with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + + pdbs = append(pdbs, pdb) + } + + return pdbs, nil +} + // BindingREST implements the REST endpoint for binding pods to nodes when etcd is in use. type BindingREST struct { store *registry.Store diff --git a/plugin/pkg/admission/securitycontext/scdeny/admission.go b/plugin/pkg/admission/securitycontext/scdeny/admission.go index 941a277cf78..ae2be16e0b4 100644 --- a/plugin/pkg/admission/securitycontext/scdeny/admission.go +++ b/plugin/pkg/admission/securitycontext/scdeny/admission.go @@ -49,7 +49,7 @@ func NewSecurityContextDeny(client clientset.Interface) admission.Interface { // Admit will deny any pod that defines SELinuxOptions or RunAsUser. func (p *plugin) Admit(a admission.Attributes) (err error) { - if a.GetResource().GroupResource() != api.Resource("pods") { + if a.GetSubresource() != "" || a.GetResource().GroupResource() != api.Resource("pods") { return nil } From d82a5914da86b7425971b87ba2a895f43b1ccc3f Mon Sep 17 00:00:00 2001 From: Matt Liggett Date: Mon, 22 Aug 2016 16:36:06 -0700 Subject: [PATCH 2/2] Re-run hack/update-all --- api/swagger-spec/v1.json | 83 + docs/api-reference/v1/definitions.html | 57 +- docs/api-reference/v1/operations.html | 7305 +++++++++-------- .../v1alpha1/types_swagger_doc_generated.go | 10 + 4 files changed, 3865 insertions(+), 3590 deletions(-) diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index bba1f2af54c..18e653e5d22 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -8552,6 +8552,67 @@ } ] }, + { + "path": "/api/v1/namespaces/{namespace}/pods/{name}/eviction", + "description": "API at /api/v1", + "operations": [ + { + "type": "v1alpha1.Eviction", + "method": "POST", + "summary": "create eviction of a Eviction", + "nickname": "createNamespacedEvictionEviction", + "parameters": [ + { + "type": "string", + "paramType": "query", + "name": "pretty", + "description": "If 'true', then the output is pretty printed.", + "required": false, + "allowMultiple": false + }, + { + "type": "v1alpha1.Eviction", + "paramType": "body", + "name": "body", + "description": "", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "namespace", + "description": "object name and auth scope, such as for teams and projects", + "required": true, + "allowMultiple": false + }, + { + "type": "string", + "paramType": "path", + "name": "name", + "description": "name of the Eviction", + "required": true, + "allowMultiple": false + } + ], + "responseMessages": [ + { + "code": 200, + "message": "OK", + "responseModel": "v1alpha1.Eviction" + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "consumes": [ + "*/*" + ] + } + ] + }, { "path": "/api/v1/namespaces/{namespace}/pods/{name}/exec", "description": "API at /api/v1", @@ -18821,6 +18882,28 @@ } } }, + "v1alpha1.Eviction": { + "id": "v1alpha1.Eviction", + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/foo/evictions.", + "properties": { + "kind": { + "type": "string", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" + }, + "apiVersion": { + "type": "string", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources" + }, + "metadata": { + "$ref": "v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." + }, + "deleteOptions": { + "$ref": "v1.DeleteOptions", + "description": "DeleteOptions may be provided" + } + } + }, "v1.PodTemplateList": { "id": "v1.PodTemplateList", "description": "PodTemplateList is a list of PodTemplates.", diff --git a/docs/api-reference/v1/definitions.html b/docs/api-reference/v1/definitions.html index a899bdd870b..f748eaea02d 100755 --- a/docs/api-reference/v1/definitions.html +++ b/docs/api-reference/v1/definitions.html @@ -6658,6 +6658,61 @@ The resulting set of endpoints can be viewed as:
+ +
+

v1alpha1.Eviction

+
+

Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to …/pods/foo/evictions.

+
+ +++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescriptionRequiredSchemaDefault

kind

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds

false

string

apiVersion

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources

false

string

metadata

ObjectMeta describes the pod that is being evicted.

false

v1.ObjectMeta

deleteOptions

DeleteOptions may be provided

false

v1.DeleteOptions

+

v1.AWSElasticBlockStoreVolumeSource

@@ -8292,7 +8347,7 @@ The resulting set of endpoints can be viewed as:
diff --git a/docs/api-reference/v1/operations.html b/docs/api-reference/v1/operations.html index 85da91027cc..0b0545a76fc 100755 --- a/docs/api-reference/v1/operations.html +++ b/docs/api-reference/v1/operations.html @@ -8239,10 +8239,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect GET requests to exec of Pod

+

create eviction of a Eviction

-
GET /api/v1/namespaces/{namespace}/pods/{name}/exec
+
POST /api/v1/namespaces/{namespace}/pods/{name}/eviction
@@ -8269,50 +8269,18 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

QueryParameter

-

stdin

-

Redirect the standard input stream of the pod for this call. Defaults to false.

-

false

-

boolean

- - - -

QueryParameter

-

stdout

-

Redirect the standard output stream of the pod for this call. Defaults to true.

-

false

-

boolean

- - - -

QueryParameter

-

stderr

-

Redirect the standard error stream of the pod for this call. Defaults to true.

-

false

-

boolean

- - - -

QueryParameter

-

tty

-

TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.

-

false

-

boolean

- - - -

QueryParameter

-

container

-

Container in which to execute the command. Defaults to only container if there is only one container in the pod.

+

pretty

+

If true, then the output is pretty printed.

false

string

-

QueryParameter

-

command

-

Command is the remote command to execute. argv array. Not executed within a shell.

-

false

-

string

+

BodyParameter

+

body

+ +

true

+

v1alpha1.Eviction

@@ -8326,7 +8294,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

PathParameter

name

-

name of the Pod

+

name of the Eviction

true

string

@@ -8352,9 +8320,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

default

+

200

success

-

string

+

v1alpha1.Eviction

@@ -8375,7 +8343,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    /

    +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

@@ -8392,10 +8366,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to exec of Pod

+

connect GET requests to exec of Pod

-
POST /api/v1/namespaces/{namespace}/pods/{name}/exec
+
GET /api/v1/namespaces/{namespace}/pods/{name}/exec
@@ -8545,6 +8519,159 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

connect POST requests to exec of Pod

+
+
+
POST /api/v1/namespaces/{namespace}/pods/{name}/exec
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

stdin

Redirect the standard input stream of the pod for this call. Defaults to false.

false

boolean

QueryParameter

stdout

Redirect the standard output stream of the pod for this call. Defaults to true.

false

boolean

QueryParameter

stderr

Redirect the standard error stream of the pod for this call. Defaults to true.

false

boolean

QueryParameter

tty

TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.

false

boolean

QueryParameter

container

Container in which to execute the command. Defaults to only container if there is only one container in the pod.

false

string

QueryParameter

command

Command is the remote command to execute. argv array. Not executed within a shell.

false

string

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Pod

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

default

success

string

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

read log of the specified Pod

@@ -8552,7 +8679,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -8666,7 +8793,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -8691,7 +8818,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -8701,7 +8828,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -8720,7 +8847,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -8738,111 +8865,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Pod

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

default

success

string

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
-
-
-

connect POST requests to portforward of Pod

-
-
-
POST /api/v1/namespaces/{namespace}/pods/{name}/portforward
-
-
-

Parameters

@@ -8941,10 +8963,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect GET requests to proxy of Pod

+

connect POST requests to portforward of Pod

-
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy
+
POST /api/v1/namespaces/{namespace}/pods/{name}/portforward
@@ -8970,14 +8992,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
- - - - - - - - @@ -9054,10 +9068,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect PUT requests to proxy of Pod

+

connect GET requests to proxy of Pod

-
PUT /api/v1/namespaces/{namespace}/pods/{name}/proxy
+
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy
@@ -9167,10 +9181,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect DELETE requests to proxy of Pod

+

connect PUT requests to proxy of Pod

-
DELETE /api/v1/namespaces/{namespace}/pods/{name}/proxy
+
PUT /api/v1/namespaces/{namespace}/pods/{name}/proxy
@@ -9280,10 +9294,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to proxy of Pod

+

connect DELETE requests to proxy of Pod

-
POST /api/v1/namespaces/{namespace}/pods/{name}/proxy
+
DELETE /api/v1/namespaces/{namespace}/pods/{name}/proxy
@@ -9393,10 +9407,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect GET requests to proxy of Pod

+

connect POST requests to proxy of Pod

-
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
+
POST /api/v1/namespaces/{namespace}/pods/{name}/proxy
@@ -9445,14 +9459,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
- - - - - - - -

QueryParameter

path

Path is the URL path to use for the current proxy request to pod.

false

string

PathParameter

namespace

object name and auth scope, such as for teams and projects

string

PathParameter

path

path to the resource

true

string

@@ -9514,10 +9520,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect PUT requests to proxy of Pod

+

connect GET requests to proxy of Pod

-
PUT /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
+
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
@@ -9635,10 +9641,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect DELETE requests to proxy of Pod

+

connect PUT requests to proxy of Pod

-
DELETE /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
+
PUT /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
@@ -9756,10 +9762,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to proxy of Pod

+

connect DELETE requests to proxy of Pod

-
POST /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
+
DELETE /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
@@ -9877,10 +9883,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read status of the specified Pod

+

connect POST requests to proxy of Pod

-
GET /api/v1/namespaces/{namespace}/pods/{name}/status
+
POST /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}
@@ -9907,8 +9913,8 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

QueryParameter

-

pretty

-

If true, then the output is pretty printed.

+

path

+

Path is the URL path to use for the current proxy request to pod.

false

string

@@ -9929,6 +9935,14 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

+ +

PathParameter

+

path

+

path to the resource

+

true

+

string

+ + @@ -9950,9 +9964,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

200

+

default

success

-

v1.Pod

+

string

@@ -9973,13 +9987,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    +

    /

@@ -9996,10 +10004,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified Pod

+

read status of the specified Pod

-
PUT /api/v1/namespaces/{namespace}/pods/{name}/status
+
GET /api/v1/namespaces/{namespace}/pods/{name}/status
@@ -10033,14 +10041,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.Pod

- - -

PathParameter

namespace

object name and auth scope, such as for teams and projects

@@ -10123,6 +10123,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified Pod

+
+
+
PUT /api/v1/namespaces/{namespace}/pods/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Pod

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Pod

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Pod

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified Pod

@@ -10130,7 +10257,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -10188,7 +10315,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -10213,7 +10340,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -10229,157 +10356,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind PodTemplate

-
-
-
GET /api/v1/namespaces/{namespace}/podtemplates
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.PodTemplateList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -10407,10 +10383,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of PodTemplate

+

list or watch objects of kind PodTemplate

-
DELETE /api/v1/namespaces/{namespace}/podtemplates
+
GET /api/v1/namespaces/{namespace}/podtemplates
@@ -10514,7 +10490,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.PodTemplateList

@@ -10558,10 +10534,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a PodTemplate

+

delete collection of PodTemplate

-
POST /api/v1/namespaces/{namespace}/podtemplates
+
DELETE /api/v1/namespaces/{namespace}/podtemplates
@@ -10595,11 +10571,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.PodTemplate

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -10633,7 +10641,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.PodTemplate

+

unversioned.Status

@@ -10677,10 +10685,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified PodTemplate

+

create a PodTemplate

-
GET /api/v1/namespaces/{namespace}/podtemplates/{name}
+
POST /api/v1/namespaces/{namespace}/podtemplates
@@ -10714,19 +10722,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

+

true

+

v1.PodTemplate

@@ -10737,14 +10737,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

name

-

name of the PodTemplate

-

true

-

string

- - @@ -10812,10 +10804,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified PodTemplate

+

read the specified PodTemplate

-
PUT /api/v1/namespaces/{namespace}/podtemplates/{name}
+
GET /api/v1/namespaces/{namespace}/podtemplates/{name}
@@ -10849,11 +10841,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.PodTemplate

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -10939,6 +10939,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified PodTemplate

+
+
+
PUT /api/v1/namespaces/{namespace}/podtemplates/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.PodTemplate

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the PodTemplate

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.PodTemplate

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a PodTemplate

@@ -10946,7 +11073,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -11004,7 +11131,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -11029,7 +11156,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -11039,7 +11166,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -11055,7 +11182,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -11073,7 +11200,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -11131,7 +11258,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -11156,7 +11283,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -11172,157 +11299,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind ReplicationController

-
-
-
GET /api/v1/namespaces/{namespace}/replicationcontrollers
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.ReplicationControllerList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -11350,10 +11326,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of ReplicationController

+

list or watch objects of kind ReplicationController

-
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers
+
GET /api/v1/namespaces/{namespace}/replicationcontrollers
@@ -11457,7 +11433,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.ReplicationControllerList

@@ -11501,10 +11477,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a ReplicationController

+

delete collection of ReplicationController

-
POST /api/v1/namespaces/{namespace}/replicationcontrollers
+
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers
@@ -11538,11 +11514,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.ReplicationController

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -11576,7 +11584,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.ReplicationController

+

unversioned.Status

@@ -11620,10 +11628,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified ReplicationController

+

create a ReplicationController

-
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
+
POST /api/v1/namespaces/{namespace}/replicationcontrollers
@@ -11657,19 +11665,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

+

true

+

v1.ReplicationController

@@ -11680,14 +11680,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

name

-

name of the ReplicationController

-

true

-

string

- - @@ -11755,10 +11747,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified ReplicationController

+

read the specified ReplicationController

-
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
+
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
@@ -11792,11 +11784,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.ReplicationController

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -11882,6 +11882,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified ReplicationController

+
+
+
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.ReplicationController

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ReplicationController

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.ReplicationController

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a ReplicationController

@@ -11889,7 +12016,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -11947,7 +12074,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -11972,7 +12099,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -11982,7 +12109,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -11998,7 +12125,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -12016,7 +12143,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -12074,7 +12201,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -12099,7 +12226,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -12115,125 +12242,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

read scale of the specified Scale

-
-
-
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Scale

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.Scale

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -12261,10 +12269,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace scale of the specified Scale

+

read scale of the specified Scale

-
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale
+
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale
@@ -12298,14 +12306,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.Scale

- - -

PathParameter

namespace

object name and auth scope, such as for teams and projects

@@ -12388,6 +12388,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace scale of the specified Scale

+
+
+
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Scale

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Scale

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Scale

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update scale of the specified Scale

@@ -12395,7 +12522,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -12453,7 +12580,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -12478,7 +12605,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -12494,125 +12621,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

read status of the specified ReplicationController

-
-
-
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ReplicationController

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.ReplicationController

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -12640,10 +12648,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified ReplicationController

+

read status of the specified ReplicationController

-
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
+
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
@@ -12677,14 +12685,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.ReplicationController

- - -

PathParameter

namespace

object name and auth scope, such as for teams and projects

@@ -12767,6 +12767,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified ReplicationController

+
+
+
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.ReplicationController

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ReplicationController

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.ReplicationController

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified ReplicationController

@@ -12774,7 +12901,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -12832,7 +12959,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -12857,7 +12984,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -12873,157 +13000,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind ResourceQuota

-
-
-
GET /api/v1/namespaces/{namespace}/resourcequotas
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.ResourceQuotaList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -13051,10 +13027,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of ResourceQuota

+

list or watch objects of kind ResourceQuota

-
DELETE /api/v1/namespaces/{namespace}/resourcequotas
+
GET /api/v1/namespaces/{namespace}/resourcequotas
@@ -13158,7 +13134,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.ResourceQuotaList

@@ -13202,10 +13178,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a ResourceQuota

+

delete collection of ResourceQuota

-
POST /api/v1/namespaces/{namespace}/resourcequotas
+
DELETE /api/v1/namespaces/{namespace}/resourcequotas
@@ -13239,11 +13215,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.ResourceQuota

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -13277,7 +13285,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.ResourceQuota

+

unversioned.Status

@@ -13321,10 +13329,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified ResourceQuota

+

create a ResourceQuota

-
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}
+
POST /api/v1/namespaces/{namespace}/resourcequotas
@@ -13358,19 +13366,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

+

true

+

v1.ResourceQuota

@@ -13381,14 +13381,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

name

-

name of the ResourceQuota

-

true

-

string

- - @@ -13456,10 +13448,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified ResourceQuota

+

read the specified ResourceQuota

-
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}
+
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}
@@ -13493,11 +13485,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.ResourceQuota

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -13583,6 +13583,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified ResourceQuota

+
+
+
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.ResourceQuota

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ResourceQuota

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.ResourceQuota

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a ResourceQuota

@@ -13590,7 +13717,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -13648,7 +13775,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -13673,7 +13800,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -13683,7 +13810,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -13699,7 +13826,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -13717,7 +13844,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -13773,131 +13900,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.ResourceQuota

- -
-
-

Consumes

-
-
    -
  • -

    application/json-patch+json

    -
  • -
  • -

    application/merge-patch+json

    -
  • -
  • -

    application/strategic-merge-patch+json

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
-
-
-

read status of the specified ResourceQuota

-
-
-
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
-
-
-
-

Parameters

- -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ResourceQuota

true

string

-

Responses

@@ -13929,7 +13931,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    /

    +

    application/json-patch+json

    +
  • +
  • +

    application/merge-patch+json

    +
  • +
  • +

    application/strategic-merge-patch+json

@@ -13962,10 +13970,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified ResourceQuota

+

read status of the specified ResourceQuota

-
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
+
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
@@ -13999,14 +14007,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.ResourceQuota

- - -

PathParameter

namespace

object name and auth scope, such as for teams and projects

@@ -14089,6 +14089,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified ResourceQuota

+
+
+
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.ResourceQuota

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ResourceQuota

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.ResourceQuota

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified ResourceQuota

@@ -14096,7 +14223,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -14154,7 +14281,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -14179,7 +14306,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -14195,157 +14322,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind Secret

-
-
-
GET /api/v1/namespaces/{namespace}/secrets
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.SecretList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -14373,10 +14349,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of Secret

+

list or watch objects of kind Secret

-
DELETE /api/v1/namespaces/{namespace}/secrets
+
GET /api/v1/namespaces/{namespace}/secrets
@@ -14480,7 +14456,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.SecretList

@@ -14524,10 +14500,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a Secret

+

delete collection of Secret

-
POST /api/v1/namespaces/{namespace}/secrets
+
DELETE /api/v1/namespaces/{namespace}/secrets
@@ -14561,11 +14537,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.Secret

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -14599,7 +14607,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.Secret

+

unversioned.Status

@@ -14643,10 +14651,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified Secret

+

create a Secret

-
GET /api/v1/namespaces/{namespace}/secrets/{name}
+
POST /api/v1/namespaces/{namespace}/secrets
@@ -14680,19 +14688,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

+

true

+

v1.Secret

@@ -14703,14 +14703,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

name

-

name of the Secret

-

true

-

string

- - @@ -14778,10 +14770,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified Secret

+

read the specified Secret

-
PUT /api/v1/namespaces/{namespace}/secrets/{name}
+
GET /api/v1/namespaces/{namespace}/secrets/{name}
@@ -14815,11 +14807,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.Secret

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -14905,6 +14905,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified Secret

+
+
+
PUT /api/v1/namespaces/{namespace}/secrets/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Secret

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Secret

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Secret

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a Secret

@@ -14912,7 +15039,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -14970,7 +15097,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -14995,7 +15122,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -15005,7 +15132,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -15021,7 +15148,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -15039,7 +15166,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -15097,7 +15224,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -15122,7 +15249,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -15138,157 +15265,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind ServiceAccount

-
-
-
GET /api/v1/namespaces/{namespace}/serviceaccounts
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.ServiceAccountList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -15316,10 +15292,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of ServiceAccount

+

list or watch objects of kind ServiceAccount

-
DELETE /api/v1/namespaces/{namespace}/serviceaccounts
+
GET /api/v1/namespaces/{namespace}/serviceaccounts
@@ -15423,7 +15399,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.ServiceAccountList

@@ -15467,10 +15443,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a ServiceAccount

+

delete collection of ServiceAccount

-
POST /api/v1/namespaces/{namespace}/serviceaccounts
+
DELETE /api/v1/namespaces/{namespace}/serviceaccounts
@@ -15504,11 +15480,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.ServiceAccount

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -15542,7 +15550,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.ServiceAccount

+

unversioned.Status

@@ -15586,10 +15594,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified ServiceAccount

+

create a ServiceAccount

-
GET /api/v1/namespaces/{namespace}/serviceaccounts/{name}
+
POST /api/v1/namespaces/{namespace}/serviceaccounts
@@ -15623,19 +15631,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

+

true

+

v1.ServiceAccount

@@ -15646,14 +15646,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

name

-

name of the ServiceAccount

-

true

-

string

- - @@ -15721,10 +15713,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified ServiceAccount

+

read the specified ServiceAccount

-
PUT /api/v1/namespaces/{namespace}/serviceaccounts/{name}
+
GET /api/v1/namespaces/{namespace}/serviceaccounts/{name}
@@ -15758,11 +15750,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.ServiceAccount

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -15848,6 +15848,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified ServiceAccount

+
+
+
PUT /api/v1/namespaces/{namespace}/serviceaccounts/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.ServiceAccount

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the ServiceAccount

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.ServiceAccount

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a ServiceAccount

@@ -15855,7 +15982,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -15913,7 +16040,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -15938,7 +16065,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -15948,7 +16075,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -15964,7 +16091,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -15982,7 +16109,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -16040,7 +16167,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -16065,7 +16192,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -16081,7 +16208,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -16097,7 +16224,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -16115,7 +16242,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -16195,125 +16322,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.ServiceList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
-
-
-

create a Service

-
-
-
POST /api/v1/namespaces/{namespace}/services
-
-
-
-

Parameters

- -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Service

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

-

Responses

@@ -16334,7 +16342,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.Service

+

v1.ServiceList

@@ -16378,10 +16386,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified Service

+

create a Service

-
GET /api/v1/namespaces/{namespace}/services/{name}
+
POST /api/v1/namespaces/{namespace}/services
@@ -16415,19 +16423,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

+

true

+

v1.Service

@@ -16438,14 +16438,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

name

-

name of the Service

-

true

-

string

- - @@ -16513,10 +16505,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified Service

+

read the specified Service

-
PUT /api/v1/namespaces/{namespace}/services/{name}
+
GET /api/v1/namespaces/{namespace}/services/{name}
@@ -16550,11 +16542,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.Service

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -16640,6 +16640,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified Service

+
+
+
PUT /api/v1/namespaces/{namespace}/services/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Service

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Service

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Service

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a Service

@@ -16647,7 +16774,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -16697,7 +16824,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -16722,7 +16849,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -16732,7 +16859,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -16748,7 +16875,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -16766,7 +16893,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -16824,7 +16951,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -16849,7 +16976,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -16865,7 +16992,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -16881,119 +17008,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

connect GET requests to proxy of Service

-
-
-
GET /api/v1/namespaces/{namespace}/services/{name}/proxy
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

path

Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.

false

string

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Service

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

default

success

string

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    /

    -
  • -
-
-
-

Tags

    @@ -17005,10 +17019,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect PUT requests to proxy of Service

+

connect GET requests to proxy of Service

-
PUT /api/v1/namespaces/{namespace}/services/{name}/proxy
+
GET /api/v1/namespaces/{namespace}/services/{name}/proxy
@@ -17118,10 +17132,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect DELETE requests to proxy of Service

+

connect PUT requests to proxy of Service

-
DELETE /api/v1/namespaces/{namespace}/services/{name}/proxy
+
PUT /api/v1/namespaces/{namespace}/services/{name}/proxy
@@ -17231,10 +17245,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to proxy of Service

+

connect DELETE requests to proxy of Service

-
POST /api/v1/namespaces/{namespace}/services/{name}/proxy
+
DELETE /api/v1/namespaces/{namespace}/services/{name}/proxy
@@ -17344,10 +17358,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect GET requests to proxy of Service

+

connect POST requests to proxy of Service

-
GET /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
+
POST /api/v1/namespaces/{namespace}/services/{name}/proxy
@@ -17396,14 +17410,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

path

-

path to the resource

-

true

-

string

- - @@ -17465,10 +17471,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect PUT requests to proxy of Service

+

connect GET requests to proxy of Service

-
PUT /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
+
GET /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
@@ -17586,10 +17592,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect DELETE requests to proxy of Service

+

connect PUT requests to proxy of Service

-
DELETE /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
+
PUT /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
@@ -17707,10 +17713,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to proxy of Service

+

connect DELETE requests to proxy of Service

-
POST /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
+
DELETE /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
@@ -17828,10 +17834,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read status of the specified Service

+

connect POST requests to proxy of Service

-
GET /api/v1/namespaces/{namespace}/services/{name}/status
+
POST /api/v1/namespaces/{namespace}/services/{name}/proxy/{path}
@@ -17858,8 +17864,8 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

QueryParameter

-

pretty

-

If true, then the output is pretty printed.

+

path

+

Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.

false

string

@@ -17880,6 +17886,14 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

+ +

PathParameter

+

path

+

path to the resource

+

true

+

string

+ + @@ -17901,9 +17915,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

200

+

default

success

-

v1.Service

+

string

@@ -17924,13 +17938,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    +

    /

@@ -17947,10 +17955,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified Service

+

read status of the specified Service

-
PUT /api/v1/namespaces/{namespace}/services/{name}/status
+
GET /api/v1/namespaces/{namespace}/services/{name}/status
@@ -17984,14 +17992,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.Service

- - -

PathParameter

namespace

object name and auth scope, such as for teams and projects

@@ -18074,6 +18074,133 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified Service

+
+
+
PUT /api/v1/namespaces/{namespace}/services/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Service

PathParameter

namespace

object name and auth scope, such as for teams and projects

true

string

PathParameter

name

name of the Service

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Service

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified Service

@@ -18081,7 +18208,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -18139,7 +18266,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -18164,7 +18291,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -18180,7 +18307,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -18196,7 +18323,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -18214,7 +18341,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -18270,125 +18397,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.Namespace

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
-
-
-

replace the specified Namespace

-
-
-
PUT /api/v1/namespaces/{name}
-
-
-
-

Parameters

- -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Namespace

PathParameter

name

name of the Namespace

true

string

-

Responses

@@ -18453,6 +18461,125 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified Namespace

+
+
+
PUT /api/v1/namespaces/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Namespace

PathParameter

name

name of the Namespace

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Namespace

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a Namespace

@@ -18460,7 +18587,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -18510,7 +18637,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -18535,7 +18662,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -18545,7 +18672,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -18561,7 +18688,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -18579,7 +18706,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -18629,7 +18756,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -18654,7 +18781,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -18670,7 +18797,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -18686,7 +18813,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -18704,7 +18831,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -18752,117 +18879,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.Namespace

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
-
-
-

read status of the specified Namespace

-
-
-
GET /api/v1/namespaces/{name}/status
-
-
-
-

Parameters

- -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

PathParameter

name

name of the Namespace

true

string

-

Responses

@@ -18927,10 +18943,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified Namespace

+

read status of the specified Namespace

-
PUT /api/v1/namespaces/{name}/status
+
GET /api/v1/namespaces/{name}/status
@@ -18964,14 +18980,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.Namespace

- - -

PathParameter

name

name of the Namespace

@@ -19046,6 +19054,125 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified Namespace

+
+
+
PUT /api/v1/namespaces/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Namespace

PathParameter

name

name of the Namespace

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Namespace

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified Namespace

@@ -19053,7 +19180,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -19103,7 +19230,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -19128,7 +19255,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -19144,149 +19271,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind Node

-
-
-
GET /api/v1/nodes
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.NodeList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -19314,10 +19298,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of Node

+

list or watch objects of kind Node

-
DELETE /api/v1/nodes
+
GET /api/v1/nodes
@@ -19413,7 +19397,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.NodeList

@@ -19457,10 +19441,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a Node

+

delete collection of Node

-
POST /api/v1/nodes
+
DELETE /api/v1/nodes
@@ -19494,11 +19478,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.Node

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -19524,7 +19540,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.Node

+

unversioned.Status

@@ -19568,10 +19584,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified Node

+

create a Node

-
GET /api/v1/nodes/{name}
+
POST /api/v1/nodes
@@ -19605,27 +19621,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

- - - -

PathParameter

-

name

-

name of the Node

true

-

string

+

v1.Node

@@ -19695,10 +19695,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified Node

+

read the specified Node

-
PUT /api/v1/nodes/{name}
+
GET /api/v1/nodes/{name}
@@ -19732,11 +19732,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.Node

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -19814,6 +19822,125 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified Node

+
+
+
PUT /api/v1/nodes/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Node

PathParameter

name

name of the Node

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Node

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a Node

@@ -19821,7 +19948,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -19871,7 +19998,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -19896,7 +20023,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -19906,7 +20033,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -19922,7 +20049,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -19940,7 +20067,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -19990,7 +20117,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -20015,7 +20142,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -20031,7 +20158,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -20047,111 +20174,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

connect GET requests to proxy of Node

-
-
-
GET /api/v1/nodes/{name}/proxy
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

path

Path is the URL path to use for the current proxy request to node.

false

string

PathParameter

name

name of the Node

true

string

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

default

success

string

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    /

    -
  • -
-
-
-

Tags

    @@ -20163,10 +20185,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect PUT requests to proxy of Node

+

connect GET requests to proxy of Node

-
PUT /api/v1/nodes/{name}/proxy
+
GET /api/v1/nodes/{name}/proxy
@@ -20268,10 +20290,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect DELETE requests to proxy of Node

+

connect PUT requests to proxy of Node

-
DELETE /api/v1/nodes/{name}/proxy
+
PUT /api/v1/nodes/{name}/proxy
@@ -20373,10 +20395,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to proxy of Node

+

connect DELETE requests to proxy of Node

-
POST /api/v1/nodes/{name}/proxy
+
DELETE /api/v1/nodes/{name}/proxy
@@ -20478,10 +20500,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect GET requests to proxy of Node

+

connect POST requests to proxy of Node

-
GET /api/v1/nodes/{name}/proxy/{path}
+
POST /api/v1/nodes/{name}/proxy
@@ -20522,14 +20544,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

path

-

path to the resource

-

true

-

string

- - @@ -20591,10 +20605,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect PUT requests to proxy of Node

+

connect GET requests to proxy of Node

-
PUT /api/v1/nodes/{name}/proxy/{path}
+
GET /api/v1/nodes/{name}/proxy/{path}
@@ -20704,10 +20718,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect DELETE requests to proxy of Node

+

connect PUT requests to proxy of Node

-
DELETE /api/v1/nodes/{name}/proxy/{path}
+
PUT /api/v1/nodes/{name}/proxy/{path}
@@ -20817,10 +20831,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

connect POST requests to proxy of Node

+

connect DELETE requests to proxy of Node

-
POST /api/v1/nodes/{name}/proxy/{path}
+
DELETE /api/v1/nodes/{name}/proxy/{path}
@@ -20930,10 +20944,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read status of the specified Node

+

connect POST requests to proxy of Node

-
GET /api/v1/nodes/{name}/status
+
POST /api/v1/nodes/{name}/proxy/{path}
@@ -20960,8 +20974,8 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

QueryParameter

-

pretty

-

If true, then the output is pretty printed.

+

path

+

Path is the URL path to use for the current proxy request to node.

false

string

@@ -20974,6 +20988,14 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

+ +

PathParameter

+

path

+

path to the resource

+

true

+

string

+ + @@ -20995,9 +21017,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

200

+

default

success

-

v1.Node

+

string

@@ -21018,13 +21040,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    +

    /

@@ -21041,10 +21057,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified Node

+

read status of the specified Node

-
PUT /api/v1/nodes/{name}/status
+
GET /api/v1/nodes/{name}/status
@@ -21078,14 +21094,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.Node

- - -

PathParameter

name

name of the Node

@@ -21160,6 +21168,125 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified Node

+
+
+
PUT /api/v1/nodes/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.Node

PathParameter

name

name of the Node

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.Node

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified Node

@@ -21167,7 +21294,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -21217,7 +21344,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -21242,7 +21369,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -21258,149 +21385,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind PersistentVolumeClaim

-
-
-
GET /api/v1/persistentvolumeclaims
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.PersistentVolumeClaimList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -21428,10 +21412,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind PersistentVolume

+

list or watch objects of kind PersistentVolumeClaim

-
GET /api/v1/persistentvolumes
+
GET /api/v1/persistentvolumeclaims
@@ -21527,7 +21511,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.PersistentVolumeList

+

v1.PersistentVolumeClaimList

@@ -21571,10 +21555,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

delete collection of PersistentVolume

+

list or watch objects of kind PersistentVolume

-
DELETE /api/v1/persistentvolumes
+
GET /api/v1/persistentvolumes
@@ -21670,7 +21654,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

unversioned.Status

+

v1.PersistentVolumeList

@@ -21714,10 +21698,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

create a PersistentVolume

+

delete collection of PersistentVolume

-
POST /api/v1/persistentvolumes
+
DELETE /api/v1/persistentvolumes
@@ -21751,11 +21735,43 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

+

string

-

true

-

v1.PersistentVolume

+ + +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

@@ -21781,7 +21797,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.PersistentVolume

+

unversioned.Status

@@ -21825,10 +21841,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

read the specified PersistentVolume

+

create a PersistentVolume

-
GET /api/v1/persistentvolumes/{name}
+
POST /api/v1/persistentvolumes
@@ -21862,27 +21878,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

export

-

Should this value be exported. Export strips fields that a user can not specify.

-

false

-

boolean

+

BodyParameter

+

body

- - -

QueryParameter

-

exact

-

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

-

false

-

boolean

- - - -

PathParameter

-

name

-

name of the PersistentVolume

true

-

string

+

v1.PersistentVolume

@@ -21952,10 +21952,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace the specified PersistentVolume

+

read the specified PersistentVolume

-
PUT /api/v1/persistentvolumes/{name}
+
GET /api/v1/persistentvolumes/{name}
@@ -21989,11 +21989,19 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

+

QueryParameter

+

export

+

Should this value be exported. Export strips fields that a user can not specify.

+

false

+

boolean

-

true

-

v1.PersistentVolume

+ + +

QueryParameter

+

exact

+

Should the export be exact. Exact export maintains cluster-specific fields like Namespace

+

false

+

boolean

@@ -22071,6 +22079,125 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace the specified PersistentVolume

+
+
+
PUT /api/v1/persistentvolumes/{name}
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.PersistentVolume

PathParameter

name

name of the PersistentVolume

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.PersistentVolume

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

delete a PersistentVolume

@@ -22078,7 +22205,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -22128,7 +22255,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -22153,7 +22280,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -22163,7 +22290,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

+

Produces

  • @@ -22179,7 +22306,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Tags

+

Tags

  • @@ -22197,7 +22324,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -22245,123 +22372,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.PersistentVolume

- -
-
-

Consumes

-
-
    -
  • -

    application/json-patch+json

    -
  • -
  • -

    application/merge-patch+json

    -
  • -
  • -

    application/strategic-merge-patch+json

    -
  • -
-
-
-
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
-
-
-

read status of the specified PersistentVolume

-
-
-
GET /api/v1/persistentvolumes/{name}/status
-
-
-
-

Parameters

- -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

PathParameter

name

name of the PersistentVolume

true

string

-

Responses

@@ -22393,7 +22403,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    /

    +

    application/json-patch+json

    +
  • +
  • +

    application/merge-patch+json

    +
  • +
  • +

    application/strategic-merge-patch+json

@@ -22426,10 +22442,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

replace status of the specified PersistentVolume

+

read status of the specified PersistentVolume

-
PUT /api/v1/persistentvolumes/{name}/status
+
GET /api/v1/persistentvolumes/{name}/status
@@ -22463,14 +22479,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

BodyParameter

-

body

- -

true

-

v1.PersistentVolume

- - -

PathParameter

name

name of the PersistentVolume

@@ -22545,6 +22553,125 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
+

replace status of the specified PersistentVolume

+
+
+
PUT /api/v1/persistentvolumes/{name}/status
+
+
+
+

Parameters

+ ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

BodyParameter

body

true

v1.PersistentVolume

PathParameter

name

name of the PersistentVolume

true

string

+ +
+
+

Responses

+ +++++ + + + + + + + + + + + + + + +
HTTP CodeDescriptionSchema

200

success

v1.PersistentVolume

+ +
+
+

Consumes

+
+
    +
  • +

    /

    +
  • +
+
+
+
+

Produces

+
+
    +
  • +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

    +
  • +
+
+
+
+

Tags

+
+
    +
  • +

    apiv1

    +
  • +
+
+
+
+

partially update status of the specified PersistentVolume

@@ -22552,7 +22679,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Parameters

+

Parameters

@@ -22602,7 +22729,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Responses

+

Responses

@@ -22627,7 +22754,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Consumes

+

Consumes

  • @@ -22643,149 +22770,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

Produces

-
-
    -
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    -
  • -
-
-
-
-

Tags

-
-
    -
  • -

    apiv1

    -
  • -
-
-
- -
-

list or watch objects of kind Pod

-
-
-
GET /api/v1/pods
-
-
-
-

Parameters

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeNameDescriptionRequiredSchemaDefault

QueryParameter

pretty

If true, then the output is pretty printed.

false

string

QueryParameter

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

false

string

QueryParameter

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

false

string

QueryParameter

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

false

boolean

QueryParameter

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

false

string

QueryParameter

timeoutSeconds

Timeout for the list/watch call.

false

integer (int32)

- -
-
-

Responses

- ----- - - - - - - - - - - - - - - -
HTTP CodeDescriptionSchema

200

success

v1.PodList

- -
-
-

Consumes

-
-
    -
  • -

    /

    -
  • -
-
-
-

Produces

    @@ -22813,10 +22797,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind PodTemplate

+

list or watch objects of kind Pod

-
GET /api/v1/podtemplates
+
GET /api/v1/pods
@@ -22912,7 +22896,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.PodTemplateList

+

v1.PodList

@@ -22956,10 +22940,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy GET requests to Pod

+

list or watch objects of kind PodTemplate

-
GET /api/v1/proxy/namespaces/{namespace}/pods/{name}
+
GET /api/v1/podtemplates
@@ -22985,21 +22969,53 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

PathParameter

-

namespace

-

object name and auth scope, such as for teams and projects

-

true

+

QueryParameter

+

pretty

+

If true, then the output is pretty printed.

+

false

string

-

PathParameter

-

name

-

name of the Pod

-

true

+

QueryParameter

+

labelSelector

+

A selector to restrict the list of returned objects by their labels. Defaults to everything.

+

false

string

+ +

QueryParameter

+

fieldSelector

+

A selector to restrict the list of returned objects by their fields. Defaults to everything.

+

false

+

string

+ + + +

QueryParameter

+

watch

+

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

+

false

+

boolean

+ + + +

QueryParameter

+

resourceVersion

+

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

+

false

+

string

+ + + +

QueryParameter

+

timeoutSeconds

+

Timeout for the list/watch call.

+

false

+

integer (int32)

+ + @@ -23021,9 +23037,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

default

+

200

success

-

string

+

v1.PodTemplateList

@@ -23044,7 +23060,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    /

    +

    application/json

    +
  • +
  • +

    application/yaml

    +
  • +
  • +

    application/vnd.kubernetes.protobuf

@@ -23061,10 +23083,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy PUT requests to Pod

+

proxy GET requests to Pod

-
PUT /api/v1/proxy/namespaces/{namespace}/pods/{name}
+
GET /api/v1/proxy/namespaces/{namespace}/pods/{name}
@@ -23166,10 +23188,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy DELETE requests to Pod

+

proxy PUT requests to Pod

-
DELETE /api/v1/proxy/namespaces/{namespace}/pods/{name}
+
PUT /api/v1/proxy/namespaces/{namespace}/pods/{name}
@@ -23271,10 +23293,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy POST requests to Pod

+

proxy DELETE requests to Pod

-
POST /api/v1/proxy/namespaces/{namespace}/pods/{name}
+
DELETE /api/v1/proxy/namespaces/{namespace}/pods/{name}
@@ -23376,10 +23398,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy GET requests to Pod

+

proxy POST requests to Pod

-
GET /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
+
POST /api/v1/proxy/namespaces/{namespace}/pods/{name}
@@ -23420,14 +23442,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

path

-

path to the resource

-

true

-

string

- - @@ -23489,10 +23503,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy PUT requests to Pod

+

proxy GET requests to Pod

-
PUT /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
+
GET /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
@@ -23602,10 +23616,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy DELETE requests to Pod

+

proxy PUT requests to Pod

-
DELETE /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
+
PUT /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
@@ -23715,10 +23729,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy POST requests to Pod

+

proxy DELETE requests to Pod

-
POST /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
+
DELETE /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
@@ -23828,10 +23842,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy GET requests to Service

+

proxy POST requests to Pod

-
GET /api/v1/proxy/namespaces/{namespace}/services/{name}
+
POST /api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}
@@ -23867,7 +23881,15 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

PathParameter

name

-

name of the Service

+

name of the Pod

+

true

+

string

+ + + +

PathParameter

+

path

+

path to the resource

true

string

@@ -23933,10 +23955,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy PUT requests to Service

+

proxy GET requests to Service

-
PUT /api/v1/proxy/namespaces/{namespace}/services/{name}
+
GET /api/v1/proxy/namespaces/{namespace}/services/{name}
@@ -24038,10 +24060,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy DELETE requests to Service

+

proxy PUT requests to Service

-
DELETE /api/v1/proxy/namespaces/{namespace}/services/{name}
+
PUT /api/v1/proxy/namespaces/{namespace}/services/{name}
@@ -24143,10 +24165,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy POST requests to Service

+

proxy DELETE requests to Service

-
POST /api/v1/proxy/namespaces/{namespace}/services/{name}
+
DELETE /api/v1/proxy/namespaces/{namespace}/services/{name}
@@ -24248,10 +24270,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy GET requests to Service

+

proxy POST requests to Service

-
GET /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
+
POST /api/v1/proxy/namespaces/{namespace}/services/{name}
@@ -24292,14 +24314,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

path

-

path to the resource

-

true

-

string

- - @@ -24361,10 +24375,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy PUT requests to Service

+

proxy GET requests to Service

-
PUT /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
+
GET /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
@@ -24474,10 +24488,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy DELETE requests to Service

+

proxy PUT requests to Service

-
DELETE /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
+
PUT /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
@@ -24587,10 +24601,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy POST requests to Service

+

proxy DELETE requests to Service

-
POST /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
+
DELETE /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
@@ -24700,10 +24714,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy GET requests to Node

+

proxy POST requests to Service

-
GET /api/v1/proxy/nodes/{name}
+
POST /api/v1/proxy/namespaces/{namespace}/services/{name}/{path}
@@ -24730,8 +24744,24 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

PathParameter

+

namespace

+

object name and auth scope, such as for teams and projects

+

true

+

string

+ + + +

PathParameter

name

-

name of the Node

+

name of the Service

+

true

+

string

+ + + +

PathParameter

+

path

+

path to the resource

true

string

@@ -24797,10 +24827,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy PUT requests to Node

+

proxy GET requests to Node

-
PUT /api/v1/proxy/nodes/{name}
+
GET /api/v1/proxy/nodes/{name}
@@ -24894,10 +24924,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy DELETE requests to Node

+

proxy PUT requests to Node

-
DELETE /api/v1/proxy/nodes/{name}
+
PUT /api/v1/proxy/nodes/{name}
@@ -24991,10 +25021,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy POST requests to Node

+

proxy DELETE requests to Node

-
POST /api/v1/proxy/nodes/{name}
+
DELETE /api/v1/proxy/nodes/{name}
@@ -25088,10 +25118,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy GET requests to Node

+

proxy POST requests to Node

-
GET /api/v1/proxy/nodes/{name}/{path}
+
POST /api/v1/proxy/nodes/{name}
@@ -25124,14 +25154,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

string

- -

PathParameter

-

path

-

path to the resource

-

true

-

string

- - @@ -25193,10 +25215,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy PUT requests to Node

+

proxy GET requests to Node

-
PUT /api/v1/proxy/nodes/{name}/{path}
+
GET /api/v1/proxy/nodes/{name}/{path}
@@ -25298,10 +25320,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy DELETE requests to Node

+

proxy PUT requests to Node

-
DELETE /api/v1/proxy/nodes/{name}/{path}
+
PUT /api/v1/proxy/nodes/{name}/{path}
@@ -25403,10 +25425,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

proxy POST requests to Node

+

proxy DELETE requests to Node

-
POST /api/v1/proxy/nodes/{name}/{path}
+
DELETE /api/v1/proxy/nodes/{name}/{path}
@@ -25508,10 +25530,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind ReplicationController

+

proxy POST requests to Node

-
GET /api/v1/replicationcontrollers
+
POST /api/v1/proxy/nodes/{name}/{path}
@@ -25537,53 +25559,21 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

QueryParameter

-

pretty

-

If true, then the output is pretty printed.

-

false

+

PathParameter

+

name

+

name of the Node

+

true

string

-

QueryParameter

-

labelSelector

-

A selector to restrict the list of returned objects by their labels. Defaults to everything.

-

false

+

PathParameter

+

path

+

path to the resource

+

true

string

- -

QueryParameter

-

fieldSelector

-

A selector to restrict the list of returned objects by their fields. Defaults to everything.

-

false

-

string

- - - -

QueryParameter

-

watch

-

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

-

false

-

boolean

- - - -

QueryParameter

-

resourceVersion

-

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

-

false

-

string

- - - -

QueryParameter

-

timeoutSeconds

-

Timeout for the list/watch call.

-

false

-

integer (int32)

- - @@ -25605,9 +25595,9 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } -

200

+

default

success

-

v1.ReplicationControllerList

+

string

@@ -25628,13 +25618,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
  • -

    application/json

    -
  • -
  • -

    application/yaml

    -
  • -
  • -

    application/vnd.kubernetes.protobuf

    +

    /

@@ -25651,10 +25635,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind ResourceQuota

+

list or watch objects of kind ReplicationController

-
GET /api/v1/resourcequotas
+
GET /api/v1/replicationcontrollers
@@ -25750,7 +25734,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.ResourceQuotaList

+

v1.ReplicationControllerList

@@ -25794,10 +25778,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind Secret

+

list or watch objects of kind ResourceQuota

-
GET /api/v1/secrets
+
GET /api/v1/resourcequotas
@@ -25893,7 +25877,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.SecretList

+

v1.ResourceQuotaList

@@ -25937,10 +25921,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind ServiceAccount

+

list or watch objects of kind Secret

-
GET /api/v1/serviceaccounts
+
GET /api/v1/secrets
@@ -26036,7 +26020,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.ServiceAccountList

+

v1.SecretList

@@ -26080,10 +26064,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

list or watch objects of kind Service

+

list or watch objects of kind ServiceAccount

-
GET /api/v1/services
+
GET /api/v1/serviceaccounts
@@ -26179,7 +26163,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

v1.ServiceList

+

v1.ServiceAccountList

@@ -26223,10 +26207,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
-

watch individual changes to a list of ConfigMap

+

list or watch objects of kind Service

-
GET /api/v1/watch/configmaps
+
GET /api/v1/services
@@ -26322,7 +26306,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

200

success

-

*versioned.Event

+

v1.ServiceList

@@ -26346,14 +26330,11 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }

application/json

  • -

    application/json;stream=watch

    +

    application/yaml

  • application/vnd.kubernetes.protobuf

  • -
  • -

    application/vnd.kubernetes.protobuf;stream=watch

    -
  • @@ -26369,10 +26350,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of Endpoints

    +

    watch individual changes to a list of ConfigMap

    -
    GET /api/v1/watch/endpoints
    +
    GET /api/v1/watch/configmaps
    @@ -26515,10 +26496,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of Event

    +

    watch individual changes to a list of Endpoints

    -
    GET /api/v1/watch/events
    +
    GET /api/v1/watch/endpoints
    @@ -26661,10 +26642,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of LimitRange

    +

    watch individual changes to a list of Event

    -
    GET /api/v1/watch/limitranges
    +
    GET /api/v1/watch/events
    @@ -26807,10 +26788,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of Namespace

    +

    watch individual changes to a list of LimitRange

    -
    GET /api/v1/watch/namespaces
    +
    GET /api/v1/watch/limitranges
    @@ -26953,6 +26934,152 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    +

    watch individual changes to a list of Namespace

    +
    +
    +
    GET /api/v1/watch/namespaces
    +
    +
    +
    +

    Parameters

    + ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TypeNameDescriptionRequiredSchemaDefault

    QueryParameter

    pretty

    If true, then the output is pretty printed.

    false

    string

    QueryParameter

    labelSelector

    A selector to restrict the list of returned objects by their labels. Defaults to everything.

    false

    string

    QueryParameter

    fieldSelector

    A selector to restrict the list of returned objects by their fields. Defaults to everything.

    false

    string

    QueryParameter

    watch

    Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

    false

    boolean

    QueryParameter

    resourceVersion

    When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

    false

    string

    QueryParameter

    timeoutSeconds

    Timeout for the list/watch call.

    false

    integer (int32)

    + +
    +
    +

    Responses

    + +++++ + + + + + + + + + + + + + + +
    HTTP CodeDescriptionSchema

    200

    success

    *versioned.Event

    + +
    +
    +

    Consumes

    +
    +
      +
    • +

      /

      +
    • +
    +
    +
    +
    +

    Produces

    +
    +
      +
    • +

      application/json

      +
    • +
    • +

      application/json;stream=watch

      +
    • +
    • +

      application/vnd.kubernetes.protobuf

      +
    • +
    • +

      application/vnd.kubernetes.protobuf;stream=watch

      +
    • +
    +
    +
    +
    +

    Tags

    +
    +
      +
    • +

      apiv1

      +
    • +
    +
    +
    +
    +

    watch individual changes to a list of ConfigMap

    @@ -26960,7 +27087,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27042,7 +27169,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -27067,7 +27194,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -27077,7 +27204,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -27096,7 +27223,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -27114,7 +27241,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27204,7 +27331,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -27229,7 +27356,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -27239,7 +27366,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -27258,7 +27385,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -27276,7 +27403,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27358,7 +27485,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -27383,7 +27510,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -27393,7 +27520,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -27412,7 +27539,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -27430,7 +27557,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27520,7 +27647,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -27545,7 +27672,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -27555,7 +27682,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -27574,7 +27701,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -27592,7 +27719,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27674,7 +27801,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -27699,7 +27826,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -27709,7 +27836,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -27728,7 +27855,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -27746,7 +27873,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27836,7 +27963,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -27861,7 +27988,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -27871,7 +27998,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -27890,7 +28017,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -27908,7 +28035,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -27990,7 +28117,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28015,7 +28142,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28025,7 +28152,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28044,7 +28171,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -28062,7 +28189,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -28152,7 +28279,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28177,7 +28304,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28187,7 +28314,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28206,7 +28333,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -28224,7 +28351,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -28306,7 +28433,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28331,7 +28458,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28341,7 +28468,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28360,7 +28487,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -28378,7 +28505,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -28468,7 +28595,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28493,7 +28620,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28503,7 +28630,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28522,7 +28649,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -28540,7 +28667,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -28622,7 +28749,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28647,7 +28774,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28657,7 +28784,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28676,7 +28803,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -28694,7 +28821,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -28784,7 +28911,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28809,7 +28936,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28819,7 +28946,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28838,7 +28965,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -28856,7 +28983,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -28938,7 +29065,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -28963,7 +29090,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -28973,7 +29100,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -28992,7 +29119,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29010,7 +29137,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -29100,7 +29227,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -29125,7 +29252,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -29135,7 +29262,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -29154,7 +29281,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29172,7 +29299,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -29254,7 +29381,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -29279,7 +29406,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -29289,7 +29416,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -29308,7 +29435,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29326,7 +29453,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -29416,7 +29543,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -29441,7 +29568,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -29451,7 +29578,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -29470,7 +29597,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29488,7 +29615,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -29570,7 +29697,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -29595,7 +29722,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -29605,7 +29732,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -29624,7 +29751,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29642,7 +29769,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -29732,7 +29859,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -29757,7 +29884,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -29767,7 +29894,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -29786,7 +29913,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29804,7 +29931,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -29886,7 +30013,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -29911,7 +30038,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -29921,7 +30048,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -29940,7 +30067,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -29958,7 +30085,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30048,7 +30175,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -30073,7 +30200,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -30083,7 +30210,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -30102,7 +30229,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -30120,7 +30247,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30202,7 +30329,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -30227,7 +30354,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -30237,7 +30364,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -30256,7 +30383,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -30274,7 +30401,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30364,7 +30491,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -30389,7 +30516,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -30399,7 +30526,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -30418,7 +30545,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -30436,7 +30563,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30518,7 +30645,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -30543,7 +30670,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -30553,7 +30680,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -30572,7 +30699,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -30590,7 +30717,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30680,7 +30807,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -30705,7 +30832,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -30715,7 +30842,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -30734,7 +30861,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -30752,7 +30879,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30834,7 +30961,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -30859,7 +30986,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -30869,7 +30996,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -30888,7 +31015,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -30906,7 +31033,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -30980,7 +31107,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Responses

    +

    Responses

    @@ -31005,7 +31132,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Consumes

    +

    Consumes

    • @@ -31015,7 +31142,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Produces

    +

    Produces

    • @@ -31034,7 +31161,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Tags

    +

    Tags

    • @@ -31052,7 +31179,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -31132,152 +31259,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -
    -
    -

    Responses

    - ----- - - - - - - - - - - - - - - -
    HTTP CodeDescriptionSchema

    200

    success

    *versioned.Event

    - -
    -
    -

    Consumes

    -
    -
      -
    • -

      /

      -
    • -
    -
    -
    -
    -

    Produces

    -
    -
      -
    • -

      application/json

      -
    • -
    • -

      application/json;stream=watch

      -
    • -
    • -

      application/vnd.kubernetes.protobuf

      -
    • -
    • -

      application/vnd.kubernetes.protobuf;stream=watch

      -
    • -
    -
    -
    -
    -

    Tags

    -
    -
      -
    • -

      apiv1

      -
    • -
    -
    -
    -
    -
    -

    watch individual changes to a list of PersistentVolumeClaim

    -
    -
    -
    GET /api/v1/watch/persistentvolumeclaims
    -
    -
    -
    -

    Parameters

    - -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TypeNameDescriptionRequiredSchemaDefault

    QueryParameter

    pretty

    If true, then the output is pretty printed.

    false

    string

    QueryParameter

    labelSelector

    A selector to restrict the list of returned objects by their labels. Defaults to everything.

    false

    string

    QueryParameter

    fieldSelector

    A selector to restrict the list of returned objects by their fields. Defaults to everything.

    false

    string

    QueryParameter

    watch

    Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

    false

    boolean

    QueryParameter

    resourceVersion

    When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

    false

    string

    QueryParameter

    timeoutSeconds

    Timeout for the list/watch call.

    false

    integer (int32)

    -

    Responses

    @@ -31345,10 +31326,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of PersistentVolume

    +

    watch individual changes to a list of PersistentVolumeClaim

    -
    GET /api/v1/watch/persistentvolumes
    +
    GET /api/v1/watch/persistentvolumeclaims
    @@ -31491,6 +31472,152 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    +

    watch individual changes to a list of PersistentVolume

    +
    +
    +
    GET /api/v1/watch/persistentvolumes
    +
    +
    +
    +

    Parameters

    + ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TypeNameDescriptionRequiredSchemaDefault

    QueryParameter

    pretty

    If true, then the output is pretty printed.

    false

    string

    QueryParameter

    labelSelector

    A selector to restrict the list of returned objects by their labels. Defaults to everything.

    false

    string

    QueryParameter

    fieldSelector

    A selector to restrict the list of returned objects by their fields. Defaults to everything.

    false

    string

    QueryParameter

    watch

    Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

    false

    boolean

    QueryParameter

    resourceVersion

    When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

    false

    string

    QueryParameter

    timeoutSeconds

    Timeout for the list/watch call.

    false

    integer (int32)

    + +
    +
    +

    Responses

    + +++++ + + + + + + + + + + + + + + +
    HTTP CodeDescriptionSchema

    200

    success

    *versioned.Event

    + +
    +
    +

    Consumes

    +
    +
      +
    • +

      /

      +
    • +
    +
    +
    +
    +

    Produces

    +
    +
      +
    • +

      application/json

      +
    • +
    • +

      application/json;stream=watch

      +
    • +
    • +

      application/vnd.kubernetes.protobuf

      +
    • +
    • +

      application/vnd.kubernetes.protobuf;stream=watch

      +
    • +
    +
    +
    +
    +

    Tags

    +
    +
      +
    • +

      apiv1

      +
    • +
    +
    +
    +
    +

    watch changes to an object of kind PersistentVolume

    @@ -31498,7 +31625,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    Parameters

    +

    Parameters

    @@ -31578,152 +31705,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -
    -
    -

    Responses

    - ----- - - - - - - - - - - - - - - -
    HTTP CodeDescriptionSchema

    200

    success

    *versioned.Event

    - -
    -
    -

    Consumes

    -
    -
      -
    • -

      /

      -
    • -
    -
    -
    -
    -

    Produces

    -
    -
      -
    • -

      application/json

      -
    • -
    • -

      application/json;stream=watch

      -
    • -
    • -

      application/vnd.kubernetes.protobuf

      -
    • -
    • -

      application/vnd.kubernetes.protobuf;stream=watch

      -
    • -
    -
    -
    -
    -

    Tags

    -
    -
      -
    • -

      apiv1

      -
    • -
    -
    -
    -
    -
    -

    watch individual changes to a list of Pod

    -
    -
    -
    GET /api/v1/watch/pods
    -
    -
    -
    -

    Parameters

    - -------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TypeNameDescriptionRequiredSchemaDefault

    QueryParameter

    pretty

    If true, then the output is pretty printed.

    false

    string

    QueryParameter

    labelSelector

    A selector to restrict the list of returned objects by their labels. Defaults to everything.

    false

    string

    QueryParameter

    fieldSelector

    A selector to restrict the list of returned objects by their fields. Defaults to everything.

    false

    string

    QueryParameter

    watch

    Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

    false

    boolean

    QueryParameter

    resourceVersion

    When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

    false

    string

    QueryParameter

    timeoutSeconds

    Timeout for the list/watch call.

    false

    integer (int32)

    -

    Responses

    @@ -31791,10 +31772,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of PodTemplate

    +

    watch individual changes to a list of Pod

    -
    GET /api/v1/watch/podtemplates
    +
    GET /api/v1/watch/pods
    @@ -31937,10 +31918,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of ReplicationController

    +

    watch individual changes to a list of PodTemplate

    -
    GET /api/v1/watch/replicationcontrollers
    +
    GET /api/v1/watch/podtemplates
    @@ -32083,10 +32064,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of ResourceQuota

    +

    watch individual changes to a list of ReplicationController

    -
    GET /api/v1/watch/resourcequotas
    +
    GET /api/v1/watch/replicationcontrollers
    @@ -32229,10 +32210,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of Secret

    +

    watch individual changes to a list of ResourceQuota

    -
    GET /api/v1/watch/secrets
    +
    GET /api/v1/watch/resourcequotas
    @@ -32375,10 +32356,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of ServiceAccount

    +

    watch individual changes to a list of Secret

    -
    GET /api/v1/watch/serviceaccounts
    +
    GET /api/v1/watch/secrets
    @@ -32521,10 +32502,10 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    -

    watch individual changes to a list of Service

    +

    watch individual changes to a list of ServiceAccount

    -
    GET /api/v1/watch/services
    +
    GET /api/v1/watch/serviceaccounts
    @@ -32666,12 +32647,158 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
    +
    +

    watch individual changes to a list of Service

    +
    +
    +
    GET /api/v1/watch/services
    +
    +
    +
    +

    Parameters

    + ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TypeNameDescriptionRequiredSchemaDefault

    QueryParameter

    pretty

    If true, then the output is pretty printed.

    false

    string

    QueryParameter

    labelSelector

    A selector to restrict the list of returned objects by their labels. Defaults to everything.

    false

    string

    QueryParameter

    fieldSelector

    A selector to restrict the list of returned objects by their fields. Defaults to everything.

    false

    string

    QueryParameter

    watch

    Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

    false

    boolean

    QueryParameter

    resourceVersion

    When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.

    false

    string

    QueryParameter

    timeoutSeconds

    Timeout for the list/watch call.

    false

    integer (int32)

    + +
    +
    +

    Responses

    + +++++ + + + + + + + + + + + + + + +
    HTTP CodeDescriptionSchema

    200

    success

    *versioned.Event

    + +
    +
    +

    Consumes

    +
    +
      +
    • +

      /

      +
    • +
    +
    +
    +
    +

    Produces

    +
    +
      +
    • +

      application/json

      +
    • +
    • +

      application/json;stream=watch

      +
    • +
    • +

      application/vnd.kubernetes.protobuf

      +
    • +
    • +

      application/vnd.kubernetes.protobuf;stream=watch

      +
    • +
    +
    +
    +
    +

    Tags

    +
    +
      +
    • +

      apiv1

      +
    • +
    +
    +
    +
    diff --git a/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go b/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go index b12ce0fd263..4711780e339 100644 --- a/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go +++ b/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go @@ -27,6 +27,16 @@ package v1alpha1 // Those methods can be generated by using hack/update-generated-swagger-docs.sh // AUTO-GENERATED FUNCTIONS START HERE +var map_Eviction = map[string]string{ + "": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/foo/evictions.", + "metadata": "ObjectMeta describes the pod that is being evicted.", + "deleteOptions": "DeleteOptions may be provided", +} + +func (Eviction) SwaggerDoc() map[string]string { + return map_Eviction +} + var map_PodDisruptionBudget = map[string]string{ "": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", "spec": "Specification of the desired behavior of the PodDisruptionBudget.",