-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update verify script to validate min and max versions supported for Openshift #87
Conversation
@@ -11,7 +11,7 @@ | |||
# verify-csi-unity method | |||
function verify-csi-unity() { | |||
verify_k8s_versions "1.21" "1.23" | |||
verify_openshift_versions "4.8" "4.9" | |||
verify_openshift_versions "4.9" "4.10" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing 4.8 EUS support ? is that discussed in PO meeting ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prablr79 , these are just inputs for Major and Minor versions. We don't validate for EUS versions as it is implicitly covered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prablr79 Raised PR s for all drivers repos except for powerstore as some of the other validations are getting overridden.. Passed on the info to team
@@ -224,7 +224,7 @@ function verify_openshift_versions() { | |||
log arrow | |||
log smart_step "Verifying minimum OpenShift version" "small" | |||
error=0 | |||
if [[ ${V} < ${MIN} ]]; then | |||
if (( ${V%%.*} < ${MIN%%.*} || ( ${V%%.*} == ${MIN%%.*} && ${V##*.} < ${MIN##*.} ) )) ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change applicable across drivers ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @prablr79 . Thanks for bringing this up. I will raise a common PR for all drivers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with another PR for across drivers to cover.
Description
As part of OCP 4.10 support for csi-unity driver , fixed verify script which validates MIN and MAX versions of Openshift supported by the driver
GitHub Issues
Checklist:
How Has This Been Tested?
Tested helm installation checks for positive and negative scenarios in OCP 4.10 env. Please find below screenshots for reference: