Skip to content

Commit

Permalink
Merge pull request #344 from justinsb/cleanup_343
Browse files Browse the repository at this point in the history
Cleanup: remove commented-out code in kubectl fork
  • Loading branch information
k8s-ci-robot committed Jul 7, 2023
2 parents 6371221 + 8e1b271 commit 729d2cb
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,6 @@ func parseKindAnnotation(annotations map[string]string, mapper meta.RESTMapper)
}
for _, grString := range strings.Split(annotation, ",") {
gk := schema.ParseGroupKind(grString)
// gvk, err := mapper.KindFor(gr.WithVersion(""))
// if err != nil {
// return nil, fmt.Errorf("invalid group resource in %q annotation: %w", ApplySetGKsAnnotation, err)
// }
restMapping, err := mapper.RESTMapping(gk)
if err != nil {
return nil, fmt.Errorf("could not find mapping for kind in %q annotation: %w", ApplySetGKsAnnotation, err)
Expand Down

0 comments on commit 729d2cb

Please sign in to comment.