Ver Fonte

Move nextcloud to ix-dev (#1050)

* move nextcloud to ix-dev

* fix probe and update lock

* indent
Stavros Kois há 2 anos atrás
pai
commit
91261f378f
35 ficheiros alterados com 131 adições e 85 exclusões
  1. 0 6
      charts/nextcloud/1.6.18/Chart.lock
  2. 0 22
      charts/nextcloud/1.6.18/Chart.yaml
  3. BIN
      charts/nextcloud/1.6.18/charts/common-2207.0.0.tgz
  4. 0 6
      charts/nextcloud/1.6.18/requirements.lock
  5. 0 17
      charts/nextcloud/1.6.18/templates/postgres-deployment.yaml
  6. 0 21
      charts/nextcloud/1.6.18/templates/tests/deployment-check.yaml
  7. 0 0
      library/ix-dev/charts/nextcloud/.helmignore
  8. 6 0
      library/ix-dev/charts/nextcloud/Chart.lock
  9. 29 0
      library/ix-dev/charts/nextcloud/Chart.yaml
  10. 0 0
      library/ix-dev/charts/nextcloud/README.md
  11. 0 0
      library/ix-dev/charts/nextcloud/app-readme.md
  12. BIN
      library/ix-dev/charts/nextcloud/charts/common-2207.0.0.tgz
  13. 0 9
      library/ix-dev/charts/nextcloud/ci/test-values.yaml
  14. 0 0
      library/ix-dev/charts/nextcloud/item.yaml
  15. 0 0
      library/ix-dev/charts/nextcloud/migrations/migrate_from_1.1.0
  16. 0 0
      library/ix-dev/charts/nextcloud/questions.yaml
  17. 0 0
      library/ix-dev/charts/nextcloud/templates/NOTES.txt
  18. 0 0
      library/ix-dev/charts/nextcloud/templates/_nginx.tpl
  19. 0 0
      library/ix-dev/charts/nextcloud/templates/_postgres.tpl
  20. 0 0
      library/ix-dev/charts/nextcloud/templates/backup-postgres-config.yaml
  21. 0 0
      library/ix-dev/charts/nextcloud/templates/backup-postgres-hook.yaml
  22. 0 0
      library/ix-dev/charts/nextcloud/templates/cronjob.yaml
  23. 46 4
      library/ix-dev/charts/nextcloud/templates/deployment.yaml
  24. 0 0
      library/ix-dev/charts/nextcloud/templates/nginx-configmap.yaml
  25. 0 0
      library/ix-dev/charts/nextcloud/templates/nginx-secret.yaml
  26. 0 0
      library/ix-dev/charts/nextcloud/templates/nuke-deployments-hook.yaml
  27. 50 0
      library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml
  28. 0 0
      library/ix-dev/charts/nextcloud/templates/postgres-secret.yaml
  29. 0 0
      library/ix-dev/charts/nextcloud/templates/postgres-service.yaml
  30. 0 0
      library/ix-dev/charts/nextcloud/templates/secrets.yaml
  31. 0 0
      library/ix-dev/charts/nextcloud/templates/service.yaml
  32. 0 0
      library/ix-dev/charts/nextcloud/templates/serviceaccount.yaml
  33. 0 0
      library/ix-dev/charts/nextcloud/upgrade_info.json
  34. 0 0
      library/ix-dev/charts/nextcloud/upgrade_strategy
  35. 0 0
      library/ix-dev/charts/nextcloud/values.yaml

+ 0 - 6
charts/nextcloud/1.6.18/Chart.lock

@@ -1,6 +0,0 @@
-dependencies:
-- name: common
-  repository: file://../../../library/common/2207.0.0
-  version: 2207.0.0
-digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506
-generated: "2022-07-28T22:31:02.992776385+05:00"

+ 0 - 22
charts/nextcloud/1.6.18/Chart.yaml

@@ -1,22 +0,0 @@
-apiVersion: v2
-appVersion: 25.0.4
-dependencies:
-- name: common
-  repository: file://../../../library/common/2207.0.0
-  version: 2207.0.0
-description: A file sharing server that puts the control and security of your own
-  data back into your hands.
-home: https://nextcloud.com/
-icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg
-keywords:
-- nextcloud
-- storage
-- http
-- web
-- php
-name: nextcloud
-sources:
-- https://github.com/nextcloud/docker
-- https://github.com/nextcloud/helm
-upstream_version: 2.3.2
-version: 1.6.18

BIN
charts/nextcloud/1.6.18/charts/common-2207.0.0.tgz


+ 0 - 6
charts/nextcloud/1.6.18/requirements.lock

@@ -1,6 +0,0 @@
-dependencies:
-- name: common
-  repository: file://../../../library/common/2207.0.0
-  version: 2207.0.0
-digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
-generated: "2021-05-10T13:07:35.423192+05:00"

+ 0 - 17
charts/nextcloud/1.6.18/templates/postgres-deployment.yaml

@@ -1,17 +0,0 @@
-{{ $values := (. | mustDeepCopy) }}
-{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
-{{ include "common.deployment.common_config" $values | nindent 0 }}
-spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
-  template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }}
-    spec:
-      containers:
-      - name: {{ .Chart.Name }}-postgres
-        image: {{ template "postgres.imageName" . }}
-        imagePullPolicy: {{ .Values.image.pullPolicy }}
-        env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }}
-        volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }}
-        ports:
-        - name: postgres-tcp
-          containerPort: 5432
-          protocol: TCP
-      volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }}

