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
Upgrade k8s.io/*
to v0.28
, sigs.k8s.io/controller-runtime
to v0.16
#8382
Comments
To be tackled after #7991 |
/assign |
/unassign |
There were few changes done in the new code-generator which breaks our code generation:
|
Issues related to |
As the kubernetes code-generator no longer generates client, informers and listers for internal packages, we need to drop using internal clients ,lister and informers. Following PR adapts the changes #8851 |
@ary1992 Could you please update the issue description such that it's visible which takes are still open/what needs to be done? Or do you think it makes more sense to close this one and open a dedicated issue for the left-overs? |
The issue is fixed with PR kubernetes/kubernetes#121411 and will be shipped with K8s |
How to categorize this issue?
/area open-source dev-productivity
/kind enhancement
What would you like to be added:
We should upgrade to the latest versions of our go upstream dependencies:
sigs.k8s.io/controller-runtime@v0.16.0
: https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.16.0k8s.io/*@v0.28.0
: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.28.mdsigs.k8s.io/controller-tools@v0.13.0
: https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.13.0Important changes / Action items
Here is a list of a few upstream changes to look out for when vendoring g/g, k/* and c-r in any of our repos (e.g. extensions). Please consider the release notes of controller-runtime@v0.16 and upwards as well for a more complete list and more details.
MetricsBindAddress
is removed from manager options in favor ofMetrics
struct. ⚠ Introduce Metrics Options struct & secure metrics serving kubernetes-sigs/controller-runtime#2407Namespace
is removed from manager options in favor ofcache.DefaultNamespaces
. ⚠️ Allow configuring more granular cache filtering kubernetes-sigs/controller-runtime#2421Port
,Host
,CertDir
,TLSOpts
,ClientDisableCacheFor
,Namespace
andDryRunClient
are removed. ⚠ Remove deprecated manager, webhook and cluster options kubernetes-sigs/controller-runtime#2422Drop resource lockWill remove once it is removed fromLeaderElectionResourceLock
as the only possible value is lease.LeaderElectionConfiguration
gen_client()
function inkube_codegen
script kubernetes/kubernetes#121247 due to which it cannot be used in our code-base.cache.Options.Namespace
(replacement for the deprecated MultiNamespacedCacheBuilder) behaves differently when requesting an object in a namespace that is not included in the cache: it simply returns a usualNotFound
error. Adapt ourFallbackClient
accordingly. Enhance fallback client #8447Adapt the new restmapper implementation.⚠️ RESTMapper: don't treat non-existing GroupVersions as errors kubernetes-sigs/controller-runtime#2571, tackled by Upgradek8s.io/*
tov0.29
,sigs.k8s.io/controller-runtime
tov0.17
#9047ℹ️ other changes / good to know / for information only:
The text was updated successfully, but these errors were encountered: