Skip to content

Commit

Permalink
Do not define loadBalancerIP on service unless set in values (#430)
Browse files Browse the repository at this point in the history
* Update Chart.yaml

Signed-off-by: Ben Yanke <ben@benyanke.com>

* Update README.md

Signed-off-by: Ben Yanke <ben@benyanke.com>

* Update service.yaml

Signed-off-by: Ben Yanke <ben@benyanke.com>

* Update values.yaml

Signed-off-by: Ben Yanke <ben@benyanke.com>

* Bump version

Signed-off-by: Ben Yanke <ben@benyanke.com>

* Set to empty string instead of omitting value key

Co-authored-by: JesseBot <jessebot@linux.com>
Signed-off-by: Ben Yanke <ben@benyanke.com>

* Update charts/nextcloud/README.md

Co-authored-by: JesseBot <jessebot@linux.com>
Signed-off-by: Ben Yanke <ben@benyanke.com>

* Update charts/nextcloud/README.md - fix markdown chart formatting

Signed-off-by: JesseBot <jessebot@linux.com>

* Update charts/nextcloud/README.md - fix markdown formatting again

Signed-off-by: JesseBot <jessebot@linux.com>

---------

Signed-off-by: Ben Yanke <ben@benyanke.com>
Signed-off-by: JesseBot <jessebot@linux.com>
Co-authored-by: JesseBot <jessebot@linux.com>
  • Loading branch information
benyanke and jessebot authored Aug 23, 2023
1 parent 7ee7cf1 commit 3d31fa1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 4.0.0
version: 4.1.0
appVersion: 27.0.2
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ The following table lists the configurable parameters of the nextcloud chart and
| `cronjob.resources` | CPU/Memory resource requests/limits for the cronjob sidecar | `{}` |
| `cronjob.securityContext` | Optional security context for cronjob | `nil` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.loadBalancerIP` | LoadBalancerIp for service type LoadBalancer | `nil` |
| `service.loadBalancerIP` | LoadBalancerIp for service type LoadBalancer | `""` |
| `service.nodePort` | NodePort for service type NodePort | `nil` |
| `phpClientHttpsFix.enabled` | Sets OVERWRITEPROTOCOL for https ingress redirect | `false` |
| `phpClientHttpsFix.protocol` | Sets OVERWRITEPROTOCOL for https ingress redirect | `https` |
Expand Down
2 changes: 1 addition & 1 deletion charts/nextcloud/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
app.kubernetes.io/component: app
spec:
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerIP }}
loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
{{- end }}
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ cronjob:
service:
type: ClusterIP
port: 8080
loadBalancerIP: nil
loadBalancerIP: ""
nodePort: nil

## Enable persistence using Persistent Volume Claims
Expand Down

0 comments on commit 3d31fa1

Please sign in to comment.