-
Notifications
You must be signed in to change notification settings - Fork 190
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
base: main
Are you sure you want to change the base?
Conversation
4e9ac05
to
14ee0f8
Compare
Signed-off-by: Julliano Goncalves <[email protected]>
14ee0f8
to
f8a8caa
Compare
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.
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.
f537c79
to
6f38d76
Compare
Signed-off-by: Julliano Goncalves <[email protected]>
6f38d76
to
7548d87
Compare
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 the update, just missing some details.
@@ -172,13 +172,16 @@ serviceAccountSecrets: {} | |||
# Default values for atlantis (override as needed). | |||
## -------------------------- ## | |||
|
|||
# -- (int) [optional] Define the port you would like atlantis to run on. Defaults to 4141. |
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.
# -- (int) [optional] Define the port you would like atlantis to run on. Defaults to 4141. | |
# -- (int) [optional] Define the port you would like atlantis to run on. When 0, the value of service.targetPort is used. |
@@ -267,6 +267,15 @@ | |||
} | |||
} | |||
}, | |||
"containerPort": { |
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.
Type needs to be integer alone with default as 0.
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.