-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
fix HostAliases' json keys to be hostAlias instead of hostMapping to reflect actual feature name #47512
fix HostAliases' json keys to be hostAlias instead of hostMapping to reflect actual feature name #47512
Conversation
Hi @rickypai. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@kubernetes/kubernetes-release-managers this is an API change |
/assign @thockin |
api/openapi-spec/swagger.json
Outdated
@@ -2,7 +2,7 @@ | |||
"swagger": "2.0", | |||
"info": { | |||
"title": "Kubernetes", | |||
"version": "v1.8.0" | |||
"version": "v1.4.0" |
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 changing? It shouldn't.
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.
not sure. i ran this on a new development environment. will manually remove the change
@@ -2,7 +2,7 @@ | |||
"swagger": "2.0", | |||
"info": { | |||
"title": "Generic API Server", | |||
"version": "v1.8.0" | |||
"version": "v1.4.0" |
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.
Same here
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.
fixed
@k8s-bot ok to test. Keeping actual changes and autogenerated changes in different commits makes it easier to review. Will let Tim do the review. |
pkg/api/v1/types.go
Outdated
@@ -2519,7 +2519,7 @@ type PodSpec struct { | |||
// +optional | |||
// +patchMergeKey=IP | |||
// +patchStrategy=merge | |||
HostAliases []HostAlias `json:"hostMappings,omitempty" patchStrategy:"merge" patchMergeKey:"IP" protobuf:"bytes,23,rep,name=hostMappings"` | |||
HostAliases []HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"IP" protobuf:"bytes,23,rep,name=hostAliases"` |
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.
should the patch merge key should be lowercase ip
as well?
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.
thanks for catching this also!
7322aac
to
0ade821
Compare
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
0ade821
to
59b2889
Compare
59b2889
to
2f61d69
Compare
2f61d69
to
7e11975
Compare
@k8s-bot ok to test |
thank you! |
/test pull-kubernetes-federation-e2e-gce |
@erictune I think you need to explicitly /lgtm this PR or else it won't be picked up by submit queue. thanks a lot! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, rickypai Associated issue: 44641 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
recent merge introduced conficts in the generated protobuf files. rebased and regenerating the files. |
7e11975
to
797dc10
Compare
Thanks for the rebasing. lgtm. |
@caesarxuchao we should probably open an issue in 1.8 to track API changes and make sure they conform to conventions. |
@mbohlool i heard you had started an API convention checker? |
API convention checker would be nice. i was also thinking requiring e2e test for every API change to mitigate mistakes like this |
Adding queue/blocks-others because it's blocking lifting code freeze. |
thanks and sorry that this is blocking folks :( |
Automatic merge from submit-queue (batch tested with PRs 42252, 42251, 42249, 47512, 47887) |
yay! |
What this PR does / why we need it: a rename was introduce during the middle of #44641 to change from
hostMappings
tohostAliases
. the Go structs were updated, but I neglected to update the json keys. They should be in sync.Special notes for your reviewer: I messed up. This is an API change. I hope this is still ok to be in the 1.7 release.
Release note: