Skip to content

Commit

Permalink
Cleanup: remove commented-out code in kubectl fork
Browse files Browse the repository at this point in the history
As suggested in prior code review.
  • Loading branch information
justinsb committed Jul 7, 2023
1 parent 6371221 commit 8e1b271
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 8e1b271

Please sign in to comment.