osm icon indicating copy to clipboard operation
osm copied to clipboard

OSM CLI prompt to upgrade

Open ritazh opened this issue 4 years ago • 4 comments

Please describe the Improvement and/or Feature Request

OSM CLI should have a way to detect its own version compared to the installed chart version and prompt user to upgrade the CLI.

Scope (please mark with X where applicable)

  • New Functionality [ ]
  • Install [ ]
  • SMI Traffic Access Policy [ ]
  • SMI Traffic Specs Policy [ ]
  • SMI Traffic Split Policy [ ]
  • Permissive Traffic Policy [ ]
  • Ingress [ ]
  • Egress [ ]
  • Envoy Control Plane [ ]
  • CLI Tool [X ]
  • Metrics [ ]
  • Certificate Management [ ]
  • Sidecar Injection [ ]
  • Logging [ ]
  • Debugging [ ]
  • Tests [ ]
  • CI System [ ]
  • Project Release [ ]

Possible use cases

ritazh avatar Jan 13 '21 17:01 ritazh

From my shell scripts - I use this to get the latest release for certain automation tasks:

curl --silent "https://api.github.com/repos/openservicemesh/osm/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")'

The Go version of this in the OSM CLI would be great.

The second step would be to compare the latest available with what's running in the Kubernetes cluster.

  • we could get that from the Deployment spec: kubectl get deployment -n osm-system osm-controller -o json | jq '.spec.template.spec.containers[0].image'
  • or the running OSM Controller itself (logs or debug endpoint)

draychev avatar Mar 11 '21 00:03 draychev

I can work on it pls assign it to me

mudit-01 avatar Jul 12 '22 13:07 mudit-01

Added default label kind/needed. Please consider re-labeling this issue appropriately.

github-actions[bot] avatar Jul 13 '22 00:07 github-actions[bot]

Hi pls assign it to me.

mudit-01 avatar Aug 04 '22 04:08 mudit-01

This issue will be closed due to a long period of inactivity. If you would like this issue to remain open then please comment or update.

github-actions[bot] avatar Feb 01 '23 00:02 github-actions[bot]

can be fixed by https://github.com/openservicemesh/osm/pull/5266

mudit-01 avatar Feb 01 '23 03:02 mudit-01

We can close this now fixed by https://github.com/openservicemesh/osm/pull/5266

mudit-01 avatar Mar 15 '23 04:03 mudit-01

This issue will be closed due to a long period of inactivity. If you would like this issue to remain open then please comment or update.

github-actions[bot] avatar May 15 '23 00:05 github-actions[bot]

Issue closed due to inactivity.

github-actions[bot] avatar May 23 '23 00:05 github-actions[bot]