Skip to content

Commit

Permalink
fix(nextcloud): Don't require nodePort if none is specified #606
Browse files Browse the repository at this point in the history
Don't require `nodePort` to template if none is specified
  • Loading branch information
wrenix authored Sep 12, 2024
2 parents 5381a62 + 6f25538 commit fae58fe
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.5
version: 5.5.6
appVersion: 29.0.6
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 @@ -500,7 +500,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 fae58fe

Please sign in to comment.