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

feat(atlantis): add containerPort custom #444

Merged
merged 11 commits into from
Jan 2, 2025

Conversation

jullianow
Copy link
Contributor

what

This change seeks to provide the possibility of defining a port for the container different from the one specified in the service.

why

This change aims to maintain compatibility with scenarios in which the Atlantis administrator wants to deploy a sidecar (using the extraContainers property) in which it will receive the traffic coming from the Service. This is a case, for example, when we want to have an oauth2-proxy responding to requests and acting as a proxy for Atlantis. With this change, this will still be possible for those who need it. By default, the behavior continues to be that the Service's targetPort is the same value for the Atlantis ContainerPort.

@jullianow jullianow requested a review from a team as a code owner December 20, 2024 22:46
@jullianow jullianow force-pushed the containerport-custom branch 4 times, most recently from 14ee0f8 to f8a8caa Compare December 20, 2024 23:26
Copy link
Member

@GMartinez-Sisti GMartinez-Sisti left a comment

Choose a reason for hiding this comment

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

Hi @jullianow, thank you for your contrubtion.

Please check the comment below and also:

  • bump chart minor version due to new feature
  • update the comment to reflect the new feature

    -- (int) [optional] Define the port you would like atlantis to run on. Defaults to 4141.

charts/atlantis/values.yaml Outdated Show resolved Hide resolved
@GMartinez-Sisti GMartinez-Sisti added the waiting-on-response Waiting for a response from the user label Dec 21, 2024
@jullianow jullianow force-pushed the containerport-custom branch 2 times, most recently from 6f38d76 to 7548d87 Compare December 23, 2024 11:11
Copy link
Member

@GMartinez-Sisti GMartinez-Sisti left a comment

Choose a reason for hiding this comment

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

Thanks for the update, just missing some details.

charts/atlantis/values.yaml Outdated Show resolved Hide resolved
charts/atlantis/values.schema.json Show resolved Hide resolved
@jullianow jullianow force-pushed the containerport-custom branch from fc10b46 to e475552 Compare January 2, 2025 12:13
@jullianow jullianow force-pushed the containerport-custom branch from e475552 to c399db9 Compare January 2, 2025 12:26
renovate bot and others added 4 commits January 2, 2025 09:27
…0 in charts/atlantis/chart.yaml (runatlantis#445)

* chore(deps): update ghcr.io/runatlantis/atlantis docker tag to v0.32.0 in charts/atlantis/chart.yaml

* Bump minor version

Signed-off-by: Gabriel Martinez <[email protected]>

---------

Signed-off-by: Gabriel Martinez <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Martinez <[email protected]>
Signed-off-by: Julliano Goncalves <[email protected]>
Signed-off-by: Julliano Goncalves <[email protected]>
Signed-off-by: Julliano Goncalves <[email protected]>
…kflows/lint-test.yaml (runatlantis#447)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Julliano Goncalves <[email protected]>
@jullianow jullianow force-pushed the containerport-custom branch from c399db9 to 45060d7 Compare January 2, 2025 12:27
jullianow and others added 6 commits January 2, 2025 09:27
Signed-off-by: Julliano Goncalves <[email protected]>
Signed-off-by: Julliano Goncalves <[email protected]>
…kflows/lint-test.yaml (runatlantis#447)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Julliano Goncalves <[email protected]>
Copy link
Member

@GMartinez-Sisti GMartinez-Sisti left a comment

Choose a reason for hiding this comment

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

Thanks @jullianow!

@GMartinez-Sisti GMartinez-Sisti merged commit df2e47c into runatlantis:main Jan 2, 2025
5 checks passed
@jullianow jullianow deleted the containerport-custom branch January 2, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-on-response Waiting for a response from the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants