From e521965294716044efb08b6e8b85c0fccc0b9700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Wed, 27 Jul 2022 11:23:26 +0200 Subject: [PATCH] more testing --- .github/workflows/charts-release.yaml | 6 +- charts/stable/airsonic/.helmignore | 26 ++++ charts/stable/airsonic/Chart.yaml | 27 ++++ charts/stable/airsonic/README.md | 122 ++++++++++++++++++ .../stable/airsonic/README_CONFIG.md.gotmpl | 11 ++ charts/stable/airsonic/templates/NOTES.txt | 1 + charts/stable/airsonic/templates/common.yaml | 1 + charts/stable/airsonic/values.yaml | 99 ++++++++++++++ charts/stable/alertmanager-bot/.helmignore | 26 ++++ charts/stable/alertmanager-bot/Chart.yaml | 28 ++++ charts/stable/alertmanager-bot/README.md | 119 +++++++++++++++++ .../alertmanager-bot/README_CONFIG.md.gotmpl | 9 ++ .../alertmanager-bot/templates/NOTES.txt | 1 + .../alertmanager-bot/templates/common.yaml | 1 + charts/stable/alertmanager-bot/values.yaml | 52 ++++++++ 15 files changed, 526 insertions(+), 3 deletions(-) create mode 100644 charts/stable/airsonic/.helmignore create mode 100644 charts/stable/airsonic/Chart.yaml create mode 100644 charts/stable/airsonic/README.md create mode 100644 charts/stable/airsonic/README_CONFIG.md.gotmpl create mode 100644 charts/stable/airsonic/templates/NOTES.txt create mode 100644 charts/stable/airsonic/templates/common.yaml create mode 100644 charts/stable/airsonic/values.yaml create mode 100644 charts/stable/alertmanager-bot/.helmignore create mode 100644 charts/stable/alertmanager-bot/Chart.yaml create mode 100644 charts/stable/alertmanager-bot/README.md create mode 100644 charts/stable/alertmanager-bot/README_CONFIG.md.gotmpl create mode 100644 charts/stable/alertmanager-bot/templates/NOTES.txt create mode 100644 charts/stable/alertmanager-bot/templates/common.yaml create mode 100644 charts/stable/alertmanager-bot/values.yaml diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index f751e548..49a329f5 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -71,7 +71,7 @@ jobs: - name: Package Helm Charts shell: bash env: - SRC_DIR: "src/charts" + SRC_DIR: "src" DEST_DIR: "dest" CHARTS: "${{ steps.filter-charts.outputs.addedOrModifiedCharts }}" run: | @@ -79,8 +79,8 @@ jobs: mapfile -t CHART_PATH_PARTS < <(echo "$CHART" | tr '/' '\n') CHART_TYPE=${CHART_PATH_PARTS[2]} - helm dep up "$CHART" - helm package "$CHART" -u -d "$DEST_DIR/$CHART_TYPE" + helm dep up "${SRC_DIR}/${CHART}" + helm package "${SRC_DIR}/${CHART}" -u -d "${DEST_DIR}/${CHART_TYPE}" done # - name: Create new index diff --git a/charts/stable/airsonic/.helmignore b/charts/stable/airsonic/.helmignore new file mode 100644 index 00000000..4379e2b3 --- /dev/null +++ b/charts/stable/airsonic/.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/stable/airsonic/Chart.yaml b/charts/stable/airsonic/Chart.yaml new file mode 100644 index 00000000..e5305b6b --- /dev/null +++ b/charts/stable/airsonic/Chart.yaml @@ -0,0 +1,27 @@ +--- +apiVersion: v2 +appVersion: 10.6.2 +description: Airsonic is a Free and Open Source community driven media server +name: airsonic +version: 6.3.2 +kubeVersion: ">=1.16.0-0" +keywords: + - airsonic +home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/airsonic +icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/airsonic-logo.png +sources: + - https://github.com/airsonic-advanced/airsonic-advanced + - https://github.com/k8s-at-home/charts/tree/master/charts/airsonic +maintainers: + - name: Patricol + url: https://patricol.co/ + - name: bjw-s + email: me@bjw-s.dev +dependencies: + - name: common + repository: https://library-charts.k8s-at-home.com + version: 4.4.2 +annotations: + artifacthub.io/changes: |- + - kind: changed + description: Upgraded `common` chart dependency to version 4.4.2 diff --git a/charts/stable/airsonic/README.md b/charts/stable/airsonic/README.md new file mode 100644 index 00000000..88122d66 --- /dev/null +++ b/charts/stable/airsonic/README.md @@ -0,0 +1,122 @@ +# airsonic + +![Version: 6.3.2](https://img.shields.io/badge/Version-6.3.2-informational?style=flat-square) ![AppVersion: 10.6.2](https://img.shields.io/badge/AppVersion-10.6.2-informational?style=flat-square) + +Airsonic is a Free and Open Source community driven media server + +**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)** + +## Source Code + +* +* + +## Requirements + +Kubernetes: `>=1.16.0-0` + +## Dependencies + +| Repository | Name | Version | +|------------|------|---------| +| https://library-charts.k8s-at-home.com | common | 4.4.2 | + +## TL;DR + +```console +helm repo add k8s-at-home https://k8s-at-home.com/charts/ +helm repo update +helm install airsonic k8s-at-home/airsonic +``` + +## Installing the Chart + +To install the chart with the release name `airsonic` + +```console +helm install airsonic k8s-at-home/airsonic +``` + +## Uninstalling the Chart + +To uninstall the `airsonic` deployment + +```console +helm uninstall airsonic +``` + +The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release. + +## Configuration + +Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values. +Other values may be used from the [values.yaml](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common). + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. + +```console +helm install airsonic \ + --set env.TZ="America/New York" \ + k8s-at-home/airsonic +``` + +Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. + +```console +helm install airsonic k8s-at-home/airsonic -f values.yaml +``` + +## Custom configuration + +If you plan to use networked storage to store your media or config for Airsonic, (NFS, etc.) please take a look at the +Fast Access option in the Airsonic settings. This will help improve the performance of the application +by not constantly monitoring media folders. + +## Values + +**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common) + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| enableServiceLinks | bool | `false` | Enable Kubernetes service links. Disabled by default, since AIRSONIC_* environment vars potentially clash with the application. | +| env | object | See below | environment variables. | +| env.CONTEXT_PATH | string | `nil` | Used to set the base path for reverse proxies eg. /airsonic, /music, etc. | +| env.JAVA_OPTS | string | `nil` | For passing additional java options. For some reverse proxies, you may need to pass `JAVA_OPTS=-Dserver.use-forward-headers=true` for airsonic to generate the proper URL schemes. | +| env.TZ | string | `"UTC"` | Set the container timezone | +| image.pullPolicy | string | `"IfNotPresent"` | image pull policy | +| image.repository | string | `"airsonicadvanced/airsonic-advanced"` | image repository | +| image.tag | string | `"latest@sha256:f7cbafac28063dce99b443037547b4fe40ae270b7bc5e47efea9bb5d6751ca9d"` | image tag The specific digest is for the `amd64` image, but arm compatible images are also available. | +| ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. | +| persistence | object | See values.yaml | Configure persistence settings for the chart under this key. | +| probes | object | See values.yaml | Configures the probes for the main Pod. | +| service | object | See values.yaml | Configures service settings for the chart. Normally this does not need to be modified. | + +## Changelog + +### Version 6.3.2 + +#### Added + +N/A + +#### Changed + +* Upgraded `common` chart dependency to version 4.4.2 + +#### Fixed + +N/A + +### Older versions + +A historical overview of changes can be found on [ArtifactHUB](https://artifacthub.io/packages/helm/k8s-at-home/airsonic?modal=changelog) + +## Support + +- See the [Docs](https://docs.k8s-at-home.com/our-helm-charts/getting-started/) +- Open an [issue](https://github.com/k8s-at-home/charts/issues/new/choose) +- Ask a [question](https://github.com/k8s-at-home/organization/discussions) +- Join our [Discord](https://discord.gg/sTMX7Vh) community + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v0.1.1](https://github.com/k8s-at-home/helm-docs/releases/v0.1.1) diff --git a/charts/stable/airsonic/README_CONFIG.md.gotmpl b/charts/stable/airsonic/README_CONFIG.md.gotmpl new file mode 100644 index 00000000..df09e300 --- /dev/null +++ b/charts/stable/airsonic/README_CONFIG.md.gotmpl @@ -0,0 +1,11 @@ +{{- define "custom.custom.configuration.header" -}} +## Custom configuration +{{- end -}} + +{{- define "custom.custom.configuration" -}} +{{ template "custom.custom.configuration.header" . }} + +If you plan to use networked storage to store your media or config for Airsonic, (NFS, etc.) please take a look at the +Fast Access option in the Airsonic settings. This will help improve the performance of the application +by not constantly monitoring media folders. +{{- end -}} diff --git a/charts/stable/airsonic/templates/NOTES.txt b/charts/stable/airsonic/templates/NOTES.txt new file mode 100644 index 00000000..90f7b653 --- /dev/null +++ b/charts/stable/airsonic/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "common.notes.defaultNotes" . -}} diff --git a/charts/stable/airsonic/templates/common.yaml b/charts/stable/airsonic/templates/common.yaml new file mode 100644 index 00000000..a6613c2c --- /dev/null +++ b/charts/stable/airsonic/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/stable/airsonic/values.yaml b/charts/stable/airsonic/values.yaml new file mode 100644 index 00000000..96fd4467 --- /dev/null +++ b/charts/stable/airsonic/values.yaml @@ -0,0 +1,99 @@ +# +# IMPORTANT NOTE +# +# This chart inherits from our common library chart. You can check the default values/options here: +# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml +# + +image: + # -- image repository + repository: airsonicadvanced/airsonic-advanced + # -- image tag + # The specific digest is for the `amd64` image, but arm compatible images are also available. + tag: latest@sha256:f7cbafac28063dce99b443037547b4fe40ae270b7bc5e47efea9bb5d6751ca9d + # -- image pull policy + pullPolicy: IfNotPresent + +# -- environment variables. +# @default -- See below +env: + # -- Set the container timezone + TZ: UTC + # -- Used to set the base path for reverse proxies eg. /airsonic, /music, etc. + CONTEXT_PATH: # "url-base" + # -- For passing additional java options. For some reverse proxies, you may need to pass `JAVA_OPTS=-Dserver.use-forward-headers=true` for airsonic to generate the proper URL schemes. + JAVA_OPTS: + +# -- Enable Kubernetes service links. +# Disabled by default, since AIRSONIC_* environment vars potentially clash with the application. +enableServiceLinks: false + +# -- Configures service settings for the chart. Normally this does not need to be modified. +# @default -- See values.yaml +service: + main: + ports: + http: + port: 4040 + +ingress: + # -- Enable and configure ingress settings for the chart under this key. + # @default -- See values.yaml + main: + enabled: false + +# -- Configure persistence settings for the chart under this key. +# @default -- See values.yaml +persistence: + config: + enabled: false + mountPath: /var/airsonic + music: + enabled: false + mountPath: /var/music + playlists: + enabled: false + mountPath: /var/playlists + podcasts: + enabled: false + mountPath: /var/podcasts + media: + enabled: false + mountPath: /var/media + +# -- Configures the probes for the main Pod. +# @default -- See values.yaml +probes: + liveness: + enabled: true + custom: true + spec: + httpGet: + path: /rest/ping + port: http + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + readiness: + enabled: true + custom: true + spec: + httpGet: + path: /rest/ping + port: http + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + startup: + enabled: true + custom: true + spec: + httpGet: + path: /rest/ping + port: http + initialDelaySeconds: 0 + periodSeconds: 5 + timeoutSeconds: 1 + failureThreshold: 30 diff --git a/charts/stable/alertmanager-bot/.helmignore b/charts/stable/alertmanager-bot/.helmignore new file mode 100644 index 00000000..4379e2b3 --- /dev/null +++ b/charts/stable/alertmanager-bot/.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/stable/alertmanager-bot/Chart.yaml b/charts/stable/alertmanager-bot/Chart.yaml new file mode 100644 index 00000000..5e851e5e --- /dev/null +++ b/charts/stable/alertmanager-bot/Chart.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: v2 +appVersion: 0.4.3 +description: Bot for Prometheus Alertmanager +name: alertmanager-bot +version: 6.3.2 +kubeVersion: ">=1.16.0-0" +keywords: + - alertmanager + - telegram + - bot + - alerting +home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/alertmanager-bot +icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png +sources: + - https://hub.docker.com/r/metalmatze/alertmanager-bot + - https://github.com/metalmatze/alertmanager-bot +maintainers: + - name: billimek + email: jeff@billimek.com +dependencies: + - name: common + repository: https://library-charts.k8s-at-home.com + version: 4.4.2 +annotations: + artifacthub.io/changes: |- + - kind: changed + description: Upgraded `common` chart dependency to version 4.4.2 diff --git a/charts/stable/alertmanager-bot/README.md b/charts/stable/alertmanager-bot/README.md new file mode 100644 index 00000000..71ddc8ce --- /dev/null +++ b/charts/stable/alertmanager-bot/README.md @@ -0,0 +1,119 @@ +# alertmanager-bot + +![Version: 6.3.2](https://img.shields.io/badge/Version-6.3.2-informational?style=flat-square) ![AppVersion: 0.4.3](https://img.shields.io/badge/AppVersion-0.4.3-informational?style=flat-square) + +Bot for Prometheus Alertmanager + +**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)** + +## Source Code + +* +* + +## Requirements + +Kubernetes: `>=1.16.0-0` + +## Dependencies + +| Repository | Name | Version | +|------------|------|---------| +| https://library-charts.k8s-at-home.com | common | 4.4.2 | + +## TL;DR + +```console +helm repo add k8s-at-home https://k8s-at-home.com/charts/ +helm repo update +helm install alertmanager-bot k8s-at-home/alertmanager-bot +``` + +## Installing the Chart + +To install the chart with the release name `alertmanager-bot` + +```console +helm install alertmanager-bot k8s-at-home/alertmanager-bot +``` + +## Uninstalling the Chart + +To uninstall the `alertmanager-bot` deployment + +```console +helm uninstall alertmanager-bot +``` + +The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release. + +## Configuration + +Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values. +Other values may be used from the [values.yaml](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common). + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. + +```console +helm install alertmanager-bot \ + --set env.TZ="America/New York" \ + k8s-at-home/alertmanager-bot +``` + +Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. + +```console +helm install alertmanager-bot k8s-at-home/alertmanager-bot -f values.yaml +``` + +## Custom configuration + +N/A + +## Values + +**Important**: When deploying an application Helm chart you can add more values from our common library chart [here](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common) + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| env | object | See below | environment variables. See [image docs](https://github.com/metalmatze/alertmanager-bot) for more configuration options. | +| env.BOLT_PATH | string | `"/data/bot.db"` | Bolt database path | +| env.STORE | string | `"bolt"` | Storage type | +| env.TZ | string | `"UTC"` | Set the container timezone | +| image.pullPolicy | string | `"IfNotPresent"` | image pull policy | +| image.repository | string | `"metalmatze/alertmanager-bot"` | image repository | +| image.tag | string | `"0.4.3"` | image tag | +| ingress | object | Disabled | Enable and configure ingress settings for the chart under this key. | +| persistence | object | See values.yaml | Configure persistence settings for the chart under this key. | +| probes | object | Disabled | Configures probes for the chart. Normally this does not need to be modified. | +| service | object | Disabled | Configures service settings for the chart. Normally this does not need to be modified. | + +## Changelog + +### Version 6.3.2 + +#### Added + +N/A + +#### Changed + +* Upgraded `common` chart dependency to version 4.4.2 + +#### Fixed + +N/A + +### Older versions + +A historical overview of changes can be found on [ArtifactHUB](https://artifacthub.io/packages/helm/k8s-at-home/alertmanager-bot?modal=changelog) + +## Support + +- See the [Docs](https://docs.k8s-at-home.com/our-helm-charts/getting-started/) +- Open an [issue](https://github.com/k8s-at-home/charts/issues/new/choose) +- Ask a [question](https://github.com/k8s-at-home/organization/discussions) +- Join our [Discord](https://discord.gg/sTMX7Vh) community + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v0.1.1](https://github.com/k8s-at-home/helm-docs/releases/v0.1.1) diff --git a/charts/stable/alertmanager-bot/README_CONFIG.md.gotmpl b/charts/stable/alertmanager-bot/README_CONFIG.md.gotmpl new file mode 100644 index 00000000..e93d80bf --- /dev/null +++ b/charts/stable/alertmanager-bot/README_CONFIG.md.gotmpl @@ -0,0 +1,9 @@ +{{- define "custom.custom.configuration.header" -}} +## Custom configuration +{{- end -}} + +{{- define "custom.custom.configuration" -}} +{{ template "custom.custom.configuration.header" . }} + +N/A +{{- end -}} diff --git a/charts/stable/alertmanager-bot/templates/NOTES.txt b/charts/stable/alertmanager-bot/templates/NOTES.txt new file mode 100644 index 00000000..90f7b653 --- /dev/null +++ b/charts/stable/alertmanager-bot/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "common.notes.defaultNotes" . -}} diff --git a/charts/stable/alertmanager-bot/templates/common.yaml b/charts/stable/alertmanager-bot/templates/common.yaml new file mode 100644 index 00000000..a6613c2c --- /dev/null +++ b/charts/stable/alertmanager-bot/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/stable/alertmanager-bot/values.yaml b/charts/stable/alertmanager-bot/values.yaml new file mode 100644 index 00000000..edfecf4d --- /dev/null +++ b/charts/stable/alertmanager-bot/values.yaml @@ -0,0 +1,52 @@ +# +# IMPORTANT NOTE +# +# This chart inherits from our common library chart. You can check the default values/options here: +# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml +# + +image: + # -- image repository + repository: metalmatze/alertmanager-bot + # -- image tag + tag: 0.4.3 + # -- image pull policy + pullPolicy: IfNotPresent + +# -- environment variables. See [image docs](https://github.com/metalmatze/alertmanager-bot) for more configuration options. +# @default -- See below +env: + # -- Set the container timezone + TZ: UTC + # -- Storage type + STORE: bolt + # -- Bolt database path + BOLT_PATH: /data/bot.db + +# -- Configures service settings for the chart. Normally this does not need to be modified. +# @default -- Disabled +service: + main: + enabled: false + +# -- Enable and configure ingress settings for the chart under this key. +# @default -- Disabled +ingress: + main: + enabled: false + +# -- Configures probes for the chart. Normally this does not need to be modified. +# @default -- Disabled +probes: + liveness: + enabled: false + readiness: + enabled: false + startup: + enabled: false + +# -- Configure persistence settings for the chart under this key. +# @default -- See values.yaml +persistence: + data: + enabled: false