mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Merge pull request #11870 from petergood/endpointslice-conditions
Add additional EndpointSlice conditions
This commit is contained in:
commit
8e21975949
|
@ -259,6 +259,8 @@ const (
|
||||||
endpointSlicePortLabel = metaLabelPrefix + "endpointslice_port"
|
endpointSlicePortLabel = metaLabelPrefix + "endpointslice_port"
|
||||||
endpointSlicePortAppProtocol = metaLabelPrefix + "endpointslice_port_app_protocol"
|
endpointSlicePortAppProtocol = metaLabelPrefix + "endpointslice_port_app_protocol"
|
||||||
endpointSliceEndpointConditionsReadyLabel = metaLabelPrefix + "endpointslice_endpoint_conditions_ready"
|
endpointSliceEndpointConditionsReadyLabel = metaLabelPrefix + "endpointslice_endpoint_conditions_ready"
|
||||||
|
endpointSliceEndpointConditionsServingLabel = metaLabelPrefix + "endpointslice_endpoint_conditions_serving"
|
||||||
|
endpointSliceEndpointConditionsTerminatingLabel = metaLabelPrefix + "endpointslice_endpoint_conditions_terminating"
|
||||||
endpointSliceEndpointHostnameLabel = metaLabelPrefix + "endpointslice_endpoint_hostname"
|
endpointSliceEndpointHostnameLabel = metaLabelPrefix + "endpointslice_endpoint_hostname"
|
||||||
endpointSliceAddressTargetKindLabel = metaLabelPrefix + "endpointslice_address_target_kind"
|
endpointSliceAddressTargetKindLabel = metaLabelPrefix + "endpointslice_address_target_kind"
|
||||||
endpointSliceAddressTargetNameLabel = metaLabelPrefix + "endpointslice_address_target_name"
|
endpointSliceAddressTargetNameLabel = metaLabelPrefix + "endpointslice_address_target_name"
|
||||||
|
@ -313,6 +315,14 @@ func (e *EndpointSlice) buildEndpointSlice(eps endpointSliceAdaptor) *targetgrou
|
||||||
target[endpointSliceEndpointConditionsReadyLabel] = lv(strconv.FormatBool(*ep.conditions().ready()))
|
target[endpointSliceEndpointConditionsReadyLabel] = lv(strconv.FormatBool(*ep.conditions().ready()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ep.conditions().serving() != nil {
|
||||||
|
target[endpointSliceEndpointConditionsServingLabel] = lv(strconv.FormatBool(*ep.conditions().serving()))
|
||||||
|
}
|
||||||
|
|
||||||
|
if ep.conditions().terminating() != nil {
|
||||||
|
target[endpointSliceEndpointConditionsTerminatingLabel] = lv(strconv.FormatBool(*ep.conditions().terminating()))
|
||||||
|
}
|
||||||
|
|
||||||
if ep.hostname() != nil {
|
if ep.hostname() != nil {
|
||||||
target[endpointSliceEndpointHostnameLabel] = lv(*ep.hostname())
|
target[endpointSliceEndpointHostnameLabel] = lv(*ep.hostname())
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,8 @@ type endpointSliceEndpointAdaptor interface {
|
||||||
|
|
||||||
type endpointSliceEndpointConditionsAdaptor interface {
|
type endpointSliceEndpointConditionsAdaptor interface {
|
||||||
ready() *bool
|
ready() *bool
|
||||||
|
serving() *bool
|
||||||
|
terminating() *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adaptor for k8s.io/api/discovery/v1
|
// Adaptor for k8s.io/api/discovery/v1
|
||||||
|
@ -193,6 +195,14 @@ func (e *endpointSliceEndpointConditionsAdaptorV1) ready() *bool {
|
||||||
return e.endpointConditions.Ready
|
return e.endpointConditions.Ready
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e *endpointSliceEndpointConditionsAdaptorV1) serving() *bool {
|
||||||
|
return e.endpointConditions.Serving
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *endpointSliceEndpointConditionsAdaptorV1) terminating() *bool {
|
||||||
|
return e.endpointConditions.Terminating
|
||||||
|
}
|
||||||
|
|
||||||
type endpointSliceEndpointAdaptorV1beta1 struct {
|
type endpointSliceEndpointAdaptorV1beta1 struct {
|
||||||
endpoint v1beta1.Endpoint
|
endpoint v1beta1.Endpoint
|
||||||
}
|
}
|
||||||
|
@ -237,6 +247,14 @@ func (e *endpointSliceEndpointConditionsAdaptorV1beta1) ready() *bool {
|
||||||
return e.endpointConditions.Ready
|
return e.endpointConditions.Ready
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e *endpointSliceEndpointConditionsAdaptorV1beta1) serving() *bool {
|
||||||
|
return e.endpointConditions.Serving
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *endpointSliceEndpointConditionsAdaptorV1beta1) terminating() *bool {
|
||||||
|
return e.endpointConditions.Terminating
|
||||||
|
}
|
||||||
|
|
||||||
type endpointSlicePortAdaptorV1 struct {
|
type endpointSlicePortAdaptorV1 struct {
|
||||||
endpointPort v1.EndpointPort
|
endpointPort v1.EndpointPort
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,8 @@ func Test_EndpointSliceAdaptor_v1(t *testing.T) {
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Addresses, endpointAdaptor.addresses())
|
require.Equal(t, endpointSlice.Endpoints[i].Addresses, endpointAdaptor.addresses())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Hostname, endpointAdaptor.hostname())
|
require.Equal(t, endpointSlice.Endpoints[i].Hostname, endpointAdaptor.hostname())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Ready, endpointAdaptor.conditions().ready())
|
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Ready, endpointAdaptor.conditions().ready())
|
||||||
|
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Serving, endpointAdaptor.conditions().serving())
|
||||||
|
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Terminating, endpointAdaptor.conditions().terminating())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].TargetRef, endpointAdaptor.targetRef())
|
require.Equal(t, endpointSlice.Endpoints[i].TargetRef, endpointAdaptor.targetRef())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].DeprecatedTopology, endpointAdaptor.topology())
|
require.Equal(t, endpointSlice.Endpoints[i].DeprecatedTopology, endpointAdaptor.topology())
|
||||||
}
|
}
|
||||||
|
@ -61,6 +63,8 @@ func Test_EndpointSliceAdaptor_v1beta1(t *testing.T) {
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Addresses, endpointAdaptor.addresses())
|
require.Equal(t, endpointSlice.Endpoints[i].Addresses, endpointAdaptor.addresses())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Hostname, endpointAdaptor.hostname())
|
require.Equal(t, endpointSlice.Endpoints[i].Hostname, endpointAdaptor.hostname())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Ready, endpointAdaptor.conditions().ready())
|
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Ready, endpointAdaptor.conditions().ready())
|
||||||
|
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Serving, endpointAdaptor.conditions().serving())
|
||||||
|
require.Equal(t, endpointSlice.Endpoints[i].Conditions.Terminating, endpointAdaptor.conditions().terminating())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].TargetRef, endpointAdaptor.targetRef())
|
require.Equal(t, endpointSlice.Endpoints[i].TargetRef, endpointAdaptor.targetRef())
|
||||||
require.Equal(t, endpointSlice.Endpoints[i].Topology, endpointAdaptor.topology())
|
require.Equal(t, endpointSlice.Endpoints[i].Topology, endpointAdaptor.topology())
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,23 +64,31 @@ func makeEndpointSliceV1() *v1.EndpointSlice {
|
||||||
},
|
},
|
||||||
Endpoints: []v1.Endpoint{
|
Endpoints: []v1.Endpoint{
|
||||||
{
|
{
|
||||||
Addresses: []string{"1.2.3.4"},
|
Addresses: []string{"1.2.3.4"},
|
||||||
Conditions: v1.EndpointConditions{Ready: boolptr(true)},
|
Conditions: v1.EndpointConditions{
|
||||||
Hostname: strptr("testendpoint1"),
|
Ready: boolptr(true),
|
||||||
TargetRef: &corev1.ObjectReference{},
|
Serving: boolptr(true),
|
||||||
NodeName: strptr("foobar"),
|
Terminating: boolptr(false),
|
||||||
|
},
|
||||||
|
Hostname: strptr("testendpoint1"),
|
||||||
|
TargetRef: &corev1.ObjectReference{},
|
||||||
|
NodeName: strptr("foobar"),
|
||||||
DeprecatedTopology: map[string]string{
|
DeprecatedTopology: map[string]string{
|
||||||
"topology": "value",
|
"topology": "value",
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
Addresses: []string{"2.3.4.5"},
|
Addresses: []string{"2.3.4.5"},
|
||||||
Conditions: v1.EndpointConditions{
|
Conditions: v1.EndpointConditions{
|
||||||
Ready: boolptr(true),
|
Ready: boolptr(true),
|
||||||
|
Serving: boolptr(true),
|
||||||
|
Terminating: boolptr(false),
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
Addresses: []string{"3.4.5.6"},
|
Addresses: []string{"3.4.5.6"},
|
||||||
Conditions: v1.EndpointConditions{
|
Conditions: v1.EndpointConditions{
|
||||||
Ready: boolptr(false),
|
Ready: boolptr(false),
|
||||||
|
Serving: boolptr(true),
|
||||||
|
Terminating: boolptr(true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -111,12 +119,16 @@ func makeEndpointSliceV1beta1() *v1beta1.EndpointSlice {
|
||||||
}, {
|
}, {
|
||||||
Addresses: []string{"2.3.4.5"},
|
Addresses: []string{"2.3.4.5"},
|
||||||
Conditions: v1beta1.EndpointConditions{
|
Conditions: v1beta1.EndpointConditions{
|
||||||
Ready: boolptr(true),
|
Ready: boolptr(true),
|
||||||
|
Serving: boolptr(true),
|
||||||
|
Terminating: boolptr(false),
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
Addresses: []string{"3.4.5.6"},
|
Addresses: []string{"3.4.5.6"},
|
||||||
Conditions: v1beta1.EndpointConditions{
|
Conditions: v1beta1.EndpointConditions{
|
||||||
Ready: boolptr(false),
|
Ready: boolptr(false),
|
||||||
|
Serving: boolptr(true),
|
||||||
|
Terminating: boolptr(true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -141,6 +153,8 @@ func TestEndpointSliceDiscoveryBeforeRun(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -151,19 +165,23 @@ func TestEndpointSliceDiscoveryBeforeRun(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -199,17 +217,21 @@ func TestEndpointSliceDiscoveryBeforeRunV1beta1(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -367,6 +389,8 @@ func TestEndpointSliceDiscoveryDelete(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -377,19 +401,23 @@ func TestEndpointSliceDiscoveryDelete(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: map[model.LabelName]model.LabelValue{
|
Labels: map[model.LabelName]model.LabelValue{
|
||||||
|
@ -445,6 +473,8 @@ func TestEndpointSliceDiscoveryUpdate(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -455,19 +485,23 @@ func TestEndpointSliceDiscoveryUpdate(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -512,6 +546,8 @@ func TestEndpointSliceDiscoveryEmptyEndpoints(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -522,19 +558,23 @@ func TestEndpointSliceDiscoveryEmptyEndpoints(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -574,6 +614,8 @@ func TestEndpointSliceDiscoveryWithService(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -584,19 +626,23 @@ func TestEndpointSliceDiscoveryWithService(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -652,6 +698,8 @@ func TestEndpointSliceDiscoveryWithServiceUpdate(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -662,19 +710,23 @@ func TestEndpointSliceDiscoveryWithServiceUpdate(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -719,6 +771,8 @@ func TestEndpointsSlicesDiscoveryWithNodeMetadata(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -732,19 +786,23 @@ func TestEndpointsSlicesDiscoveryWithNodeMetadata(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -792,6 +850,8 @@ func TestEndpointsSlicesDiscoveryWithUpdatedNodeMetadata(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -805,19 +865,23 @@ func TestEndpointsSlicesDiscoveryWithUpdatedNodeMetadata(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -913,6 +977,8 @@ func TestEndpointSliceDiscoveryNamespaces(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -923,19 +989,23 @@ func TestEndpointSliceDiscoveryNamespaces(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
@ -1039,6 +1109,8 @@ func TestEndpointSliceDiscoveryOwnNamespace(t *testing.T) {
|
||||||
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
"__meta_kubernetes_endpointslice_address_target_kind": "",
|
||||||
"__meta_kubernetes_endpointslice_address_target_name": "",
|
"__meta_kubernetes_endpointslice_address_target_name": "",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
"__meta_kubernetes_endpointslice_endpoint_hostname": "testendpoint1",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
"__meta_kubernetes_endpointslice_endpoint_topology_present_topology": "true",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
"__meta_kubernetes_endpointslice_endpoint_topology_topology": "value",
|
||||||
|
@ -1049,19 +1121,23 @@ func TestEndpointSliceDiscoveryOwnNamespace(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "2.3.4.5:9000",
|
"__address__": "2.3.4.5:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__address__": "3.4.5.6:9000",
|
"__address__": "3.4.5.6:9000",
|
||||||
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_ready": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_serving": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: model.LabelSet{
|
Labels: model.LabelSet{
|
||||||
|
|
|
@ -1910,6 +1910,8 @@ Available meta labels:
|
||||||
* `__meta_kubernetes_endpointslice_address_target_name`: Name of referenced object.
|
* `__meta_kubernetes_endpointslice_address_target_name`: Name of referenced object.
|
||||||
* `__meta_kubernetes_endpointslice_address_type`: The ip protocol family of the address of the target.
|
* `__meta_kubernetes_endpointslice_address_type`: The ip protocol family of the address of the target.
|
||||||
* `__meta_kubernetes_endpointslice_endpoint_conditions_ready`: Set to `true` or `false` for the referenced endpoint's ready state.
|
* `__meta_kubernetes_endpointslice_endpoint_conditions_ready`: Set to `true` or `false` for the referenced endpoint's ready state.
|
||||||
|
* `__meta_kubernetes_endpointslice_endpoint_conditions_serving`: Set to `true` or `false` for the referenced endpoint's serving state.
|
||||||
|
* `__meta_kubernetes_endpointslice_endpoint_conditions_terminating`: Set to `true` or `false` for the referenced endpoint's terminating state.
|
||||||
* `__meta_kubernetes_endpointslice_endpoint_topology_kubernetes_io_hostname`: Name of the node hosting the referenced endpoint.
|
* `__meta_kubernetes_endpointslice_endpoint_topology_kubernetes_io_hostname`: Name of the node hosting the referenced endpoint.
|
||||||
* `__meta_kubernetes_endpointslice_endpoint_topology_present_kubernetes_io_hostname`: Flag that shows if the referenced object has a kubernetes.io/hostname annotation.
|
* `__meta_kubernetes_endpointslice_endpoint_topology_present_kubernetes_io_hostname`: Flag that shows if the referenced object has a kubernetes.io/hostname annotation.
|
||||||
* `__meta_kubernetes_endpointslice_port`: Port of the referenced endpoint.
|
* `__meta_kubernetes_endpointslice_port`: Port of the referenced endpoint.
|
||||||
|
|
Loading…
Reference in a new issue