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

Remove dependency on controller-runtime #40

Merged
merged 3 commits into from
Aug 17, 2023
Merged

Conversation

ecordell
Copy link
Contributor

@ecordell ecordell commented Aug 17, 2023

https://github.com/kubernetes-sigs/controller-runtime/blob/304027bcbe4b3f6d582180aec5759eb4db3f17fd/pkg/internal/testing/addr/manager.go#L44-L59

This init function always tries to write a file to /tmp on start. We don't want that to happen when using controller-idioms at runtime.

I removed the one place we use envtest and wrote a stripped down version that just does what we need for bootstrapping CRDs on controller start.

This also fixes #41 and gives us a place to start writing integration tests against a kind cluster. I added some basic mage commands to make it easier to run tests.

.gitignore Outdated Show resolved Hide resolved
bootstrap/example/crd.yaml Show resolved Hide resolved
this also bumps to kube 1.28 dependencies to deal with:
kubernetes/kubernetes#118340
@ecordell ecordell merged commit a8e0815 into authzed:main Aug 17, 2023
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local integration test suite
2 participants