endpointslice API: rename 'accepting' condition to 'serving' condition

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
Andrew Sy Kim 2020-10-30 22:44:46 -04:00
parent 17cf1b4415
commit 7cf19e5fb7
21 changed files with 199 additions and 198 deletions

View File

@ -10913,14 +10913,14 @@
"io.k8s.api.discovery.v1beta1.EndpointConditions": {
"description": "EndpointConditions represents the current condition of an endpoint.",
"properties": {
"accepting": {
"description": "accepting is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"type": "boolean"
},
"ready": {
"description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints.",
"type": "boolean"
},
"serving": {
"description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"type": "boolean"
},
"terminating": {
"description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
"type": "boolean"

View File

@ -118,11 +118,11 @@ type EndpointConditions struct {
// "true" for terminating endpoints.
Ready *bool
// accepting is identical to ready except that it is set regardless of the terminating
// serving is identical to ready except that it is set regardless of the terminating
// state of endpoints. This condition should be set to true for a ready endpoint that
// is terminating. If nil, consumers should defer to the ready condition.
// +optional
Accepting *bool
Serving *bool
// terminating indicates that this endpoint is terminating. A nil value indicates an
// unknown state. Consumers should interpret this unknown state to mean that the

View File

@ -125,7 +125,7 @@ func Convert_discovery_Endpoint_To_v1alpha1_Endpoint(in *discovery.Endpoint, out
func autoConvert_v1alpha1_EndpointConditions_To_discovery_EndpointConditions(in *v1alpha1.EndpointConditions, out *discovery.EndpointConditions, s conversion.Scope) error {
out.Ready = (*bool)(unsafe.Pointer(in.Ready))
out.Accepting = (*bool)(unsafe.Pointer(in.Accepting))
out.Serving = (*bool)(unsafe.Pointer(in.Serving))
out.Terminating = (*bool)(unsafe.Pointer(in.Terminating))
return nil
}
@ -137,7 +137,7 @@ func Convert_v1alpha1_EndpointConditions_To_discovery_EndpointConditions(in *v1a
func autoConvert_discovery_EndpointConditions_To_v1alpha1_EndpointConditions(in *discovery.EndpointConditions, out *v1alpha1.EndpointConditions, s conversion.Scope) error {
out.Ready = (*bool)(unsafe.Pointer(in.Ready))
out.Accepting = (*bool)(unsafe.Pointer(in.Accepting))
out.Serving = (*bool)(unsafe.Pointer(in.Serving))
out.Terminating = (*bool)(unsafe.Pointer(in.Terminating))
return nil
}

View File

@ -125,7 +125,7 @@ func Convert_discovery_Endpoint_To_v1beta1_Endpoint(in *discovery.Endpoint, out
func autoConvert_v1beta1_EndpointConditions_To_discovery_EndpointConditions(in *v1beta1.EndpointConditions, out *discovery.EndpointConditions, s conversion.Scope) error {
out.Ready = (*bool)(unsafe.Pointer(in.Ready))
out.Accepting = (*bool)(unsafe.Pointer(in.Accepting))
out.Serving = (*bool)(unsafe.Pointer(in.Serving))
out.Terminating = (*bool)(unsafe.Pointer(in.Terminating))
return nil
}
@ -137,7 +137,7 @@ func Convert_v1beta1_EndpointConditions_To_discovery_EndpointConditions(in *v1be
func autoConvert_discovery_EndpointConditions_To_v1beta1_EndpointConditions(in *discovery.EndpointConditions, out *v1beta1.EndpointConditions, s conversion.Scope) error {
out.Ready = (*bool)(unsafe.Pointer(in.Ready))
out.Accepting = (*bool)(unsafe.Pointer(in.Accepting))
out.Serving = (*bool)(unsafe.Pointer(in.Serving))
out.Terminating = (*bool)(unsafe.Pointer(in.Terminating))
return nil
}

View File

@ -72,8 +72,8 @@ func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
*out = new(bool)
**out = **in
}
if in.Accepting != nil {
in, out := &in.Accepting, &out.Accepting
if in.Serving != nil {
in, out := &in.Serving, &out.Serving
*out = new(bool)
**out = **in
}

View File

@ -664,7 +664,7 @@ func TestSyncService(t *testing.T) {
{
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(true),
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
Addresses: []string{"10.0.0.1"},
@ -674,7 +674,7 @@ func TestSyncService(t *testing.T) {
{
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(false),
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
Addresses: []string{"10.0.0.2"},
@ -884,7 +884,7 @@ func TestSyncService(t *testing.T) {
{
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(true),
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
Addresses: []string{"10.0.0.1"},
@ -894,7 +894,7 @@ func TestSyncService(t *testing.T) {
{
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(false),
Accepting: utilpointer.BoolPtr(false),
Serving: utilpointer.BoolPtr(false),
Terminating: utilpointer.BoolPtr(true),
},
Addresses: []string{"10.0.0.2"},

View File

@ -178,7 +178,7 @@ func TestReconcile1Pod(t *testing.T) {
Addresses: []string{"1.2.3.4"},
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(true),
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
Topology: map[string]string{

View File

@ -62,11 +62,11 @@ func podToEndpoint(pod *corev1.Pod, node *corev1.Node, service *corev1.Service,
}
}
accepting := podutil.IsPodReady(pod)
serving := podutil.IsPodReady(pod)
terminating := pod.DeletionTimestamp != nil
// For compatibility reasons, "ready" should never be "true" if a pod is terminatng, unless
// publishNotReadyAddresses was set.
ready := service.Spec.PublishNotReadyAddresses || (accepting && !terminating)
ready := service.Spec.PublishNotReadyAddresses || (serving && !terminating)
ep := discovery.Endpoint{
Addresses: getEndpointAddresses(pod.Status, service, addressType),
Conditions: discovery.EndpointConditions{
@ -83,7 +83,7 @@ func podToEndpoint(pod *corev1.Pod, node *corev1.Node, service *corev1.Service,
}
if utilfeature.DefaultFeatureGate.Enabled(features.EndpointSliceTerminatingCondition) {
ep.Conditions.Accepting = &accepting
ep.Conditions.Serving = &serving
ep.Conditions.Terminating = &terminating
}

View File

@ -396,7 +396,7 @@ func TestPodToEndpoint(t *testing.T) {
Addresses: []string{"1.2.3.5"},
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(true),
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
Topology: map[string]string{"kubernetes.io/hostname": "node-1"},
@ -438,7 +438,7 @@ func TestPodToEndpoint(t *testing.T) {
Addresses: []string{"1.2.3.5"},
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(false),
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
Topology: map[string]string{"kubernetes.io/hostname": "node-1"},
@ -480,7 +480,7 @@ func TestPodToEndpoint(t *testing.T) {
Addresses: []string{"1.2.3.5"},
Conditions: discovery.EndpointConditions{
Ready: utilpointer.BoolPtr(false),
Accepting: utilpointer.BoolPtr(false),
Serving: utilpointer.BoolPtr(false),
Terminating: utilpointer.BoolPtr(true),
},
Topology: map[string]string{"kubernetes.io/hostname": "node-1"},

View File

@ -110,9 +110,9 @@ func dropDisabledConditionsOnCreate(endpointSlice *discovery.EndpointSlice) {
return
}
// Always drop the accepting / terminating conditions on create when feature gate is disabled.
// Always drop the serving/terminating conditions on create when feature gate is disabled.
for i := range endpointSlice.Endpoints {
endpointSlice.Endpoints[i].Conditions.Accepting = nil
endpointSlice.Endpoints[i].Conditions.Serving = nil
endpointSlice.Endpoints[i].Conditions.Terminating = nil
}
}
@ -125,10 +125,10 @@ func dropDisabledConditionsOnUpdate(oldEPS, newEPS *discovery.EndpointSlice) {
return
}
// Only drop the accepting/terminating condition if the existing EndpointSlice doesn't have it set.
// Only drop the serving/terminating condition if the existing EndpointSlice doesn't have it set.
dropConditions := true
for _, ep := range oldEPS.Endpoints {
if ep.Conditions.Accepting != nil || ep.Conditions.Terminating != nil {
if ep.Conditions.Serving != nil || ep.Conditions.Terminating != nil {
dropConditions = false
break
}
@ -136,7 +136,7 @@ func dropDisabledConditionsOnUpdate(oldEPS, newEPS *discovery.EndpointSlice) {
if dropConditions {
for i := range newEPS.Endpoints {
newEPS.Endpoints[i].Conditions.Accepting = nil
newEPS.Endpoints[i].Conditions.Serving = nil
newEPS.Endpoints[i].Conditions.Terminating = nil
}
}

View File

@ -41,19 +41,19 @@ func Test_dropConditionsOnCreate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -63,19 +63,19 @@ func Test_dropConditionsOnCreate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -89,19 +89,19 @@ func Test_dropConditionsOnCreate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -111,19 +111,19 @@ func Test_dropConditionsOnCreate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -161,19 +161,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -183,19 +183,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -205,19 +205,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -231,19 +231,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -253,19 +253,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -275,19 +275,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -301,19 +301,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -323,19 +323,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -345,19 +345,19 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: nil,
Serving: nil,
Terminating: nil,
},
},
@ -371,13 +371,13 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(false),
Serving: utilpointer.BoolPtr(false),
Terminating: utilpointer.BoolPtr(false),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
@ -392,13 +392,13 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(false),
Serving: utilpointer.BoolPtr(false),
Terminating: utilpointer.BoolPtr(false),
},
},
@ -413,13 +413,13 @@ func Test_dropTerminatingConditionOnUpdate(t *testing.T) {
Endpoints: []discovery.Endpoint{
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(true),
Serving: utilpointer.BoolPtr(true),
Terminating: utilpointer.BoolPtr(true),
},
},
{
Conditions: discovery.EndpointConditions{
Accepting: utilpointer.BoolPtr(false),
Serving: utilpointer.BoolPtr(false),
Terminating: utilpointer.BoolPtr(false),
},
},

View File

@ -200,56 +200,57 @@ func init() {
}
var fileDescriptor_772f83c5b34e07a5 = []byte{
// 781 bytes of a gzipped FileDescriptorProto
// 787 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4d, 0x8f, 0xe3, 0x44,
0x10, 0x8d, 0x27, 0x63, 0xc9, 0xee, 0x6c, 0xc4, 0x6e, 0x8b, 0x43, 0x14, 0xc0, 0x8e, 0xc2, 0x81,
0x48, 0x03, 0x6d, 0x32, 0x02, 0xb4, 0x82, 0xd3, 0x18, 0x96, 0x0f, 0x89, 0x8f, 0xd0, 0xe4, 0x80,
0x10, 0x07, 0x3a, 0x76, 0xad, 0x63, 0x12, 0xbb, 0x2d, 0xbb, 0x13, 0x29, 0x37, 0x7e, 0x02, 0x17,
0xfe, 0x0d, 0x47, 0x84, 0xe6, 0xb8, 0xc7, 0x39, 0x59, 0x8c, 0xe7, 0x5f, 0xcc, 0x09, 0x75, 0xfb,
0x73, 0x08, 0xb0, 0xb9, 0x75, 0xbf, 0xae, 0xf7, 0xaa, 0x5e, 0x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, 0xad, 0x2a, 0xfe, 0x14, 0x8d, 0xeb,
0x03, 0xbb, 0xdc, 0xe6, 0x50, 0xb7, 0x39, 0xad, 0x29, 0xe3, 0xf3, 0x2e, 0x74, 0x7b, 0xf7, 0x49,
0xfb, 0x34, 0xfc, 0x3d, 0x72, 0xa0, 0x6e, 0x5c, 0x1f, 0xa6, 0xde, 0xdb, 0xb7, 0xf7, 0xdc, 0xdb,
0xe0, 0x61, 0x5d, 0xcc, 0x69, 0x10, 0x49, 0x3b, 0x31, 0x7c, 0x81, 0x46, 0x7a, 0x9c, 0x72, 0x32,
0x34, 0xaa, 0xa7, 0x7b, 0xaa, 0xea, 0x1f, 0x11, 0x1c, 0xd5, 0xca, 0x23, 0xfd, 0x92, 0xb4, 0x12,
0x9a, 0xfe, 0x61, 0xa1, 0x87, 0x77, 0xa6, 0xfc, 0x55, 0x22, 0x15, 0xfe, 0x71, 0x67, 0xd2, 0x64,
0xbf, 0x49, 0x6b, 0xb6, 0x99, 0x73, 0x7b, 0x71, 0x0d, 0xd2, 0x9b, 0xf2, 0x77, 0x68, 0x94, 0x28,
0x48, 0x9b, 0xd9, 0xbc, 0xb3, 0xa7, 0x0b, 0xd3, 0x5e, 0x67, 0xe3, 0x4b, 0x2d, 0x41, 0x2b, 0xa5,
0x80, 0x5c, 0xdf, 0xb8, 0x83, 0x67, 0x37, 0xee, 0xe0, 0xf9, 0x8d, 0x3b, 0xf8, 0xa5, 0x74, 0xad,
0xeb, 0xd2, 0xb5, 0x9e, 0x95, 0xae, 0xf5, 0xbc, 0x74, 0xad, 0xbf, 0x4a, 0xd7, 0xfa, 0xed, 0x85,
0x3b, 0xf8, 0xc1, 0x6e, 0x34, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x11, 0xa7, 0x0f, 0xd0,
0x06, 0x00, 0x00,
}
func (m *Endpoint) Marshal() (dAtA []byte, err error) {
@ -367,9 +368,9 @@ func (m *EndpointConditions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x18
}
if m.Accepting != nil {
if m.Serving != nil {
i--
if *m.Accepting {
if *m.Serving {
dAtA[i] = 1
} else {
dAtA[i] = 0
@ -605,7 +606,7 @@ func (m *EndpointConditions) Size() (n int) {
if m.Ready != nil {
n += 2
}
if m.Accepting != nil {
if m.Serving != nil {
n += 2
}
if m.Terminating != nil {
@ -716,7 +717,7 @@ func (this *EndpointConditions) String() string {
}
s := strings.Join([]string{`&EndpointConditions{`,
`Ready:` + valueToStringGenerated(this.Ready) + `,`,
`Accepting:` + valueToStringGenerated(this.Accepting) + `,`,
`Serving:` + valueToStringGenerated(this.Serving) + `,`,
`Terminating:` + valueToStringGenerated(this.Terminating) + `,`,
`}`,
}, "")
@ -1148,7 +1149,7 @@ func (m *EndpointConditions) Unmarshal(dAtA []byte) error {
m.Ready = &b
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Accepting", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field Serving", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
@ -1166,7 +1167,7 @@ func (m *EndpointConditions) Unmarshal(dAtA []byte) error {
}
}
b := bool(v != 0)
m.Accepting = &b
m.Serving = &b
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Terminating", wireType)

View File

@ -81,11 +81,11 @@ message EndpointConditions {
// +optional
optional bool ready = 1;
// accepting is identical to ready except that it is set regardless of the terminating
// serving is identical to ready except that it is set regardless of the terminating
// state of endpoints. This condition should be set to true for a ready endpoint that
// is terminating. If nil, consumers should defer to the ready condition.
// +optional
optional bool accepting = 2;
optional bool serving = 2;
// terminating indicates that this endpoint is terminating. A nil value indicates an
// unknown state. Consumers should interpret this unknown state to mean that the

View File

@ -120,11 +120,11 @@ type EndpointConditions struct {
// +optional
Ready *bool `json:"ready,omitempty" protobuf:"bytes,1,name=ready"`
// accepting is identical to ready except that it is set regardless of the terminating
// serving is identical to ready except that it is set regardless of the terminating
// state of endpoints. This condition should be set to true for a ready endpoint that
// is terminating. If nil, consumers should defer to the ready condition.
// +optional
Accepting *bool `json:"accepting,omitempty" protobuf:"bytes,2,name=accepting"`
Serving *bool `json:"serving,omitempty" protobuf:"bytes,2,name=serving"`
// terminating indicates that this endpoint is terminating. A nil value indicates an
// unknown state. Consumers should interpret this unknown state to mean that the

View File

@ -43,7 +43,7 @@ func (Endpoint) SwaggerDoc() map[string]string {
var map_EndpointConditions = map[string]string{
"": "EndpointConditions represents the current condition of an endpoint.",
"ready": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints.",
"accepting": "accepting is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"serving": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"terminating": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
}

View File

@ -72,8 +72,8 @@ func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
*out = new(bool)
**out = **in
}
if in.Accepting != nil {
in, out := &in.Accepting, &out.Accepting
if in.Serving != nil {
in, out := &in.Serving, &out.Serving
*out = new(bool)
**out = **in
}

View File

@ -200,56 +200,56 @@ func init() {
}
var fileDescriptor_ece80bbc872d519b = []byte{
// 778 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4f, 0x6f, 0xfb, 0x44,
0x10, 0x8d, 0x9b, 0x5a, 0xd8, 0x9b, 0x5f, 0xc4, 0xaf, 0x2b, 0x0e, 0x51, 0xa8, 0xec, 0x28, 0x48,
0x28, 0xa2, 0xaa, 0x4d, 0xaa, 0x0a, 0x55, 0x70, 0x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0xbd, 0xd7, 0x5b, 0xa7, 0xf7, 0x66, 0xeb, 0xf4, 0x7e, 0x2a, 0x1d, 0xe3, 0xae, 0x74, 0x8c,
0xd7, 0xa5, 0x63, 0xbc, 0x29, 0x1d, 0xe3, 0x8f, 0xd2, 0x31, 0x7e, 0xf9, 0xd3, 0xe9, 0x7d, 0x77,
0x56, 0x4b, 0xfe, 0x15, 0x00, 0x00, 0xff, 0xff, 0x95, 0x55, 0x4b, 0x65, 0xc8, 0x06, 0x00, 0x00,
}
func (m *Endpoint) Marshal() (dAtA []byte, err error) {
@ -367,9 +367,9 @@ func (m *EndpointConditions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x18
}
if m.Accepting != nil {
if m.Serving != nil {
i--
if *m.Accepting {
if *m.Serving {
dAtA[i] = 1
} else {
dAtA[i] = 0
@ -605,7 +605,7 @@ func (m *EndpointConditions) Size() (n int) {
if m.Ready != nil {
n += 2
}
if m.Accepting != nil {
if m.Serving != nil {
n += 2
}
if m.Terminating != nil {
@ -716,7 +716,7 @@ func (this *EndpointConditions) String() string {
}
s := strings.Join([]string{`&EndpointConditions{`,
`Ready:` + valueToStringGenerated(this.Ready) + `,`,
`Accepting:` + valueToStringGenerated(this.Accepting) + `,`,
`Serving:` + valueToStringGenerated(this.Serving) + `,`,
`Terminating:` + valueToStringGenerated(this.Terminating) + `,`,
`}`,
}, "")
@ -1148,7 +1148,7 @@ func (m *EndpointConditions) Unmarshal(dAtA []byte) error {
m.Ready = &b
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Accepting", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field Serving", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
@ -1166,7 +1166,7 @@ func (m *EndpointConditions) Unmarshal(dAtA []byte) error {
}
}
b := bool(v != 0)
m.Accepting = &b
m.Serving = &b
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Terminating", wireType)

View File

@ -81,11 +81,11 @@ message EndpointConditions {
// +optional
optional bool ready = 1;
// accepting is identical to ready except that it is set regardless of the terminating
// serving is identical to ready except that it is set regardless of the terminating
// state of endpoints. This condition should be set to true for a ready endpoint that
// is terminating. If nil, consumers should defer to the ready condition.
// +optional
optional bool accepting = 2;
optional bool serving = 2;
// terminating indicates that this endpoint is terminating. A nil value indicates an
// unknown state. Consumers should interpret this unknown state to mean that the

View File

@ -122,11 +122,11 @@ type EndpointConditions struct {
// +optional
Ready *bool `json:"ready,omitempty" protobuf:"bytes,1,name=ready"`
// accepting is identical to ready except that it is set regardless of the terminating
// serving is identical to ready except that it is set regardless of the terminating
// state of endpoints. This condition should be set to true for a ready endpoint that
// is terminating. If nil, consumers should defer to the ready condition.
// +optional
Accepting *bool `json:"accepting,omitempty" protobuf:"bytes,2,name=accepting"`
Serving *bool `json:"serving,omitempty" protobuf:"bytes,2,name=serving"`
// terminating indicates that this endpoint is terminating. A nil value indicates an
// unknown state. Consumers should interpret this unknown state to mean that the

View File

@ -43,7 +43,7 @@ func (Endpoint) SwaggerDoc() map[string]string {
var map_EndpointConditions = map[string]string{
"": "EndpointConditions represents the current condition of an endpoint.",
"ready": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints.",
"accepting": "accepting is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"serving": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.",
"terminating": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.",
}

View File

@ -72,8 +72,8 @@ func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
*out = new(bool)
**out = **in
}
if in.Accepting != nil {
in, out := &in.Accepting, &out.Accepting
if in.Serving != nil {
in, out := &in.Serving, &out.Serving
*out = new(bool)
**out = **in
}