Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

keptn set config AutomaticVersionCheck false doesn't work #5218

@vadasambar

Description

@vadasambar

Environment

  • Client OS (e.g., Linux, macOS, Windows): Linux (I think)
  • Keptn Version (keptn version): CLI is 0.8.7 and Server is 0.8.6
  • Kubernetes Cloud Provider (e.g., GKE, AKS): No clue
  • Kubernetes version (kubectl version): No clue

Affected Component

  • Docs
  • CLI
  • Kubernetes Integration
  • Openshift Integration
  • Helm
  • Istio
  • Bridge
  • Approval
  • Datastore
  • REST API
  • eventbroker / distributor
  • jmeter

Describe the bug

Andreas Grabner

Hi team. I have downloaded a newer CLI (0.8.7) than my connected keptn (0.8.6) - thats why I get this warning. I thought that the AutomaticVersionCheck flag helps me turn off this version check but I guess thats not the case as you can see below. Is there any other flag that allows me to suppress that version mismatch warning? @Bernd Warmuth @Johannes Bräuer
image

Bernd Warmuth

Nope, The message you see seems to be printed here unconditionally, regardless of what you configure with keptn set config. There is a pull request going on in this area of the CLI. Maybe we can also fix this as part this PR. @Suraj Banakar

From slack thread here.

To Reproduce

Steps to reproduce the behavior:
Just run keptn version against a Keptn server where server version is not the same as the CLI version

  1. In my case, I built keptn CLI from the source using go build -o keptn
  2. Ran keptn version
$ keptn version
* Warning: Your Keptn CLI version (develop) and Keptn cluster version (0.8.5) don't match. This can lead to problems. Please make sure to use the same versions.
  1. Tried setting AutomaticVersionCheck to false to no avail
$ keptn set config AutomaticVersionCheck false
* Warning: Your Keptn CLI version (develop) and Keptn cluster version (0.8.5) don't match. This can lead to problems. Please make sure to use t
he same versions.
$ keptn version
* Warning: Your Keptn CLI version (develop) and Keptn cluster version (0.8.5) don't match. This can lead to problems. Please make sure to use t
he same versions.

Keptn CLI version: develop
Keptn cluster version: 0.8.5
...

Expected behavior

keptn should not show the warning when AutomaticVersionCheck is set to false.
Current behavior

keptn shows the warning (check above)
Screenshots

(check above)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions