stolostron / ansible-collection.core

OCM/ACM Ansible Collection
Apache License 2.0
19 stars 12 forks source link

ACM & MCE Product Version Checking for Plugins & Modules #91

Open nathanweatherly opened 2 years ago

nathanweatherly commented 2 years ago

Our internal code needs to run checks to confirm the supported versions of ACM/MCE are running (else throw concise errors)

nathanweatherly commented 2 years ago

Acceptance Criteria:

Complexities:

hanqiuzh commented 2 years ago

Didn't see a version field in MCE CRs. Guess we can only check for MCH versions.

nathanweatherly commented 2 years ago

That should be fine for 2.5 since cluster proxy is in ACM. I will ask installer if MCE has/will have a version field at some point.

nathanweatherly commented 2 years ago

From Install team

Nathan:
Hey! How do you guys check the version of MCE you’re running? I know the MCH has a currentVersion or whathaveyou-- is there some backplane equivalent?

Jakob Gray-
No, you could parse it from the CSV version installed.
hanqiuzh commented 2 years ago

PR: https://github.com/stolostron/ocmplus.cm/pull/119

Currently, it only shows warning if user is using an RBAC account (without proper permission to check version). It exit when found the current version < target version, but not sure if we should simply send a warning or we should exit.

Better discuss at next scrum 😂