submariner-io / subctl

CLI tool that provides helper commands to install, inspect, and troubleshoot a Submariner deployment.
Apache License 2.0
18 stars 23 forks source link

subctl should throw error to user if running against a deployment with wrong version #1166

Open vthapar opened 3 months ago

vthapar commented 3 months ago

What would you like to be added: When running some of subctl commands like diagnose ,verify and gather, check for deployment version against subctl version and throw error if user is using different version.

Why is this needed:

subctl commands like verify diagnose and even gather require to be run against submariner deployments using same version, at least major version. This is becasue submariner implementation can chane between versions to support new features or fix bugs and this requires a subctl version compatible with those changes. Running wrong version subctl gives errors to users which require some effort to realize those are due to wrong versions.