Most common case is when we want to watch all namespace but deny few namespaces.
currently, it can be achieved by using a predicate to filter out namespaces.
is this something which can be added to ctrl.Options in manager ?
The commit d6a053f changes the name of field from IsController to isController. That is, the field is not exported, so users need to use handler.OnlyControllerOwner() to control the value of the field. Does it mean that this PR breaks the backward compatibility? Thank you!
Would it be possible to run envtest in a container with a tool such as dockertest?
Can this be achieve today, or would changes need to be introduced? AFAIU, the envtest Go package starts the binary directly.
I'm trying to get a kubebuilder project to build with bazel and need to get hermetic tests.
Why?
In our case, the webhook server is running on another cluster other than the cluster in which the resources are deployed, the webhook server is behind Nginx ingress which terminates the TLS, so the webhook server can just run a non-TLS HTTP server.
Manager configuration and options incorrect state that probe endpoints default to "readyz" and "healthz". The defaults are actually "/readyz" and "/healthz". This is misleading, if user tries to rename probe endpoint name following this pattern (no "/"), then endpoint will not be correctly registere...
Hi,
After upgrading from 0.13.1 to 0.14.1, I can no longer use server-side apply.
In 0.13.1 I used to be able to do this:
err = r.Status().Patch(ctx, obj, client.Apply, client.FieldOwner("whatever"), client.ForceOwnership)
In 0.14.1 this results in:
Cannot use 'client.FieldOwner("whatever")' (type c...
I have created a project with sigs.k8s.io/controller-runtime v0.14.1.
Scanned the project with BlackDuckHub to figure out EOL components. Found number of EOL components, these packages are indirectly being used by controller-runtime.
go.mod
module test-go-mod
go 1.18
require sigs.k8s.io/controlle...
Docs tell to have this code: https://book.kubebuilder.io/reference/envtest.html#writing-tests
but it breaks on upgrade from 0.13.1 to 0.14.1:
https://github.com/evryfs/github-actions-runner-operator/actions/runs/3787812173/jobs/6439954186#step:5:34
as the package has been dropped.
Docs should be upd...
I had a question around how to test code that is using the controller-runtime DirectClient during functional/unit testing.
The direct client is the recommended client to use for functional testing; however, the direct client doesn't support arbitrary field selectors for CRDs, since it doesn't use a...