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 can not export service bug #22285
fix can not export service bug #22285
Conversation
Labelling this PR as size/S |
The Jenkins unit/integration failed for strange reason:
|
GCE e2e build/test passed for commit 779012f78f15319ab7b06794301d441122777e15. |
|
@@ -221,6 +221,7 @@ type StandardStorage interface { | |||
GracefulDeleter | |||
CollectionDeleter | |||
Watcher | |||
Exporter |
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 don't think this should be required - it's desirable, but not required.
779012f
to
e977c64
Compare
@smarterclayton just update this. Besides now the export output of service is:
I am thinking whether we should update |
Labelling this PR as size/M |
GCE e2e build/test passed for commit e977c6424d9ee65c5909ba07652e1fdc0460a4a1. |
@adohe Yes, I'd prefer to output |
The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label? |
e977c64
to
49edf1b
Compare
@bgrant0607 I think about this for a while, and I prefer to use |
@adohe Good idea. |
GCE e2e build/test passed for commit 49edf1b24aeaf3d68b84c5548fcd685d18501c23. |
} | ||
|
||
// storage puts strong typing around storage calls | ||
type storage struct { | ||
rest.StandardStorage | ||
ss rest.StandardStorage |
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 did you name this?
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.
Please leave unnamed, or if you have to name it, use a name like 'delegate' or something else more descriptive. Tiny names are good for local variable names in short functions, but not good as members in structs.
Minor comments. |
49edf1b
to
990ae20
Compare
GCE e2e build/test passed for commit 990ae2011e47478ccae3c1b7d4c5ca0d00cfc6f2. |
@adohe PR needs rebase |
LGTM when rebased, thanks |
990ae20
to
c61cd2e
Compare
GCE e2e build/test passed for commit c61cd2e8527fd7927b9a53a167b8395f811c75ea. |
c61cd2e
to
b995800
Compare
GCE e2e build/test passed for commit b9958000ff5776e85e23040f0a98a8b24e1bf302. |
b995800
to
5fdfc4b
Compare
GCE e2e build/test passed for commit 5fdfc4b. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 5fdfc4b. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
@@ -90,7 +90,7 @@ func (svcStrategy) Export(obj runtime.Object, exact bool) error { | |||
return nil | |||
} | |||
if t.Spec.ClusterIP != api.ClusterIPNone { | |||
t.Spec.ClusterIP = "" | |||
t.Spec.ClusterIP = "<unknown>" |
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 this change?
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.
This prevents the exported resource from being created on another cluster, which defeats the purpose of export.
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.
Please refer #22247 for more details.
@bgrant0607 I just add a quick&simple fix, would you mind reviewing this?