Skip to content
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

Fix KUBE_VERSION variable in quick_install.sh file #2662

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

nagar-ajay
Copy link
Contributor

@nagar-ajay nagar-ajay commented Jan 25, 2023

What this PR does / why we need it:

  • correctly populate KUBE_VERSION variable in quick_install.sh file by grepping the server version line, instead of relying on line numbers.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Type of changes
Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Feature/Issue validation/testing:

  • Crossed checked KUBE_VERSION variable on my machine with Kubernetes Server Version: v1.25.3 and Kubernetes Server Version: v1.22
ajaynagar@LJD43D kserve % kubectl version --short=true | grep "Server Version" | awk -F '.' '{print $2}'
25

Special notes for your reviewer:

  • Flag --short has been deprecated and will be removed in the future. The --short output will become the default. Contributors will need to update this again when the --short flag is completely deprecated in next releases. Contributors will also need to consider the fact if kubernetes keeps the output backward compatible or not.

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

Release note:


@yuzisun
Copy link
Member

yuzisun commented Jan 26, 2023

@nagar-ajay can you help sign off the commit ?

 kserve#2661 issue

Signed-off-by: nagar-ajay <ajay.nagar@nutanix.com>
@nagar-ajay
Copy link
Contributor Author

@nagar-ajay can you help sign off the commit?

@yuzisun Done

@yuzisun
Copy link
Member

yuzisun commented Jan 26, 2023

Thanks @nagar-ajay !

/lgtm
/approve

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nagar-ajay, yuzisun

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kserve-oss-bot kserve-oss-bot merged commit de3980d into kserve:master Jan 26, 2023
sriumcp pushed a commit to sriumcp/kserve that referenced this pull request Mar 7, 2023
 kserve#2661 issue (kserve#2662)

Signed-off-by: nagar-ajay <ajay.nagar@nutanix.com>

Signed-off-by: nagar-ajay <ajay.nagar@nutanix.com>
Signed-off-by: Srinivasan Parthasarathy <spartha@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bugfix]: Fix kubectl server version
3 participants