-
Notifications
You must be signed in to change notification settings - Fork 68
🌱 Use local cache to check kind version #2346
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
🌱 Use local cache to check kind version #2346
Conversation
Use the local cached source of kind to determine the k8s version it supports. It avoids hitting github if possible. Signed-off-by: Todd Short <tshort@redhat.com>
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
github had issues yesterday; this avoids git hub when running kind locally. |
pedjak
left a comment
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
| # Get the version of the image from github | ||
| if [ -z "${KIND_VER}" ]; then | ||
| KIND_VER=$(curl -L -s https://github.com/kubernetes-sigs/kind/raw/refs/tags/${KIND}/pkg/apis/config/defaults/image.go | grep -Eo "${REGEX}") | ||
| fi |
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 there a situation when we cannot resolve KIND_VER from the local cache? Can we remove this actually?
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.
This is the original check that broke when github was down yesterday. It's possible someone may have cleaned up their local cache, so I'd rather just leave it as a "just-in-case".
rashmigottipati
left a comment
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
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: grokspawn, pedjak, rashmigottipati, tmshort 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 |
03eb884
into
operator-framework:main
Use the local cached source of kind to determine the k8s version it supports. It avoids hitting github if possible.
Description
Reviewer Checklist