File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 4040 Kind : "ServiceImport" ,
4141 }
4242
43+ trafficManagerProfileGVK = schema.GroupVersionKind {
44+ Group : NetworkingGroupName ,
45+ Version : "v1alpha1" ,
46+ Kind : "TrafficManagerProfile" ,
47+ }
48+
49+ trafficManagerBackendGVK = schema.GroupVersionKind {
50+ Group : NetworkingGroupName ,
51+ Version : "v1alpha1" ,
52+ Kind : "TrafficManagerBackend" ,
53+ }
54+
4355 // we use `;` to separate the different api groups
4456 apiGroupSepToken = ";"
4557)
@@ -81,7 +93,10 @@ func NewResourceConfig(isAllowList bool) *ResourceConfig {
8193 r .AddGroup (metricsV1beta1 .GroupName )
8294 r .AddGroupVersionKind (corev1PodGVK )
8395 r .AddGroupVersionKind (corev1NodeGVK )
96+ // disable networking resources
8497 r .AddGroupVersionKind (serviceImportGVK )
98+ r .AddGroupVersionKind (trafficManagerProfileGVK )
99+ r .AddGroupVersionKind (trafficManagerBackendGVK )
85100 return r
86101}
87102
Original file line number Diff line number Diff line change @@ -288,6 +288,21 @@ func TestDefaultResourceConfigGroupVersionKindParse(t *testing.T) {
288288 Version : "v1beta1" ,
289289 Kind : "Event" ,
290290 },
291+ {
292+ Group : "networking.fleet.azure.com" ,
293+ Version : "v1alpha1" ,
294+ Kind : "ServiceImport" ,
295+ },
296+ {
297+ Group : "networking.fleet.azure.com" ,
298+ Version : "v1alpha1" ,
299+ Kind : "TrafficManagerProfile" ,
300+ },
301+ {
302+ Group : "networking.fleet.azure.com" ,
303+ Version : "v1alpha1" ,
304+ Kind : "TrafficManagerBackend" ,
305+ },
291306 }
292307
293308 resourcesNotInDefaultResourcesList := []schema.GroupVersionKind {
@@ -306,6 +321,11 @@ func TestDefaultResourceConfigGroupVersionKindParse(t *testing.T) {
306321 Version : "v1" ,
307322 Kind : "Event" ,
308323 },
324+ {
325+ Group : "networking.fleet.azure.com" ,
326+ Version : "v1alpha1" ,
327+ Kind : "ServiceExport" ,
328+ },
309329 }
310330
311331 tests := map [string ]struct {
You can’t perform that action at this time.
0 commit comments