-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Move internal types of hpa from pkg/apis/extensions to pkg/apis/autoscaling #25279
Conversation
I'm doing something wrong or there is something broken with clientgen tool. I ran ./hack/update-all.sh and it didn't remove the following files:
I removed them manually and the scripts are still fine with the change. EDIT: before removing the files the build failed with:
|
I think all our generators don't support "removing" case. Basically, we are looking at types for which we need to generate something and generate that. Same for verification. We are not looking at all what was previously generated and if we need to remove it now. I think that removing is such a rare case that there is not much sense in supporting it, since it won't be trivial. |
Thanks @wojtek-t for the explanation. IIUC I did exactly what is expected. |
Yeah, wojtek-t is right and you did it right. |
friendly ping @lavalamp |
@@ -32,7 +32,6 @@ var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1 | |||
func AddToScheme(scheme *runtime.Scheme) { | |||
addKnownTypes(scheme) | |||
addDefaultingFuncs(scheme) | |||
addConversionFuncs(scheme) |
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.
why is this removed?
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.
I changed internal types to be identical with v1 so that conversions can be auto-generated and we don't have to have our own functions.
LGTM sans one comment. Sorry, I thought I looked at this yesterday, guess not. |
Thanks @lavalamp for the review. |
lgtm |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit d8af147. |
Automatic merge from submit-queue |
ref #21577
@lavalamp could you please review or delegate to someone from CSI team?
@janetkuo could you please take a look into the kubelet changes?
cc @fgrzadkowski @jszczepkowski @mwielgus @kubernetes/autoscaling