-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🌱 Recover v1.10 util packages for conditions, patch and paused to util/deprecated/v1beta1 for provider migrations #12224
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
Conversation
bd68d15
to
295904c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are always going miles to help CAPI users!
Thanks!
cc @sbueringer
SetupReconcilers func(ctx context.Context, mgr ctrl.Manager) | ||
SetupEnv func(e *Environment) | ||
MinK8sVersion string | ||
AdditionalSchemeBuilder runtime.SchemeBuilder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should this be
AdditionalSchemeBuilder runtime.SchemeBuilder | |
AdditionalSchemeBuilders []runtime.SchemeBuilder |
(not blocking it is an internal util, we can always iterate in future)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runtime.Schemebuilder is already an []func(*Scheme) error
which is a collection of AddScheme funcs :-)
/lgtm /assign @fabriziopandini |
LGTM label has been added. Git tree hash: c58d431e44579e7f86fd230915cecead258b6d2d
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…l/deprecated/v1beta1 for provider migrations (kubernetes-sigs#12224) * Recover v1.10 util/conditions and util/patch to util/deprecated/v1beta1 for providers * util/deprecated: add package deprecation information to packages * readd util/deprecated/v1beta1/paused * util/deprecated: use deprecated packages for paused * util/deprecated: use clusterv1.Cluster * fix deprecated tests * util/deprecated/v1beta1/test add ObservedGeneration to Phase1Obj and generate CRD * util/test allow to pass in custom crd paths and scheme builders * envtest: adjust godoc for global scheme * envtest: review fixes * deprecated: rename func parameters * fixup renaming * fixup linter changes
What this PR does / why we need it:
Re-adds the packages:
sigs.k8s.io/cluster-api/util/patch
assigs.k8s.io/cluster-api/util/deprecated/v1beta1/patch
sigs.k8s.io/cluster-api/util/conditions
assigs.k8s.io/cluster-api/util/deprecated/v1beta1/conditions
sigs.k8s.io/cluster-api/util/paused
assigs.k8s.io/cluster-api/util/deprecated/v1beta1/paused
From version v1.10.
This allows providers a smoother and more step-by-step migration to v1beta2.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
/area util