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

ci: Add envtest #755

Closed
wants to merge 1 commit into from
Closed

ci: Add envtest #755

wants to merge 1 commit into from

Conversation

hj-johannes-lee
Copy link
Contributor

Closes: #566
Signed-off-by: Hyeongju Johannes Lee hyeongju.lee@intel.com

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
${{ runner.os }}-go-
- name: Install controller-runtime and get envtest binaries
run: |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this line install envtest binaries? If so, why do we need to download and unpack them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it..?
I cannot see where the binaries are..
https://github.com/hj-johannes-lee/intel-device-plugins-for-kubernetes/runs/4256699647?check_suite_focus=true#step:5:3

And also,, there is an issue of using 1.22 kubernetes version.. so I thought it would be better to get the binaries just separately.
kubernetes-sigs/controller-runtime#1571 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you close this PR?

as for setup-envtest tool, it can manage multiple versions of binaries, e.g.

$ setup-envtest list 
(installed)  v1.22.1  linux/amd64
(available)  v1.22.1  linux/amd64
(available)  v1.22.0  linux/amd64
(available)  v1.21.4  linux/amd64
(available)  v1.21.2  linux/amd64
(available)  v1.20.2  linux/amd64
(available)  v1.19.2  linux/amd64
(available)  v1.19.0  linux/amd64
(available)  v1.17.9  linux/amd64
(available)  v1.16.4  linux/amd64
(available)  v1.15.5  linux/amd64
(available)  v1.14.1  linux/amd64
(available)  v1.13.1  linux/amd64
(available)  v1.12.3  linux/amd64
(available)  v1.11.0  linux/amd64
(available)  v1.10.1  linux/amd64

Please, read its documentation for further details: https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest#section-readme

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your help.! I think i should have just read the setup-envtest readme in more detail.!

I.. closed for a while since I just wanted to forced-push to my branch to see whether it works in github actions or not and that will create so many actions here too (though I think now that I could have just made another temporary branch..!)

I thought I can open again, but I guess,, I need to just make another pr after forced-push to the commit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I can open again, but I guess,, I need to just make another pr after forced-push to the commit.

Looks like you pushed and then closed. To just re-open BEFORE pushing something again should keep this PR working.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I didn't know about that. Let me try not to make an unnecessary pr from now on!

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add envtest tests to CI
3 participants