We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5343790 commit c5fd572Copy full SHA for c5fd572
pkg/wellknown/utils.go
@@ -17,6 +17,8 @@ limitations under the License.
17
package wellknown
18
19
import (
20
+ "strings"
21
+
22
"k8s.io/apimachinery/pkg/runtime/schema"
23
)
24
@@ -37,6 +39,7 @@ func init() {
37
39
// CorrectGroupResource returns the corrected GroupResource and namespaced
38
40
func CorrectGroupResource(target schema.GroupResource) (gr schema.GroupResource, namespaced bool, found bool) {
41
var r *resource
42
+ target.Resource = strings.ToLower(target.Resource)
43
if target.Group == "" {
44
r, found = nameToResource[target.Resource]
45
} else {
0 commit comments