|
|
@ -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{
|
|
|
|