+ 0 - 21
charts/nextcloud/1.6.18/templates/tests/deployment-check.yaml

@@ -1,21 +0,0 @@
-{{- $serviceName := (include "common.names.fullname" .) -}}
-apiVersion: v1
-kind: Pod
-metadata:
-  name: "{{ .Release.Name }}-nextcloud-test"
-  labels:
-    app: {{ .Release.Name }}
-    release: {{ .Release.Name }}
-  annotations:
-    "helm.sh/hook": test
-spec:
-    containers:
-      - name: test-curl
-        image: alpine/curl
-        imagePullPolicy: "IfNotPresent"
-        command:
-          - /bin/sh
-          - -ec
-          - |
-            curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}/login
-    restartPolicy: Never

+ 0 - 0
charts/nextcloud/1.6.18/.helmignore → library/ix-dev/charts/nextcloud/.helmignore


+ 6 - 0
library/ix-dev/charts/nextcloud/Chart.lock

@@ -0,0 +1,6 @@
+dependencies:
+- name: common
+  repository: file://../../../common/2207.0.0
+  version: 2207.0.0
+digest: sha256:a301ba0f99ec1e08a60a7f0a0320aa02d225993572f2f056f09520f06df88b37
+generated: "2023-03-22T15:32:05.580526674Z"

+ 29 - 0
library/ix-dev/charts/nextcloud/Chart.yaml

@@ -0,0 +1,29 @@
+name: nextcloud
+description: A file sharing server that puts the control and security of your own
+  data back into your hands.
+annotations:
+  title: Nextcloud
+type: application
+version: 1.6.19
+apiVersion: v2
+appVersion: '25.0.4'
+kubeVersion: '>=1.16.0-0'
+maintainers:
+  - name: truenas
+    url: https://www.truenas.com/
+dependencies:
+  - name: common
+    repository: file://../../../common/2207.0.0
+    version: 2207.0.0
+home: https://nextcloud.com/
+icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg
+sources:
+  - https://github.com/nextcloud/docker
+  - https://github.com/nextcloud/helm
+  - https://github.com/truenas/charts/tree/master/library/ix-dev/charts/nextcloud
+keywords:
+  - nextcloud
+  - storage
+  - http
+  - web
+  - php

