You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update go to v1.22, controller-runtime dependency to v0.18.2, and kubernetes libs to v0.30.0 (#3707)
* go version, dep version
* refactor for controller-runtime udpate
* update tests, fix if statement
the controller-runtime strips DeletionTimestamp from manifests on
Create(). kubernetes-sigs/controller-runtime#2316
* refactor tests
* remove placeholder comments
* remove reconciler from WithOptions
* remove DefaultNamespace cache option
* remote `&& !hasGroupFinalizer`
This was causing e2e tests to fail when an ingress did not have the
group finalizer. The unit tests ing-1_been_deleted, and ing-6_been_deleted
will need reworked due to changes in the controller-runtime that cause
them to fail.
* update unit tests for ctrl client/fake >0.15
controller-runtime >=0.15 does not support creating (or adding the field via Update()) objects with a DeletionTimestamp. To work around this we add an annotation `unit-test/delete` to mark the ingresses that we want to test deletion. We check for this annotation and then call Delete(). This will set the DeletionTimestamp to the current date and time so we use IgnoreOtherFields to skip then comparing want to got.
relevant controller-runtime discussion/pr:
- kubernetes-sigs/controller-runtime#2184 (comment)
- kubernetes-sigs/controller-runtime#2316
* remove unused contexts
* add DefaultNamespaces cache config
* set opt.Cache.DefaultNamespaces conditionally
If WatchNamespace is set to corev1.NamespaceAll we should not set
DefaultNamespaces.
This code assumes that only one namespace is specified for
WatchNamespace. That decision was based on the help text for the flag
`watch-namespace`.
Related controller-runtime issue: kubernetes-sigs/controller-runtime#2628
* make crds
* set go to v1.22.3
0 commit comments