Skip to content

Cleanup unused applicationPorts and inbound port meta#17986

Merged
istio-testing merged 2 commits intoistio:masterfrom
howardjohn:cleanup-application-ports
Oct 25, 2019
Merged

Cleanup unused applicationPorts and inbound port meta#17986
istio-testing merged 2 commits intoistio:masterfrom
howardjohn:cleanup-application-ports

Conversation

@howardjohn
Copy link
Copy Markdown
Member

Application ports is no longer used for sidecar, we now capture all. For
gateway, we added this as a short-sighted hack to work around proxy
start up issues. These issues have been fixed in multiple ways
(initial_fetch_timeout and checking server_info) so it is no longer
required.

The INCLUDE_INBOUND_PORTS metadata is never used either, so cleaned that
up. Note: this does not remove the annotation, which applies to the
iptables, just no longer passes to pilot.

Please provide a description for what this PR is for.

And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@howardjohn howardjohn requested review from a team, geeknoid, linsun and rshriram as code owners October 17, 2019 17:06
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Oct 17, 2019
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 17, 2019
@lambdai lambdai assigned lambdai, rshriram and diemtvu and unassigned lambdai and rshriram Oct 17, 2019
@lambdai
Copy link
Copy Markdown
Contributor

lambdai commented Oct 17, 2019

@diemtvu I am pretty sure you used applicationPorts in the past. And I do see TestAuthenticationZ test failure. Could you confirm?

@lambdai
Copy link
Copy Markdown
Contributor

lambdai commented Oct 17, 2019

@howardjohn Thank you for the clean up! ISTIO_META_INCLUDE_INBOUND_PORTS can be removed as we chatted. But applicationPort is slightly out of control. It's a little more than it was designed as readiness only. I will let @diemtvu to confirm

@howardjohn
Copy link
Copy Markdown
Member Author

I think the failure is just a test flake

@howardjohn
Copy link
Copy Markdown
Member Author

/retest

@diemtvu
Copy link
Copy Markdown
Contributor

diemtvu commented Oct 21, 2019

/lgtm

FYI + @yangminzhu

@howardjohn
Copy link
Copy Markdown
Member Author

@istio/wg-environments-maintainers please take a look

@howardjohn howardjohn force-pushed the cleanup-application-ports branch from 707f845 to ca3e867 Compare October 23, 2019 16:23
@howardjohn howardjohn requested a review from a team as a code owner October 23, 2019 16:23
@howardjohn
Copy link
Copy Markdown
Member Author

/retest

@howardjohn
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@howardjohn
Copy link
Copy Markdown
Member Author

/retest

Application ports is no longer used for sidecar, we now capture all. For
gateway, we added this as a short-sighted hack to work around proxy
start up issues. These issues have been fixed in multiple ways
(initial_fetch_timeout and checking server_info) so it is no longer
required.

The INCLUDE_INBOUND_PORTS metadata is never used either, so cleaned that
up. Note: this does not remove the annotation, which applies to the
iptables, just no longer passes to pilot.
@howardjohn howardjohn force-pushed the cleanup-application-ports branch from ca3e867 to 508650b Compare October 24, 2019 02:27
@howardjohn
Copy link
Copy Markdown
Member Author

/retest

Copy link
Copy Markdown
Contributor

@lambdai lambdai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@istio-testing istio-testing merged commit 46bbbce into istio:master Oct 25, 2019
howardjohn added a commit to howardjohn/istio that referenced this pull request Oct 26, 2019
This was removed in istio#17986. The
removal was not neccesarily wrong, but it means that the injector
deployment and injection template need to move in lock step, which has
some problems. Specifically, the operator did not have charts updated,
so it fails now, and anyone using :latest tags will also fail without
updating the template.

There is a near-zero cost of keeping the function around, so we might as
well add it back to make things a bit simpler.
istio-testing pushed a commit that referenced this pull request Oct 28, 2019
This was removed in #17986. The
removal was not neccesarily wrong, but it means that the injector
deployment and injection template need to move in lock step, which has
some problems. Specifically, the operator did not have charts updated,
so it fails now, and anyone using :latest tags will also fail without
updating the template.

There is a near-zero cost of keeping the function around, so we might as
well add it back to make things a bit simpler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.