Commit 098d1da 1 parent ccebc52 commit 098d1da Copy full SHA for 098d1da
File tree 2 files changed +10
-0
lines changed
pkg/app/pipedv1/plugin/kubernetes/provider
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ metadata:
60
60
Key : ResourceKey {
61
61
APIVersion : "v1" ,
62
62
Kind : "ConfigMap" ,
63
+ Namespace : "default" ,
63
64
Name : "test-config" ,
64
65
},
65
66
Body : & unstructured.Unstructured {
@@ -93,6 +94,7 @@ metadata:
93
94
Key : ResourceKey {
94
95
APIVersion : "v1" ,
95
96
Kind : "ConfigMap" ,
97
+ Namespace : "default" ,
96
98
Name : "test-config" ,
97
99
},
98
100
Body : & unstructured.Unstructured {
@@ -109,6 +111,7 @@ metadata:
109
111
Key : ResourceKey {
110
112
APIVersion : "v1" ,
111
113
Kind : "Service" ,
114
+ Namespace : "default" ,
112
115
Name : "test-service" ,
113
116
},
114
117
Body : & unstructured.Unstructured {
@@ -191,6 +194,7 @@ metadata:
191
194
Key : ResourceKey {
192
195
APIVersion : "v1" ,
193
196
Kind : "ConfigMap" ,
197
+ Namespace : "default" ,
194
198
Name : "test-config" ,
195
199
},
196
200
Body : & unstructured.Unstructured {
@@ -233,6 +237,7 @@ metadata:
233
237
Key : ResourceKey {
234
238
APIVersion : "v1" ,
235
239
Kind : "Service" ,
240
+ Namespace : "default" ,
236
241
Name : "test-service" ,
237
242
},
238
243
Body : & unstructured.Unstructured {
@@ -274,6 +279,7 @@ metadata:
274
279
Key : ResourceKey {
275
280
APIVersion : "v1" ,
276
281
Kind : "ConfigMap" ,
282
+ Namespace : "default" ,
277
283
Name : "test-config" ,
278
284
},
279
285
Body : & unstructured.Unstructured {
@@ -290,6 +296,7 @@ metadata:
290
296
Key : ResourceKey {
291
297
APIVersion : "v1" ,
292
298
Kind : "Service" ,
299
+ Namespace : "default" ,
293
300
Name : "test-service" ,
294
301
},
295
302
Body : & unstructured.Unstructured {
Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ func MakeResourceKey(obj *unstructured.Unstructured) ResourceKey {
87
87
Namespace : obj .GetNamespace (),
88
88
Name : obj .GetName (),
89
89
}
90
+ if k .Namespace == "" {
91
+ k .Namespace = DefaultNamespace
92
+ }
90
93
return k
91
94
}
92
95
You can’t perform that action at this time.
0 commit comments