Skip to content
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

Enable port configurability #315

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Conversation

jpmcb
Copy link
Contributor

@jpmcb jpmcb commented Oct 25, 2022

- Api-server: Port can be configured from default 8443
- Agent / webhook: Port can be configured from default 443

Signed-off-by: John McBride <jpmmcb@amazon.com>

Issue number:

Closes: #305

Description of changes:

Enables ports used by the API server and the agent to be configurable. Removes constant values and instead, interpolates from the container environment.

Testing done:

Ran through integration testing 👍🏼

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@jpmcb jpmcb marked this pull request as ready for review October 25, 2022 21:49
@jpmcb jpmcb requested a review from gthao313 October 25, 2022 21:50
Copy link
Contributor

@stmcginnis stmcginnis left a comment

Choose a reason for hiding this comment

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

Just a couple minor things.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
apiserver/src/main.rs Outdated Show resolved Hide resolved
@gthao313
Copy link
Member

Test looks good on my side.

- Api-server: Port can be configured from default 8443
- Agent / webhook: Port can be configured from default 443

Signed-off-by: John McBride <jpmmcb@amazon.com>
@jpmcb
Copy link
Contributor Author

jpmcb commented Oct 26, 2022

Force pushed to address above nits/comments! ✍🏼

@jpmcb jpmcb requested a review from stmcginnis October 26, 2022 21:16
Copy link
Contributor

@stmcginnis stmcginnis left a comment

Choose a reason for hiding this comment

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

Looks good!

@jpmcb jpmcb merged commit a3be9f6 into bottlerocket-os:develop Oct 26, 2022
@jpmcb jpmcb deleted the port-config branch October 26, 2022 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make API server ports configurable
3 participants