-
Notifications
You must be signed in to change notification settings - Fork 158
When using the extended channel, also specify the cluster version #2045
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
When using the extended channel, also specify the cluster version #2045
Conversation
Hi @julianKatz. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
if [ "$gke_release_channel" ]; then | ||
# To leverage old cluster versions, we need set both the release channel and | ||
# the cluster version. | ||
if [ "$gke_release_channel" = "extended" ]; 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.
Does this work if $gke_release_channel is empty? I'm always a little confused by bash parsing, but if the string is empty you may end up with if [ = extended ] which is a parse error
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.
Good catch, I did a little more looking and I believe I've got a better version now.
That first part is right AFAICT. gke_release_channel is defaulted to empty string in its var declaration and Stackoverflow says [ thing = otherThing ]
is the right POSIX solution for string equality checks.
The second one was more ambiguous. I've changed it to check for a non-empty variable:
elif [ -n "$gke_release_channel" ]; 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.
ah, the quotes matter. [ $unknown = foo ] fails to parse, but [ "$unknown" = foo ] is okay. Interesting.
+1 to using -n, it's a little more clear (although [ ] seems to be valid anyway)
6de7313
to
1fb012e
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: julianKatz, mattcary The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
<What type of PR is this?
/kind failing-test
What this PR does / why we need it:
When running CI for the
extended
channel, we intended to specify both the release channel and the version of the cluster. However, the CI test script was choosing only one of the two depending on the setting of the release channel.This PR adds a special case of for
extended
, where both the release channel and the cluster version are passed to the test automation.Does this PR introduce a user-facing change?: