diff --git a/nextcloud-truechart/.helmignore b/nextcloud-truechart/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/nextcloud-truechart/.helmignore @@ -0,0 +1,23 @@ +# 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 +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/nextcloud-truechart/Chart.lock b/nextcloud-truechart/Chart.lock new file mode 100644 index 0000000..96872a8 --- /dev/null +++ b/nextcloud-truechart/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: nextcloud + repository: oci://tccr.io/truecharts + version: 30.1.25 +digest: sha256:474884a5d58fdabf0b9c21920b601d76b20c12dbcfb747bdf79572ea279dd332 +generated: "2024-10-22T13:29:47.712320248Z" diff --git a/nextcloud-truechart/Chart.yaml b/nextcloud-truechart/Chart.yaml new file mode 100644 index 0000000..3742ef1 --- /dev/null +++ b/nextcloud-truechart/Chart.yaml @@ -0,0 +1,10 @@ +apiVersion: v2 +name: nextcloud-truechart +description: Chart over the nextcloud chart from truecharts +type: application +version: 0.1.0 +appVersion: "30" +dependencies: + - name: nextcloud + version: ~30 + repository: "oci://tccr.io/truecharts" diff --git a/nextcloud-truechart/charts/nextcloud-30.1.25.tgz b/nextcloud-truechart/charts/nextcloud-30.1.25.tgz new file mode 100644 index 0000000..4d1192d Binary files /dev/null and b/nextcloud-truechart/charts/nextcloud-30.1.25.tgz differ diff --git a/nextcloud-truechart/templates/_helpers.tpl b/nextcloud-truechart/templates/_helpers.tpl new file mode 100644 index 0000000..3a6f451 --- /dev/null +++ b/nextcloud-truechart/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "nextcloud-truechart.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "nextcloud-truechart.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "nextcloud-truechart.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "nextcloud-truechart.labels" -}} +helm.sh/chart: {{ include "nextcloud-truechart.chart" . }} +{{ include "nextcloud-truechart.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "nextcloud-truechart.selectorLabels" -}} +app.kubernetes.io/name: {{ include "nextcloud-truechart.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "nextcloud-truechart.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "nextcloud-truechart.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/nextcloud-truechart/values.yaml b/nextcloud-truechart/values.yaml new file mode 100644 index 0000000..abb4e59 --- /dev/null +++ b/nextcloud-truechart/values.yaml @@ -0,0 +1,32 @@ +nextcloud: + nextcloud: + credentials: + initialAdminUser: admin + initialAdminPassword: changeme + general: + default_phone_region: FR + clamav: + enabled: true + collabora: + enabled: true + username: admin + password: changeme + persistence: + html: + type: pvc + storageClass: linode-block-storage + size: 4Gi + config: + type: pvc + storageClass: linode-block-storage-retain + size: 100Mi + data: + type: pvc + storageClass: linode-block-storage-retain + size: 10Gi + cnpg: + main: + user: nextcloud + database: nextcloud + redis: + username: default