diff --git a/stable/nextcloud/Chart.yaml b/stable/nextcloud/Chart.yaml index 80623e216b..878ab81350 100644 --- a/stable/nextcloud/Chart.yaml +++ b/stable/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: nextcloud -version: 1.0.3 +version: 1.0.4 appVersion: 15.0.2 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/stable/nextcloud/templates/_helpers.tpl b/stable/nextcloud/templates/_helpers.tpl index 0c406c3aa1..edf3149eeb 100644 --- a/stable/nextcloud/templates/_helpers.tpl +++ b/stable/nextcloud/templates/_helpers.tpl @@ -32,27 +32,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{/* -Get the user defined LoadBalancerIP for this release. -Note, returns 127.0.0.1 if using ClusterIP. -*/}} -{{- define "nextcloud.serviceIP" -}} -{{- if eq .Values.service.type "ClusterIP" -}} -127.0.0.1 -{{- else -}} -{{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} -{{- end -}} -{{- end -}} - -{{/* -Gets the host to be used for this application. -If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value will be empty. -*/}} -{{- define "nextcloud.host" -}} -{{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} -{{- default (include "nextcloud.serviceIP" .) $host -}} -{{- end -}} - {{/* Create chart name and version as used by the chart label. */}} diff --git a/stable/nextcloud/templates/deployment.yaml b/stable/nextcloud/templates/deployment.yaml index e06a1041a1..ec0a426f2c 100644 --- a/stable/nextcloud/templates/deployment.yaml +++ b/stable/nextcloud/templates/deployment.yaml @@ -1,4 +1,3 @@ -{{- if include "nextcloud.host" . -}} apiVersion: apps/v1 kind: Deployment metadata: @@ -89,7 +88,7 @@ spec: port: http httpHeaders: - name: Host - value: {{ include "nextcloud.host" . | quote }} + value: {{ .Values.nextcloud.host | quote }} initialDelaySeconds: 30 timeoutSeconds: 5 failureThreshold: 6 @@ -99,7 +98,7 @@ spec: port: http httpHeaders: - name: Host - value: {{ include "nextcloud.host" . | quote }} + value: {{ .Values.nextcloud.host | quote }} initialDelaySeconds: 30 timeoutSeconds: 3 periodSeconds: 5 @@ -141,4 +140,3 @@ spec: {{- else }} emptyDir: {} {{- end }} -{{- end -}} diff --git a/stable/nextcloud/templates/tests/test-connection.yaml b/stable/nextcloud/templates/tests/test-connection.yaml deleted file mode 100644 index b1de9095cf..0000000000 --- a/stable/nextcloud/templates/tests/test-connection.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "nextcloud.fullname" . }}-test-connection" - labels: - app.kubernetes.io/name: {{ include "nextcloud.name" . }} - helm.sh/chart: {{ include "nextcloud.chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['--header', 'Host: {{ .Values.nextcloud.host }}', '{{ include "nextcloud.fullname" . }}:{{ .Values.service.port }}/status.php'] - restartPolicy: Never