mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-14 07:17:52 -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())
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,11 @@ 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{
|
||||||
|
Ready: boolptr(true),
|
||||||
|
Serving: boolptr(true),
|
||||||
|
Terminating: boolptr(false),
|
||||||
|
},
|
||||||
Hostname: strptr("testendpoint1"),
|
Hostname: strptr("testendpoint1"),
|
||||||
TargetRef: &corev1.ObjectReference{},
|
TargetRef: &corev1.ObjectReference{},
|
||||||
NodeName: strptr("foobar"),
|
NodeName: strptr("foobar"),
|
||||||
|
@ -76,11 +80,15 @@ func makeEndpointSliceV1() *v1.EndpointSlice {
|
||||||
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),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -112,11 +120,15 @@ 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",
|
||||||
|
@ -152,6 +166,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -160,6 +176,8 @@ func TestEndpointSliceDiscoveryBeforeRun(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -200,6 +218,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -207,6 +227,8 @@ func TestEndpointSliceDiscoveryBeforeRunV1beta1(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -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",
|
||||||
|
@ -378,6 +402,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -386,6 +412,8 @@ func TestEndpointSliceDiscoveryDelete(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -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",
|
||||||
|
@ -456,6 +486,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -464,6 +496,8 @@ func TestEndpointSliceDiscoveryUpdate(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -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",
|
||||||
|
@ -523,6 +559,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -531,6 +569,8 @@ func TestEndpointSliceDiscoveryEmptyEndpoints(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -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",
|
||||||
|
@ -585,6 +627,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -593,6 +637,8 @@ func TestEndpointSliceDiscoveryWithService(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -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",
|
||||||
|
@ -663,6 +711,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -671,6 +721,8 @@ func TestEndpointSliceDiscoveryWithServiceUpdate(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -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",
|
||||||
|
@ -733,6 +787,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -741,6 +797,8 @@ func TestEndpointsSlicesDiscoveryWithNodeMetadata(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -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",
|
||||||
|
@ -806,6 +866,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -814,6 +876,8 @@ func TestEndpointsSlicesDiscoveryWithUpdatedNodeMetadata(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
"__meta_kubernetes_endpointslice_port_app_protocol": "http",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
|
@ -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",
|
||||||
|
@ -924,6 +990,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -932,6 +1000,8 @@ func TestEndpointSliceDiscoveryNamespaces(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -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",
|
||||||
|
@ -1050,6 +1122,8 @@ 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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "false",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
@ -1058,6 +1132,8 @@ func TestEndpointSliceDiscoveryOwnNamespace(t *testing.T) {
|
||||||
{
|
{
|
||||||
"__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_endpoint_conditions_serving": "true",
|
||||||
|
"__meta_kubernetes_endpointslice_endpoint_conditions_terminating": "true",
|
||||||
"__meta_kubernetes_endpointslice_port": "9000",
|
"__meta_kubernetes_endpointslice_port": "9000",
|
||||||
"__meta_kubernetes_endpointslice_port_name": "testport",
|
"__meta_kubernetes_endpointslice_port_name": "testport",
|
||||||
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
"__meta_kubernetes_endpointslice_port_protocol": "TCP",
|
||||||
|
|
|
@ -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