From 253a7443373b79267a07b04e4e0408cd9be1b4da Mon Sep 17 00:00:00 2001 From: sonicaj Date: Tue, 22 Jun 2021 11:54:19 +0500 Subject: [PATCH] Update nextcloud version --- charts/nextcloud/1.3.0/.helmignore | 21 ++ charts/nextcloud/1.3.0/Chart.lock | 6 + charts/nextcloud/1.3.0/Chart.yaml | 22 ++ charts/nextcloud/1.3.0/README.md | 11 + charts/nextcloud/1.3.0/app-readme.md | 3 + .../1.3.0/charts/common-2105.0.0.tgz | Bin 0 -> 4289 bytes charts/nextcloud/1.3.0/default_values.yaml | 30 +++ charts/nextcloud/1.3.0/ix_values.yaml | 4 + .../1.3.0/migrations/migrate_from_1.1.0 | 26 ++ charts/nextcloud/1.3.0/questions.yaml | 238 ++++++++++++++++++ charts/nextcloud/1.3.0/templates/NOTES.txt | 3 + .../nextcloud/1.3.0/templates/_postgres.tpl | 49 ++++ .../templates/backup-postgres-config.yaml | 15 ++ .../1.3.0/templates/backup-postgres-hook.yaml | 39 +++ .../nextcloud/1.3.0/templates/deployment.yaml | 64 +++++ .../templates/nuke-deployments-hook.yaml | 24 ++ .../1.3.0/templates/postgres-deployment.yaml | 17 ++ .../1.3.0/templates/postgres-secret.yaml | 13 + .../1.3.0/templates/postgres-service.yaml | 6 + charts/nextcloud/1.3.0/templates/secrets.yaml | 13 + charts/nextcloud/1.3.0/templates/service.yaml | 6 + .../1.3.0/templates/serviceaccount.yaml | 35 +++ charts/nextcloud/1.3.0/test_values.yaml | 46 ++++ charts/nextcloud/1.3.0/values.yaml | 0 24 files changed, 691 insertions(+) create mode 100644 charts/nextcloud/1.3.0/.helmignore create mode 100644 charts/nextcloud/1.3.0/Chart.lock create mode 100644 charts/nextcloud/1.3.0/Chart.yaml create mode 100644 charts/nextcloud/1.3.0/README.md create mode 100644 charts/nextcloud/1.3.0/app-readme.md create mode 100644 charts/nextcloud/1.3.0/charts/common-2105.0.0.tgz create mode 100644 charts/nextcloud/1.3.0/default_values.yaml create mode 100644 charts/nextcloud/1.3.0/ix_values.yaml create mode 100755 charts/nextcloud/1.3.0/migrations/migrate_from_1.1.0 create mode 100644 charts/nextcloud/1.3.0/questions.yaml create mode 100644 charts/nextcloud/1.3.0/templates/NOTES.txt create mode 100644 charts/nextcloud/1.3.0/templates/_postgres.tpl create mode 100644 charts/nextcloud/1.3.0/templates/backup-postgres-config.yaml create mode 100644 charts/nextcloud/1.3.0/templates/backup-postgres-hook.yaml create mode 100644 charts/nextcloud/1.3.0/templates/deployment.yaml create mode 100644 charts/nextcloud/1.3.0/templates/nuke-deployments-hook.yaml create mode 100644 charts/nextcloud/1.3.0/templates/postgres-deployment.yaml create mode 100644 charts/nextcloud/1.3.0/templates/postgres-secret.yaml create mode 100644 charts/nextcloud/1.3.0/templates/postgres-service.yaml create mode 100644 charts/nextcloud/1.3.0/templates/secrets.yaml create mode 100644 charts/nextcloud/1.3.0/templates/service.yaml create mode 100644 charts/nextcloud/1.3.0/templates/serviceaccount.yaml create mode 100644 charts/nextcloud/1.3.0/test_values.yaml create mode 100644 charts/nextcloud/1.3.0/values.yaml diff --git a/charts/nextcloud/1.3.0/.helmignore b/charts/nextcloud/1.3.0/.helmignore new file mode 100644 index 0000000000..f0c1319444 --- /dev/null +++ b/charts/nextcloud/1.3.0/.helmignore @@ -0,0 +1,21 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj diff --git a/charts/nextcloud/1.3.0/Chart.lock b/charts/nextcloud/1.3.0/Chart.lock new file mode 100644 index 0000000000..9395bdf3f9 --- /dev/null +++ b/charts/nextcloud/1.3.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../library/common/2105.0.0 + version: 2105.0.0 +digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6 +generated: "2021-05-10T13:07:35.317071+05:00" diff --git a/charts/nextcloud/1.3.0/Chart.yaml b/charts/nextcloud/1.3.0/Chart.yaml new file mode 100644 index 0000000000..7f44eb64f3 --- /dev/null +++ b/charts/nextcloud/1.3.0/Chart.yaml @@ -0,0 +1,22 @@ +apiVersion: v2 +name: nextcloud +version: 1.3.0 +appVersion: 21.0.2 +description: A file sharing server that puts the control and security of your own data back into your hands. +keywords: +- nextcloud +- storage +- http +- web +- php +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 +upstream_version: 2.3.2 +dependencies: + - name: common + repository: file://../../../library/common/2105.0.0 + version: 2105.0.0 + diff --git a/charts/nextcloud/1.3.0/README.md b/charts/nextcloud/1.3.0/README.md new file mode 100644 index 0000000000..28f3c66405 --- /dev/null +++ b/charts/nextcloud/1.3.0/README.md @@ -0,0 +1,11 @@ +# nextcloud + +[nextcloud](https://nextcloud.com/) is a file sharing server that puts the control and security of your own data back into your hands. + +## Introduction + +This chart bootstraps an [nextcloud](https://hub.docker.com/_/nextcloud/) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + +## Configuration + +Please refer to questions.yaml for a detailed overview on supported configurable values. diff --git a/charts/nextcloud/1.3.0/app-readme.md b/charts/nextcloud/1.3.0/app-readme.md new file mode 100644 index 0000000000..f2e78c31f9 --- /dev/null +++ b/charts/nextcloud/1.3.0/app-readme.md @@ -0,0 +1,3 @@ +# nextcloud + +[nextcloud](https://nextcloud.com/) is a file sharing server that puts the control and security of your own data back into your hands. diff --git a/charts/nextcloud/1.3.0/charts/common-2105.0.0.tgz b/charts/nextcloud/1.3.0/charts/common-2105.0.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..6a406ffcec6572d62ae8c6dc3738a211b22477c3 GIT binary patch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K5`*WhOyF_wqUMN^amAe3}Ku6?*vfe(F{VH#pa^siVJ;xQCW@#H&1eRf?zke-VaZzdWZJv+J z5F#HPwb;FU)HrC`G)96X5;pIb3l zevFm;zqeoi`(KBh?fowsDbL{&Nr^etjy^*Ha5u&j202L+LPwCH_!f<@h=S*!569a- z2p~X=ahk#?WdoCoM(F5g;5bE+OtFz8Wj&%v@Ej-}8Ghc$I3ALZI5B_e;on*j=)Xw7 zsP3syf(&y=3B^$monGBsNyc&T9PDjn?@q2DAzTE}h{(47*PtInga6}g{jaMSkJ{=V z_b8^cT>=`Q_%_dANc3^PNZe(?%V>aZgO`z+53q|LxiF>F;OJBzcN4R>pribNt`gp8wfQc@D4b zAN4y~_DB6xoo)~WFJJ!S`0d5{#ji(j{oDB!ocwnD_8QKw;Ns0S{C;+PaShjR;J?n` z{Nn2R`1R|vQ#d_;dvJK5=>Yu+LC1? z)~2aydZVvz5$)%yO)G+P`8NSs&NC)-o`Rafh_gIX!pr>$A~qs146wYz*j#>k`yb*z z$82KnjS&$9!4;t~1_UY7(GT+ihAd6lo$e!)dEkVTzGBJ!MZ`NKw7`@~igKLfF@^~u zRAP!0(3t7iNjba)uK#*cF7$0n`U);S0~C+7F@|8oP^vH)U^SJ~w|_)I@ccQPQ^{G9 z>yV9IP;>c>jm!u)>mpfnjMEHr0e52(k0D01xYbEANbnS=ECY(~99p>!H|Y(U+me=3 j2w<*7 /postgres_backups/$BACKUP_NAME; diff --git a/charts/nextcloud/1.3.0/templates/backup-postgres-hook.yaml b/charts/nextcloud/1.3.0/templates/backup-postgres-hook.yaml new file mode 100644 index 0000000000..175b0f2617 --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/backup-postgres-hook.yaml @@ -0,0 +1,39 @@ +{{- if .Values.ixChartContext.isUpgrade -}} +{{ $values := (. | mustDeepCopy) }} +{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} +apiVersion: batch/v1 +kind: Job +metadata: + name: "pre-upgrade-hook2" + annotations: + "helm.sh/hook": pre-upgrade + "helm.sh/hook-weight": "1" + "helm.sh/hook-delete-policy": hook-succeeded + rollme: {{ randAlphaNum 5 | quote }} +spec: + template: + metadata: + name: "pre-upgrade-hook2" + spec: + restartPolicy: Never + serviceAccountName: "{{ template "common.names.serviceAccountName" . }}" + containers: + - name: {{ .Chart.Name }}-postgres-backup + image: {{ template "postgres.imageName" . }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }} + - name: BACKUP_NAME + value: {{ template "postgres.backupName" . }} + volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} + - name: backup-script-configmap + mountPath: /bin/backup_entrypoint.sh + readOnly: true + subPath: entrypoint.sh + command: + - "/bin/backup_entrypoint.sh" + volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} + - name: backup-script-configmap + configMap: + defaultMode: 0700 + name: "postgres-backup-hook-config-map" +{{- end -}} diff --git a/charts/nextcloud/1.3.0/templates/deployment.yaml b/charts/nextcloud/1.3.0/templates/deployment.yaml new file mode 100644 index 0000000000..49b4f1683b --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/deployment.yaml @@ -0,0 +1,64 @@ +{{ $postgres_values := (. | mustDeepCopy) }} +{{ $_ := set $postgres_values "common" (dict "nameSuffix" "postgres") }} +{{ include "common.deployment.common_config" . | nindent 0 }} +spec: {{ include "common.deployment.common_spec" . | nindent 2 }} + template: {{ include "common.deployment.pod.metadata" . | nindent 4 }} + spec: + initContainers: + - name: init-postgresdb + image: {{ template "postgres.imageName" . }} + command: ['sh', '-c', "until pg_isready -h {{ template "common.names.fullname" $postgres_values }}; do echo waiting for postgres; sleep 2; done"] + imagePullPolicy: {{ .Values.image.pullPolicy }} + containers: + - name: {{ .Chart.Name }} + {{ include "common.containers.imageConfig" .Values.image | nindent 8 }} + env: {{ include "postgres.envVariableConfiguration" $postgres_values | nindent 10 }} + {{ $envList := list }} + {{ $secretName := (include "common.names.fullname" .) }} + {{ $envList = mustAppend $envList (dict "name" "POSTGRES_HOST" "value" (printf "%s:5432" (include "common.names.fullname" $postgres_values))) }} + {{ $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "value" (include "postgres.DatabaseName" .)) }} + {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_DATA_DIR" "value" .Values.nextcloud.datadir) }} + {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_TRUSTED_DOMAINS" "value" .Values.nextcloud.host) }} + {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_ADMIN_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "nextcloud-username") }} + {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_ADMIN_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "nextcloud-password") }} + {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} + ports: + - name: http + containerPort: 80 + protocol: TCP + volumeMounts: + - name: nextcloud-data + mountPath: /var/www/ + subPath: "root" + - name: nextcloud-data + mountPath: /var/www/html + subPath: "html" + - name: nextcloud-data + mountPath: {{ .Values.nextcloud.datadir }} + subPath: "data" + - name: nextcloud-data + mountPath: /var/www/html/config + subPath: "config" + - name: nextcloud-data + mountPath: /var/www/html/custom_apps + subPath: "custom_apps" + - name: nextcloud-data + mountPath: /var/www/tmp + subPath: "tmp" + - name: nextcloud-data + mountPath: /var/www/html/themes + subPath: "themes" + {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} + - name: extrappvolume-{{ $index }} + mountPath: {{ $hostPathConfiguration.mountPath }} + {{ end }} +{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} +{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} + {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} + - name: extrappvolume-{{ $index }} + hostPath: + path: {{ $hostPathConfiguration.hostPath }} + {{ end }} + # Will mount configuration files as www-data (id: 33) for nextcloud + securityContext: + fsGroup: 33 diff --git a/charts/nextcloud/1.3.0/templates/nuke-deployments-hook.yaml b/charts/nextcloud/1.3.0/templates/nuke-deployments-hook.yaml new file mode 100644 index 0000000000..218ea00220 --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/nuke-deployments-hook.yaml @@ -0,0 +1,24 @@ +{{- if .Values.ixChartContext.isUpgrade -}} +{{ $values := (. | mustDeepCopy) }} +{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} +apiVersion: batch/v1 +kind: Job +metadata: + name: "pre-upgrade-hook1" + annotations: + "helm.sh/hook": pre-upgrade + "helm.sh/hook-weight": "-1" + "helm.sh/hook-delete-policy": hook-succeeded + rollme: {{ randAlphaNum 5 | quote }} +spec: + template: + metadata: + name: "pre-upgrade-hook1" + spec: + restartPolicy: Never + serviceAccountName: "{{ template "common.names.serviceAccountName" . }}" + containers: + - name: kubectl + image: "bitnami/kubectl:1.19" + command: ["kubectl", "delete" , "deployment", "{{ template "common.names.fullname" . }}", "{{ template "common.names.fullname" $values }}"] +{{- end -}} diff --git a/charts/nextcloud/1.3.0/templates/postgres-deployment.yaml b/charts/nextcloud/1.3.0/templates/postgres-deployment.yaml new file mode 100644 index 0000000000..c325ee8ced --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/postgres-deployment.yaml @@ -0,0 +1,17 @@ +{{ $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 }} diff --git a/charts/nextcloud/1.3.0/templates/postgres-secret.yaml b/charts/nextcloud/1.3.0/templates/postgres-secret.yaml new file mode 100644 index 0000000000..6b08b701a9 --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/postgres-secret.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Secret +metadata: + name: db-details +data: + db-user: postgres + {{- if .Release.IsInstall }} + db-password: {{ randAlphaNum 15 | b64enc | quote }} + {{ else }} + # `index` function is necessary because the property name contains a dash. + # Otherwise (...).data.db_password would have worked too. + db-password: {{ index (lookup "v1" "Secret" .Release.Namespace "db-details").data "db-password" }} + {{ end }} diff --git a/charts/nextcloud/1.3.0/templates/postgres-service.yaml b/charts/nextcloud/1.3.0/templates/postgres-service.yaml new file mode 100644 index 0000000000..c6603fd62b --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/postgres-service.yaml @@ -0,0 +1,6 @@ +{{ $ports := list }} +{{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }} +{{ $values := (. | mustDeepCopy) }} +{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} +{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} +{{ include "common.classes.service" $values }} diff --git a/charts/nextcloud/1.3.0/templates/secrets.yaml b/charts/nextcloud/1.3.0/templates/secrets.yaml new file mode 100644 index 0000000000..eb992940b3 --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/secrets.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ template "common.names.fullname" . }} + labels: {{ include "common.labels" . | nindent 4 }} +type: Opaque +data: + nextcloud-username: {{ .Values.nextcloud.username | b64enc | quote }} + {{ if .Values.nextcloud.password }} + nextcloud-password: {{ .Values.nextcloud.password | b64enc | quote }} + {{ else }} + nextcloud-password: {{ randAlphaNum 10 | b64enc | quote }} + {{ end }} diff --git a/charts/nextcloud/1.3.0/templates/service.yaml b/charts/nextcloud/1.3.0/templates/service.yaml new file mode 100644 index 0000000000..ead1523381 --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/service.yaml @@ -0,0 +1,6 @@ +{{ $svc := .Values.service }} +{{ $ports := list }} +{{ $ports = mustAppend $ports (dict "name" "http" "port" 80 "nodePort" $svc.nodePort) }} +{{ $params := . }} +{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} +{{ include "common.classes.service" $params }} diff --git a/charts/nextcloud/1.3.0/templates/serviceaccount.yaml b/charts/nextcloud/1.3.0/templates/serviceaccount.yaml new file mode 100644 index 0000000000..48213465b0 --- /dev/null +++ b/charts/nextcloud/1.3.0/templates/serviceaccount.yaml @@ -0,0 +1,35 @@ +{{ include "common.serviceaccount" . | nindent 0 }} + +--- + +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: "{{ .Release.Name }}-service-account-role-binding" +subjects: +- kind: ServiceAccount + name: "{{ template "common.names.serviceAccountName" . }}" + namespace: {{ .Release.Namespace }} +roleRef: + kind: Role + name: "{{ .Release.Name }}-service-account-role" + apiGroup: rbac.authorization.k8s.io + +--- + +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: "{{ .Release.Name }}-service-account-role" + namespace: {{ .Release.Namespace }} +rules: + - apiGroups: + - "" + - "apps" + resources: + - pods + - deployments + verbs: + - delete + - get + - list diff --git a/charts/nextcloud/1.3.0/test_values.yaml b/charts/nextcloud/1.3.0/test_values.yaml new file mode 100644 index 0000000000..6e765690d5 --- /dev/null +++ b/charts/nextcloud/1.3.0/test_values.yaml @@ -0,0 +1,46 @@ +## Official nextcloud image version +## ref: https://hub.docker.com/r/library/nextcloud/tags/ +## +image: + repository: nextcloud + tag: 19.0.3-apache + pullPolicy: IfNotPresent + +nextcloud: + host: nextcloud.kube.home + username: admin + password: changeme + datadir: /var/www/html/data + +updateStrategy: "Recreate" + +postgresql: + backupVolume: + mountPath: "/postgres_backups" + datasetName: "ix-postgres_backups" + dataVolume: + mountPath: "/var/lib/postgresql/data" + datasetName: "ix-postgres_data" + +service: + nodePort: 31000 + +emptyDirVolumes: true +ixChartContext: {} +environmentVariables: [] + +appVolumeMounts: + nextcloud-data: + emptyDir: true + mountPath: "/var/www" + +postgresAppVolumeMounts: + postgres-data: + emptyDir: true + mountPath: "/var/lib/postgresql/data" + postgres-backup: + emptyDir: true + mountPath: "/postgres_backups" + +dnsConfig: + options: [] diff --git a/charts/nextcloud/1.3.0/values.yaml b/charts/nextcloud/1.3.0/values.yaml new file mode 100644 index 0000000000..e69de29bb2