|
|
|
@ -219,9 +219,11 @@ func TestEndpointSliceDiscoveryBeforeRun(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -280,9 +282,11 @@ func TestEndpointSliceDiscoveryBeforeRunV1beta1(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -478,9 +482,11 @@ func TestEndpointSliceDiscoveryDelete(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: map[model.LabelName]model.LabelValue{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -574,9 +580,11 @@ func TestEndpointSliceDiscoveryUpdate(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -659,9 +667,11 @@ func TestEndpointSliceDiscoveryEmptyEndpoints(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -739,12 +749,14 @@ func TestEndpointSliceDiscoveryWithService(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "test", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "test", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -835,14 +847,16 @@ func TestEndpointSliceDiscoveryWithServiceUpdate(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "svc", |
|
|
|
|
"__meta_kubernetes_service_label_component": "testing", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_component": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "svc", |
|
|
|
|
"__meta_kubernetes_service_label_component": "testing", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_component": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -927,12 +941,14 @@ func TestEndpointsSlicesDiscoveryWithNodeMetadata(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "test", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "test", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -1023,12 +1039,14 @@ func TestEndpointsSlicesDiscoveryWithUpdatedNodeMetadata(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "test", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "default", |
|
|
|
|
"__meta_kubernetes_service_label_app_name": "test", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app_name": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/default/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -1159,12 +1177,14 @@ func TestEndpointSliceDiscoveryNamespaces(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "ns1", |
|
|
|
|
"__meta_kubernetes_service_label_app": "app1", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
"__meta_kubernetes_namespace": "ns1", |
|
|
|
|
"__meta_kubernetes_service_label_app": "app1", |
|
|
|
|
"__meta_kubernetes_service_labelpresent_app": "true", |
|
|
|
|
"__meta_kubernetes_service_name": "testendpoints", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/ns1/testendpoints", |
|
|
|
|
}, |
|
|
|
@ -1303,9 +1323,11 @@ func TestEndpointSliceDiscoveryOwnNamespace(t *testing.T) {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Labels: model.LabelSet{ |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "own-ns", |
|
|
|
|
"__meta_kubernetes_endpointslice_address_type": "IPv4", |
|
|
|
|
"__meta_kubernetes_endpointslice_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_namespace": "own-ns", |
|
|
|
|
"__meta_kubernetes_endpointslice_label_kubernetes_io_service_name": "testendpoints", |
|
|
|
|
"__meta_kubernetes_endpointslice_labelpresent_kubernetes_io_service_name": "true", |
|
|
|
|
}, |
|
|
|
|
Source: "endpointslice/own-ns/testendpoints", |
|
|
|
|
}, |
|
|
|
|