-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/mongodb] loadBalancerSourceRanges can be specified for mongodb Helm chart #15324
[stable/mongodb] loadBalancerSourceRanges can be specified for mongodb Helm chart #15324
Conversation
Signed-off-by: Peter Moffatt <[email protected]>
Hi @peter-moffatt. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Peter Moffatt <[email protected]>
/assign @sameersbn |
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 so much for this contribution @peter-moffatt
Could you please take a look to my suggestions? Thanks in advance.
@@ -22,6 +22,10 @@ spec: | |||
{{- if .Values.service.externalIPs }} | |||
externalIPs: {{ toYaml .Values.service.externalIPs | nindent 4 }} | |||
{{- end }} | |||
{{- if .Values.service.loadBalancerSourceRanges }} | |||
loadBalancerSourceRanges: | |||
{{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }} |
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.
Since you're using nindent
, you can use a single line:
+ loadBalancerSourceRanges: {{ toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
- loadBalancerSourceRanges:
- {{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
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 fast response. I've applied the change and confirmed it works as expected on my end.
@@ -22,6 +22,10 @@ spec: | |||
{{- if .Values.service.externalIPs }} | |||
externalIPs: {{ toYaml .Values.service.externalIPs | nindent 4 }} | |||
{{- end }} | |||
{{- if .Values.service.loadBalancerSourceRanges }} | |||
loadBalancerSourceRanges: |
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.
Same suggestion
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.
Change applied.
Signed-off-by: Peter Moffatt <[email protected]>
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 applying the suggestions! Approving your changes
/ok-to-test |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: juan131, peter-moffatt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…b Helm chart (helm#15324) * loadBalancerSourceRanges can be specified for mongodb Helm chart Signed-off-by: Peter Moffatt <[email protected]> * Bump chart version Signed-off-by: Peter Moffatt <[email protected]> * Minor change to formatting Signed-off-by: Peter Moffatt <[email protected]>
What this PR does / why we need it:
Allows
loadBalancerSourceRanges
to be specified on the mongodb Service. This is required by anyone who wants to restrict the IP ranges which can access a deployed mongodb instance.@tompizmor
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/chart]
)