Skip to content

Commit

Permalink
feat: support exclude/include kinds and namespaces
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan committed Apr 26, 2024
1 parent 701e6ff commit 075ccb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8s/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ func Run(ctx context.Context, args []string, opts flag.Options) error {
return xerrors.Errorf("failed getting k8s cluster: %w", err)
}
ctx, cancel := context.WithTimeout(ctx, opts.Timeout)
defer cancel()

defer func() {
cancel()
if errors.Is(err, context.DeadlineExceeded) {
log.WarnContext(ctx, "Increase --timeout value")
}
Expand Down

0 comments on commit 075ccb2

Please sign in to comment.