From f2452edfb9c3cca3e483747283e0ae8546dbd04f Mon Sep 17 00:00:00 2001 From: auricom Date: Sat, 28 Nov 2020 22:42:47 +0100 Subject: [PATCH] [pyload] new chart (#284) --- charts/pyload/.helmignore | 24 +++++++++++ charts/pyload/Chart.yaml | 20 +++++++++ charts/pyload/OWNERS | 4 ++ charts/pyload/README.md | 67 +++++++++++++++++++++++++++++ charts/pyload/ci/ct-values.yaml | 2 + charts/pyload/templates/NOTES.txt | 1 + charts/pyload/templates/common.yaml | 1 + charts/pyload/values.yaml | 23 ++++++++++ 8 files changed, 142 insertions(+) create mode 100644 charts/pyload/.helmignore create mode 100644 charts/pyload/Chart.yaml create mode 100644 charts/pyload/OWNERS create mode 100644 charts/pyload/README.md create mode 100644 charts/pyload/ci/ct-values.yaml create mode 100644 charts/pyload/templates/NOTES.txt create mode 100644 charts/pyload/templates/common.yaml create mode 100644 charts/pyload/values.yaml diff --git a/charts/pyload/.helmignore b/charts/pyload/.helmignore new file mode 100644 index 00000000..ede8444e --- /dev/null +++ b/charts/pyload/.helmignore @@ -0,0 +1,24 @@ +# 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/ +.vscode/ +*.tmproj +# OWNERS file for Kubernetes +OWNERS diff --git a/charts/pyload/Chart.yaml b/charts/pyload/Chart.yaml new file mode 100644 index 00000000..6a705a70 --- /dev/null +++ b/charts/pyload/Chart.yaml @@ -0,0 +1,20 @@ +apiVersion: v2 +appVersion: 0.4.20 +description: pyLoad is a Free and Open Source download manager written in Python and designed to be extremely lightweight, easily extensible and fully manageable via web. +name: pyload +version: 1.0.0 +keywords: + - pyload + - download +home: https://github.com/k8s-at-home/charts/tree/master/charts/pyload +icon: https://github.com/pyload/pyload/blob/main/media/logo.png?raw=true +sources: + - https://github.com/pyload/pyload + - https://hub.docker.com/r/linuxserver/pyload +maintainers: + - name: auricom + email: k8s-at-home@xpander.eml.cc +dependencies: + - name: common + repository: https://k8s-at-home.com/charts/ + version: 1.7.0 diff --git a/charts/pyload/OWNERS b/charts/pyload/OWNERS new file mode 100644 index 00000000..e882d048 --- /dev/null +++ b/charts/pyload/OWNERS @@ -0,0 +1,4 @@ +approvers: +- auricom +reviewers: +- auricom diff --git a/charts/pyload/README.md b/charts/pyload/README.md new file mode 100644 index 00000000..cdfbe192 --- /dev/null +++ b/charts/pyload/README.md @@ -0,0 +1,67 @@ +# pyLoad + +This is a helm chart for [pyLoad](https://github.com/pyload/pyload). + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)** + +## TL;DR; + +```shell +$ helm repo add k8s-at-home https://k8s-at-home.com/charts/ +$ helm install k8s-at-home/pyload +``` + +## Installing the Chart + +To install the chart with the release name `my-release`: + +```console +helm install --name my-release k8s-at-home/pyload +``` + +## Uninstalling the Chart + +To uninstall/delete the `my-release` deployment: + +```console +helm delete my-release --purge +``` + +The command removes all the Kubernetes components associated with the chart and deletes the release. + +## Configuration +Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/pyload/values.yaml) +file. It has several commented out suggested values. +Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options. + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, +```console +helm install pyload \ + --set env.TZ="America/New_York" \ + k8s-at-home/pyload +``` +Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the +chart. For example, +```console +helm install pyload k8s-at-home/pyload --values values.yaml +``` + +```yaml +image: + tag: ... +``` + +--- +**NOTE** + +If you get +```console +Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...` +``` +it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`. + +--- + +## Upgrading an existing Release to a new major version + +A major chart version change (like 1.0.1 -> 2.0.0) indicates that there is an incompatible breaking change potentially needing manual actions. diff --git a/charts/pyload/ci/ct-values.yaml b/charts/pyload/ci/ct-values.yaml new file mode 100644 index 00000000..f6ccc628 --- /dev/null +++ b/charts/pyload/ci/ct-values.yaml @@ -0,0 +1,2 @@ +ingress: + enabled: true diff --git a/charts/pyload/templates/NOTES.txt b/charts/pyload/templates/NOTES.txt new file mode 100644 index 00000000..90f7b653 --- /dev/null +++ b/charts/pyload/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "common.notes.defaultNotes" . -}} diff --git a/charts/pyload/templates/common.yaml b/charts/pyload/templates/common.yaml new file mode 100644 index 00000000..a6613c2c --- /dev/null +++ b/charts/pyload/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/pyload/values.yaml b/charts/pyload/values.yaml new file mode 100644 index 00000000..b29780e8 --- /dev/null +++ b/charts/pyload/values.yaml @@ -0,0 +1,23 @@ +# Default values for pyLoad. + +image: + repository: linuxserver/pyload + pullPolicy: IfNotPresent + tag: version-5f5aaf56 + +strategy: + type: Recreate + +service: + port: + port: 8000 + +env: {} + # TZ: UTC + # PUID: 1001 + # PGID: 1001 + +persistence: + config: + enabled: false + emptyDir: false