This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git.
from bc08a41 goimports - fix build issue import order
new 24efaa0 Allow to configure kamel CLI with env vars and configuration
files #1108
new 99af3a9 chore(lint): fix findings
new 5a8dcb9 chore(actions): use custom golangci-lint script
new acbb0bc Refactoring to allow testability of cobra/viper commands and
commands flags loading.
new ac5919d Added run_test.go to test runCmd flags and blueprinted other
major commands tests.
new da3def2 Added viper load from env vars and file tests.
new e223276 fixed linter reported issues.
new 5b496c8 Fixed test failures if .kube/config is missing.
new 4691623 Fixed a not configured k8s client being used in commands
preRun preventing testability and possibly causing some unwanted effects in
some scenarios like loading commands configs/flags from env vars and config
files
new f217ed0 Fixed a reference to command options not being propagated
correctly.
The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/pr-validate.yml | 8 +-
go.mod | 2 +
go.sum | 11 +
pkg/client/client.go | 5 +
pkg/cmd/builder.go | 21 +-
pkg/cmd/{operator.go => builder_test.go} | 31 +--
pkg/cmd/delete.go | 27 +--
pkg/cmd/{version.go => delete_test.go} | 24 +--
pkg/cmd/describe.go | 6 +-
pkg/cmd/describe_integration.go | 23 ++-
pkg/cmd/describe_kit.go | 25 +--
pkg/cmd/describe_platform.go | 25 +--
pkg/cmd/get.go | 13 +-
pkg/cmd/install.go | 243 +++++++++++++----------
pkg/cmd/install_test.go | 17 ++
pkg/cmd/kit.go | 6 +-
pkg/cmd/kit_create.go | 88 ++++----
pkg/cmd/{kit.go => kit_create_test.go} | 25 ++-
pkg/cmd/kit_delete.go | 45 +++--
pkg/cmd/kit_get.go | 41 ++--
pkg/{controller/add_build.go => cmd/kit_test.go} | 15 +-
pkg/cmd/log.go | 17 +-
pkg/cmd/operator.go | 17 +-
pkg/cmd/rebuild.go | 13 +-
pkg/cmd/reset.go | 25 +--
pkg/cmd/root.go | 87 ++++++--
pkg/cmd/root_test.go | 170 ++++++++++++++++
pkg/cmd/run.go | 106 +++++-----
pkg/cmd/run_test.go | 56 ++++++
pkg/cmd/util.go | 148 ++++++++++++++
pkg/util/test/client.go | 4 +
pkg/{cmd/operator.go => util/test/cmd.go} | 38 ++--
32 files changed, 937 insertions(+), 445 deletions(-)
copy pkg/cmd/{operator.go => builder_test.go} (62%)
copy pkg/cmd/{version.go => delete_test.go} (62%)
copy pkg/cmd/{kit.go => kit_create_test.go} (58%)
copy pkg/{controller/add_build.go => cmd/kit_test.go} (76%)
create mode 100644 pkg/cmd/root_test.go
create mode 100644 pkg/cmd/run_test.go
copy pkg/{cmd/operator.go => util/test/cmd.go} (60%)