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 29, 2024
1 parent 264a32a commit e2f7672
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.5.0
version: 5.5.1
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 @@ -495,7 +495,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 e2f7672

Please sign in to comment.