-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[installer] support service type ClusterIP
for proxy
#10537
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
Conversation
if cfg.Common != nil && cfg.Common.ServiceConfig != nil { | ||
st, ok := cfg.Common.ServiceConfig["proxy"] | ||
if ok { | ||
if strings.ToLower(st.ServiceType) == "clusterip" { |
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 see this conditional doesn't have an else clause; if ServiceType
is misspelled (eg cluterip
) will this this code default to ServiceTypeLoadBalancer
? Is there validation occurring in this pipeline?
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 is a great point Adrien! I agree that we can add a validation process. As of this implementation, it just defaults to LoadBalancer
as set in this line.
About the validation, it is a great tip! We can leverage the existing validate
cmd! I will do a follow-up PR for this!
Copying my comment from Slack; My philosophy on pull request review is to provide constructive feedback and make notes where I see potential changes/improvements/risks, but to grant approval as quickly so the author can land the work when they're ready and adopt feedback at their discretion. I think this is ready to ship but there might be a case where an additional conditional clause (or documentation) could be useful. Since there are no blocking issues on this PR, is it following team policy to grant an approval here? And if we grant that approval, is that sufficient to merge the PR? |
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.
LGTM! 👍
100 % agree with this philosophy!
Approving PR is fine! ✔️ However, since we automatically merge PRs by a bot once all required approvals are given, you should add the hold label on this PR so that the author has the opportunity to address your comments. You can do this with this command in a comment: /hold The author just needs to remove the hold label or comment with (In this case, the PR still needs approval from Team WebApp. That's because this PR has not been merged yet automatically.) |
/unhold |
89a4ecd
to
4e651ec
Compare
4e651ec
to
8a4e416
Compare
c563eee
to
f59c23b
Compare
f59c23b
to
cad898d
Compare
cad898d
to
f6f8b0c
Compare
f6f8b0c
to
12256e2
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.
✔️
Description
Currently, there is no way to do a post-processing in
KOTS
like we suggest to do for replacing service type ofproxy
toClusterIP
. This PR introduces a new experimental field to the Config so users can provide a patch via the KOTS UI. The patch file can have the following structure:Related Issue(s)
Fixes #9981
How to test
Follow the instructions of this PR to setup a self-hosted installation with this change. Go to the
Config
tab of the KOTS UI. In the bottom you will see anEnable additional options
section. Enable it, and copy paste the aforementionedYAML
snippet to a file and upload it. Update the installment, and if you do akubectl get svc proxy -n gitpod
from the CLI you will see that it now hasClusterIP
type.Release Notes
Documentation