+ 0 - 0
charts/nextcloud/1.6.18/README.md → library/ix-dev/charts/nextcloud/README.md


+ 0 - 0
charts/nextcloud/1.6.18/app-readme.md → library/ix-dev/charts/nextcloud/app-readme.md


BIN
library/ix-dev/charts/nextcloud/charts/common-2207.0.0.tgz


+ 0 - 9
charts/nextcloud/1.6.18/test_values.yaml → library/ix-dev/charts/nextcloud/ci/test-values.yaml

@@ -9,10 +9,6 @@ dnsConfig:
   options: []
 emptyDirVolumes: true
 environmentVariables: []
-image:
-  pullPolicy: IfNotPresent
-  repository: nextcloud
-  tag: 25.0.4
 ixChartContext: {}
 nextcloud:
   datadir: /var/www/html/data
@@ -20,11 +16,6 @@ nextcloud:
   install_ffmpeg: true
   password: changeme
   username: admin
-nginx:
-  image:
-    pullPolicy: IfNotPresent
-    repository: nginx
-    tag: 1.23.3
 postgresAppVolumeMounts:
   postgres-backup:
     emptyDir: true

+ 0 - 0
charts/nextcloud/item.yaml → library/ix-dev/charts/nextcloud/item.yaml


+ 0 - 0
charts/nextcloud/1.6.18/migrations/migrate_from_1.1.0 → library/ix-dev/charts/nextcloud/migrations/migrate_from_1.1.0


+ 0 - 0
charts/nextcloud/1.6.18/questions.yaml → library/ix-dev/charts/nextcloud/questions.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/NOTES.txt → library/ix-dev/charts/nextcloud/templates/NOTES.txt


+ 0 - 0
charts/nextcloud/1.6.18/templates/_nginx.tpl → library/ix-dev/charts/nextcloud/templates/_nginx.tpl


+ 0 - 0
charts/nextcloud/1.6.18/templates/_postgres.tpl → library/ix-dev/charts/nextcloud/templates/_postgres.tpl


+ 0 - 0
charts/nextcloud/1.6.18/templates/backup-postgres-config.yaml → library/ix-dev/charts/nextcloud/templates/backup-postgres-config.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/backup-postgres-hook.yaml → library/ix-dev/charts/nextcloud/templates/backup-postgres-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/cronjob.yaml → library/ix-dev/charts/nextcloud/templates/cronjob.yaml


+ 46 - 4
charts/nextcloud/1.6.18/templates/deployment.yaml → library/ix-dev/charts/nextcloud/templates/deployment.yaml

@@ -28,6 +28,45 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
           - name: nginx-https
             containerPort: 443
             protocol: TCP
+        livenessProbe:
+          httpGet:
+            scheme: HTTPS
+            path: /status.php
+            port: 443
+            httpHeaders:
+            - name: Host
+              value: localhost
+          initialDelaySeconds: 10
+          periodSeconds: 10
+          timeoutSeconds: 5
+          failureThreshold: 5
+          successThreshold: 1
+        readinessProbe:
+          httpGet:
+            scheme: HTTPS
+            path: /status.php
+            port: 443
+            httpHeaders:
+            - name: Host
+              value: localhost
+          initialDelaySeconds: 10
+          periodSeconds: 10
+          timeoutSeconds: 5
+          failureThreshold: 5
+          successThreshold: 2
+        startupProbe:
+          httpGet:
+            scheme: HTTPS
+            path: /status.php
+            port: 443
+            httpHeaders:
+            - name: Host
+              value: localhost
+          initialDelaySeconds: 10
+          periodSeconds: 5
+          timeoutSeconds: 2
+          failureThreshold: 60
+          successThreshold: 1
       {{ end }}
       - name: {{ .Chart.Name }}
           {{ include "common.resources.limitation" . | nindent 8 }}
@@ -63,10 +102,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
             httpHeaders:
             - name: Host
               value: localhost
