This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new a1d857981 fix(cmd): proper version deprecation notice
a1d857981 is described below

commit a1d857981c6b2f99cf6b2cb47695e48a6740d71b
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Sat Mar 21 09:35:10 2026 +0100

    fix(cmd): proper version deprecation notice
    
    Closes #6536
---
 .github/actions/infra-setting/action.yml | 2 +-
 pkg/cmd/version.go                       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/actions/infra-setting/action.yml 
b/.github/actions/infra-setting/action.yml
index cd69e2117..abc32b2a9 100644
--- a/.github/actions/infra-setting/action.yml
+++ b/.github/actions/infra-setting/action.yml
@@ -36,7 +36,7 @@ runs:
       check-latest: true
   - id: setup-kubectl
     name: Set up Kubectl
-    uses: azure/setup-kubectl@v4
+    uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede
   - id: minikube-start
     name: Start minikube
     uses: medyagh/[email protected]
diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go
index 2fac7757c..fa6c9c377 100644
--- a/pkg/cmd/version.go
+++ b/pkg/cmd/version.go
@@ -77,6 +77,7 @@ func (o *versionCmdOptions) preRunE(cmd *cobra.Command, args 
[]string) error {
        if !o.Operator && !o.All {
                // let the command to work in offline mode
                cmd.Annotations[offlineCommandLabel] = "true"
+       } else {
                fmt.Fprintf(cmd.OutOrStdout(), "Operator version discovery is 
deprecated. It will be removed from future releases.\n")
        }
 

Reply via email to