File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,7 @@ func isExtendedResourceName(name v1.ResourceName) bool {
165
165
}
166
166
167
167
func isNativeResource (name v1.ResourceName ) bool {
168
- return ! strings .Contains (string (name ), "/" ) ||
169
- isPrefixedNativeResource (name )
170
- }
171
-
172
- func isPrefixedNativeResource (name v1.ResourceName ) bool {
173
- return strings .Contains (string (name ), v1 .ResourceDefaultNamespacePrefix )
168
+ return ! strings .Contains (string (name ), "/" )
174
169
}
175
170
176
171
// createPrometheusLabelKeysValues takes in passed kubernetes annotations/labels
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ func TestIsExtendedResourceName(t *testing.T) {
93
93
},
94
94
{
95
95
resourceName : "kubernetes.io/resource-foo" ,
96
- expectVal : false ,
96
+ expectVal : true ,
97
97
},
98
98
{
99
99
resourceName : "foo" ,
You can’t perform that action at this time.
0 commit comments