-
Notifications
You must be signed in to change notification settings - Fork 236
keptn set config AutomaticVersionCheck false doesn't work #5218
Description
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
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
- In my case, I built
keptnCLI from the source usinggo build -o keptn - 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.
- Tried setting
AutomaticVersionChecktofalseto 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)
