Skip to content

Commit

Permalink
fix resolving panic
Browse files Browse the repository at this point in the history
  • Loading branch information
xrstf committed Mar 23, 2022
1 parent 008ce20 commit 62c6e3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func watchKubernetes(ctx context.Context, log logrus.FieldLogger, args []string,
if err != nil {
log.Fatalf("Unknown resource kind %q: %v", resourceKind, err)
}
if parsed == nil {
log.Fatalf("Unknown resource kind %q", resourceKind)
}

gvk := parsed.GroupVersionKind
kinds[gvk.String()] = gvk
Expand Down

0 comments on commit 62c6e3d

Please sign in to comment.