Skip to content

Commit

Permalink
feat: support exclude/include kinds/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 15, 2024
1 parent 0b6988e commit 2cedc68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ require (
github.com/xeipuuv/gojsonschema v1.2.0
github.com/xlab/treeprint v1.2.0
go.etcd.io/bbolt v1.3.9
go.uber.org/zap v1.27.0
go.uber.org/zap v1.27.0 // indirect
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
golang.org/x/mod v0.15.0
golang.org/x/net v0.21.0
Expand Down
4 changes: 2 additions & 2 deletions pkg/k8s/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Run(ctx context.Context, args []string, opts flag.Options) error {

defer func() {
if errors.Is(err, context.DeadlineExceeded) {
log.Logger.Warn("Increase --timeout value")
log.WarnContext(ctx, "Increase --timeout value")
}
}()
opts.K8sVersion = cluster.GetClusterVersion()
Expand Down Expand Up @@ -68,7 +68,7 @@ func (r *runner) run(ctx context.Context, artifacts []*k8sArtifacts.Artifact) er
}
defer func() {
if err := runner.Close(ctx); err != nil {
log.Logger.Errorf("failed to close runner: %s", err)
log.ErrorContext(ctx, "failed to close runner: %s", err)
}
}()

Expand Down

0 comments on commit 2cedc68

Please sign in to comment.