-          initialDelaySeconds: 30
+          initialDelaySeconds: 10
           periodSeconds: 10
           timeoutSeconds: 5
           failureThreshold: 5
+          successThreshold: 1
         readinessProbe:
           httpGet:
             path: /status.php
@@ -74,10 +114,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
             httpHeaders:
             - name: Host
               value: localhost
-          initialDelaySeconds: 30
+          initialDelaySeconds: 10
           periodSeconds: 10
           timeoutSeconds: 5
           failureThreshold: 5
+          successThreshold: 1
         startupProbe:
         {{- if .Values.nextcloud.install_ffmpeg }}
           exec:
@@ -94,10 +135,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
             - name: Host
               value: localhost
         {{- end }}
-          initialDelaySeconds: 60
+          initialDelaySeconds: 10
           periodSeconds: 10
           timeoutSeconds: 5
-          failureThreshold: 60
+          failureThreshold: 5
+          successThreshold: 1
         volumeMounts:
         - name: nextcloud-data
           mountPath: /var/www/

+ 0 - 0
charts/nextcloud/1.6.18/templates/nginx-configmap.yaml → library/ix-dev/charts/nextcloud/templates/nginx-configmap.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/nginx-secret.yaml → library/ix-dev/charts/nextcloud/templates/nginx-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/nuke-deployments-hook.yaml → library/ix-dev/charts/nextcloud/templates/nuke-deployments-hook.yaml


+ 50 - 0
library/ix-dev/charts/nextcloud/templates/postgres-deployment.yaml

@@ -0,0 +1,50 @@
+{{ $values := (. | mustDeepCopy) }}
+{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
+{{ include "common.deployment.common_config" $values | nindent 0 }}
+spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
+  template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }}
+    spec:
+      containers:
+      - name: {{ .Chart.Name }}-postgres
+        image: {{ template "postgres.imageName" . }}
+        imagePullPolicy: {{ .Values.image.pullPolicy }}
+        env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }}
+        volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }}
+        ports:
+        - name: postgres-tcp
+          containerPort: 5432
+          protocol: TCP
+        readinessProbe:
+          exec:
+            command:
+              - sh
+              - -c
+              - "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2; done"
+          initialDelaySeconds: 10
+          periodSeconds: 10
+          timeoutSeconds: 5
+          failureThreshold: 5
+          successThreshold: 2
+        livenessProbe:
+          exec:
+            command:
+              - sh
+              - -c
+              - "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2; done"
+          initialDelaySeconds: 10
+          periodSeconds: 10
+          timeoutSeconds: 5
+          failureThreshold: 5
+          successThreshold: 1
+        startupProbe:
+          exec:
+            command:
+              - sh
+              - -c
+              - "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2; done"
+          initialDelaySeconds: 10
+          periodSeconds: 5
+          timeoutSeconds: 2
+          failureThreshold: 60
+          successThreshold: 1
+      volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }}

+ 0 - 0
charts/nextcloud/1.6.18/templates/postgres-secret.yaml → library/ix-dev/charts/nextcloud/templates/postgres-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/postgres-service.yaml → library/ix-dev/charts/nextcloud/templates/postgres-service.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/secrets.yaml → library/ix-dev/charts/nextcloud/templates/secrets.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/service.yaml → library/ix-dev/charts/nextcloud/templates/service.yaml


+ 0 - 0
charts/nextcloud/1.6.18/templates/serviceaccount.yaml → library/ix-dev/charts/nextcloud/templates/serviceaccount.yaml


+ 0 - 0
charts/nextcloud/upgrade_info.json → library/ix-dev/charts/nextcloud/upgrade_info.json


+ 0 - 0
charts/nextcloud/upgrade_strategy → library/ix-dev/charts/nextcloud/upgrade_strategy


+ 0 - 0
charts/nextcloud/1.6.18/ix_values.yaml → library/ix-dev/charts/nextcloud/values.yaml