Skip to content

Commit

Permalink
Don't require nodePort if none is specified
Browse files Browse the repository at this point in the history
fixes #44

Signed-off-by: jessebot <[email protected]>
  • Loading branch information
jessebot committed Jul 26, 2024
1 parent bf6cc4a commit f687638
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 5.3.2
version: 5.3.3
appVersion: 29.0.4
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
6 changes: 3 additions & 3 deletions charts/nextcloud/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ spec:
targetPort: {{ .Values.nextcloud.containerPort }}
protocol: TCP
name: http
{{- if (eq .Values.service.type "NodePort") }}
nodePort: {{ .Values.service.nodePort | default "" }}
{{- with .Values.service.nodePort }}
nodePort: {{ . }}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: app
app.kubernetes.io/component: app
2 changes: 1 addition & 1 deletion charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ service:
type: ClusterIP
port: 8080
loadBalancerIP: ""
nodePort: nil
nodePort:
annotations: {}
## Insert your annotations such as below
# test/test: pumuckel
Expand Down

0 comments on commit f687638

Please sign in to comment.