|
|
@ -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",
|
|
|
|