Skip to content

Fix #6806: remove deprecated delete, get and kit kamel commands - #6816

Open
rrafifnanda wants to merge 1 commit into
apache:mainfrom
rrafifnanda:feature/6806-remove-deprecated-commands
Open

rrafifnanda wants to merge 1 commit into
apache:mainfrom
rrafifnanda:feature/6806-remove-deprecated-commands

Conversation

@rrafifnanda

Copy link
Copy Markdown

Fixes #6806

Removes the already deprecated kamel subcommands delete, get, and kit:

  • deletes pkg/cmd/delete.go, get.go, kit*.go and their command-specific unit tests
  • deregisters the commands in pkg/cmd/root.go + adds TestDeprecatedCommandsAreNotRegistered
  • removes the dedicated kamel delete E2E suite (e2e/common/cli/delete_test.go)
  • replaces cleanup-only kamel delete calls with kubectl delete it per maintainer feedback on Drop 2.9 CLI deprecated commands #6806 (comment) (covers e2e/advanced/debug_test.go, e2e/common/traits/master_test.go, route_test.go, e2e/kafka/*, e2e/knative/*, and DeleteIntegrations in e2e/support/test_support.go)
  • replaces the get help case with run -h and changes the running-cli.adoc example to kubectl get integrations

Verification:

  • go test ./pkg/cmd/... -count=1 passes
  • go vet -tags integration on touched E2E packages passes
  • built ./cmd/kamel and confirmed delete/get/kit report unknown command and no longer appear in help

Claude Code on behalf of @rrafifnanda

Removes the deprecated delete, get and kit CLI implementations along
with their unit tests and deregisters them from the root command.

E2E updates per maintainer feedback: drops the dedicated kamel delete
suite, replaces kamel delete cleanup calls with kubectl delete it,
switches the get help case to run help, and updates the running-cli
docs example to kubectl get integrations.
@rrafifnanda
rrafifnanda force-pushed the feature/6806-remove-deprecated-commands branch from bbcfc83 to 8152fd4 Compare September 15, 2026 16:12

@squakez squakez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice stuff, thanks!

Comment thread pkg/cmd/root_test.go
return kamelTestPreAddCommandInitWithClient(fakeClient)
}

func TestDeprecatedCommandsAreNotRegistered(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can remove this test. We don't really care to check any removed subcommand.

@github-actions

Copy link
Copy Markdown
Contributor

✔️ Unit test coverage report - coverage increased from 63.8% to 64.4% (+0.6%)

@squakez

squakez commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

It seems the kit subcommand was used in e2e test:

  Error: unknown command "kit" for "kamel"
      test_support.go:253: unknown command "kit" for "kamel"

We need to replace that logic accordingly.

There is also some failure on Keda, we will need to understand it as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop 2.9 CLI deprecated commands

3 participants