From 68439307d0c71e77e905cdfc8e53e90ac67b464d Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Thu, 3 Mar 2022 08:30:52 -0500 Subject: [PATCH] feat: first import --- charts/filebrowser/.helmignore | 26 ++++++++++ charts/filebrowser/Chart.yaml | 27 +++++++++++ charts/filebrowser/README.md | 2 + charts/filebrowser/templates/NOTES.txt | 1 + charts/filebrowser/templates/common.yaml | 5 ++ charts/filebrowser/values.yaml | 62 ++++++++++++++++++++++++ 6 files changed, 123 insertions(+) create mode 100644 charts/filebrowser/.helmignore create mode 100644 charts/filebrowser/Chart.yaml create mode 100644 charts/filebrowser/README.md create mode 100644 charts/filebrowser/templates/NOTES.txt create mode 100644 charts/filebrowser/templates/common.yaml create mode 100644 charts/filebrowser/values.yaml diff --git a/charts/filebrowser/.helmignore b/charts/filebrowser/.helmignore new file mode 100644 index 0000000..4379e2b --- /dev/null +++ b/charts/filebrowser/.helmignore @@ -0,0 +1,26 @@ +# 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 +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl diff --git a/charts/filebrowser/Chart.yaml b/charts/filebrowser/Chart.yaml new file mode 100644 index 0000000..97614fc --- /dev/null +++ b/charts/filebrowser/Chart.yaml @@ -0,0 +1,27 @@ +apiVersion: v2 + +description: Helm chart for filebrowser +name: filebrowser +type: application +version: 0.0.7 +kubeVersion: ">=1.16.0-0" +keywords: +- filebrowser +home: https://scm.docker.cabillot.eu/web/filebrowser-helm/ +sources: +- https://github.com/filebrowser/filebrowser +maintainers: +- name: Julien Cabillot + email: dockerimages@cabillot.eu + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +#appVersion: "1.16.0" +appVersion: "latest" + +dependencies: +- name: common + repository: "https://scm.docker.cabillot.eu/perso/helm-library-common/raw/branch/master/" + version: 4.2.0 diff --git a/charts/filebrowser/README.md b/charts/filebrowser/README.md new file mode 100644 index 0000000..c40e26a --- /dev/null +++ b/charts/filebrowser/README.md @@ -0,0 +1,2 @@ +# filebrowser-helm + diff --git a/charts/filebrowser/templates/NOTES.txt b/charts/filebrowser/templates/NOTES.txt new file mode 100644 index 0000000..90f7b65 --- /dev/null +++ b/charts/filebrowser/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "common.notes.defaultNotes" . -}} diff --git a/charts/filebrowser/templates/common.yaml b/charts/filebrowser/templates/common.yaml new file mode 100644 index 0000000..64e027a --- /dev/null +++ b/charts/filebrowser/templates/common.yaml @@ -0,0 +1,5 @@ +{{/* Make sure all variables are set properly */}} +{{- include "common.values.setup" . }} + +{{/* Render the templates */}} +{{ include "common.all" . }} diff --git a/charts/filebrowser/values.yaml b/charts/filebrowser/values.yaml new file mode 100644 index 0000000..569caf7 --- /dev/null +++ b/charts/filebrowser/values.yaml @@ -0,0 +1,62 @@ +# +# IMPORTANT NOTE +# +# This chart inherits from our common library chart. You can check the default values/options here: +# https://scm.docker.cabillot.eu/perso/helm-library-common +# + +image: + repository: docker.io/filebrowser/filebrowser + tag: "" + pullPolicy: Always + +env: + TZ: America/New_York + +service: + main: + ports: + http: + port: 8080 + +ingress: + main: + enabled: false + +automountServiceAccountToken: false + +configmap: + config: + enabled: true + data: + config.json: | + { + "port": 8080, + "address": "", + "database": "/database/database.db", + "root": "/srv", + "allowCommands": true, + "allowEdit": true, + "allowNew": true, + "commands": [] + } + +persistence: + config: + enabled: true + type: configMap + # TODO: hardcodé, à changer + name: drive-filebrowser-config + mountPath: /.filebrowser.json + subPath: config.json + db: + enabled: true + mountPath: /database + size: 100Mi + accessMode: ReadWriteOnce + data: + enabled: true + type: hostPath + # TODO: hardcodé, à changer + hostPath: /mnt/cifs-dperso + mountPath: /srv