From 7f4f247a333ff7c6166a7bba825bc3849efb1a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?n=CE=B9c=D0=BDola=D1=95=20w=CE=B9lde?= Date: Sat, 12 Jun 2021 15:59:47 -0700 Subject: [PATCH] [flood] Migrate to common v3 (#996) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [flood] Migrate to common v3 Signed-off-by: nιcнolaѕ wιlde * Add accessMode and size Signed-off-by: nιcнolaѕ wιlde * Fix errors Signed-off-by: nιcнolaѕ wιlde --- charts/stable/flood/Chart.yaml | 6 +-- charts/stable/flood/README.md | 38 +++++++--------- .../stable/flood/README_CHANGELOG.md.gotmpl | 16 +++---- charts/stable/flood/ci/ct-values.yaml | 5 +-- charts/stable/flood/values.yaml | 44 +++++++++---------- 5 files changed, 45 insertions(+), 64 deletions(-) diff --git a/charts/stable/flood/Chart.yaml b/charts/stable/flood/Chart.yaml index 143a9f98..c9e6ce2c 100644 --- a/charts/stable/flood/Chart.yaml +++ b/charts/stable/flood/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 -appVersion: 4.1.1 +appVersion: 4.6.0 description: Flood is a monitoring service for various torrent clients name: flood -version: 4.4.0 +version: 5.0.0 kubeVersion: ">=1.16.0-0" keywords: - flood @@ -20,4 +20,4 @@ maintainers: dependencies: - name: common repository: https://library-charts.k8s-at-home.com - version: 2.5.0 + version: 3.0.2 diff --git a/charts/stable/flood/README.md b/charts/stable/flood/README.md index 5dc4d669..5ceff892 100644 --- a/charts/stable/flood/README.md +++ b/charts/stable/flood/README.md @@ -1,6 +1,6 @@ # flood -![Version: 4.4.0](https://img.shields.io/badge/Version-4.4.0-informational?style=flat-square) ![AppVersion: 4.1.1](https://img.shields.io/badge/AppVersion-4.1.1-informational?style=flat-square) +![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-informational?style=flat-square) ![AppVersion: 4.6.0](https://img.shields.io/badge/AppVersion-4.6.0-informational?style=flat-square) Flood is a monitoring service for various torrent clients @@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0` | Repository | Name | Version | |------------|------|---------| -| https://library-charts.k8s-at-home.com | common | 2.5.0 | +| https://library-charts.k8s-at-home.com | common | 3.0.2 | ## TL;DR @@ -76,16 +76,14 @@ N/A | Key | Type | Default | Description | |-----|------|---------|-------------| -| env.FLOOD_OPTION_RUNDIR | string | `"/data"` | | -| image.pullPolicy | string | `"IfNotPresent"` | | -| image.repository | string | `"jesec/flood"` | | -| image.tag | string | `"4.1.1"` | | -| ingress.enabled | bool | `false` | | -| persistence.data.emptyDir.enabled | bool | `false` | | -| persistence.data.enabled | bool | `false` | | -| persistence.data.mountPath | string | `"/data"` | | -| service.port.port | int | `3000` | | -| strategy.type | string | `"Recreate"` | | +| env | object | See below | environment variables. See more environment variables in the [flood documentation] (https://github.com/jesec/flood/blob/v4.6.0/config.ts) Note: The environmental variables are not case sensitive (e.g. FLOOD_OPTION_port=FLOOD_OPTION_PORT). | +| env.FLOOD_OPTION_RUNDIR | string | `"/data"` | Where to store Flood's runtime files (eg. database) | +| image.pullPolicy | string | `"IfNotPresent"` | image pull policy | +| image.repository | string | `"jesec/flood"` | image repository | +| image.tag | string | `"4.6.0"` | image tag | +| 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. | +| service | object | See values.yaml | Configures service settings for the chart. | ## Changelog @@ -93,21 +91,15 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### [1.0.0] - -#### Added - -- N/A +### [5.0.0] #### Changed -- N/A +- **BREAKING**: Upgraded the common library dependency to version 3.0.2. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored). + Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.0.2/charts/stable/common/) for the up-to-date values. +- Changed image tag to `4.6.0`. -#### Removed - -- N/A - -[1.0.0]: #1.0.0 +[5.0.0]: #500 ## Support diff --git a/charts/stable/flood/README_CHANGELOG.md.gotmpl b/charts/stable/flood/README_CHANGELOG.md.gotmpl index 457def03..fe307c6d 100644 --- a/charts/stable/flood/README_CHANGELOG.md.gotmpl +++ b/charts/stable/flood/README_CHANGELOG.md.gotmpl @@ -9,19 +9,13 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### [1.0.0] - -#### Added - -- N/A +### [5.0.0] #### Changed -- N/A +- **BREAKING**: Upgraded the common library dependency to version 3.0.2. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored). + Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.0.2/charts/stable/common/) for the up-to-date values. +- Changed image tag to `4.6.0`. -#### Removed - -- N/A - -[1.0.0]: #1.0.0 +[5.0.0]: #500 {{- end -}} diff --git a/charts/stable/flood/ci/ct-values.yaml b/charts/stable/flood/ci/ct-values.yaml index 48a465f2..f874292f 100644 --- a/charts/stable/flood/ci/ct-values.yaml +++ b/charts/stable/flood/ci/ct-values.yaml @@ -1,6 +1,5 @@ persistence: data: enabled: true - emptyDir: - enabled: true - mountPath: /data + accessMode: ReadWriteOnce + size: 1Gi diff --git a/charts/stable/flood/values.yaml b/charts/stable/flood/values.yaml index 1db33e9b..4dba4e5b 100644 --- a/charts/stable/flood/values.yaml +++ b/charts/stable/flood/values.yaml @@ -6,40 +6,36 @@ # image: + # -- image repository repository: jesec/flood + # -- image pull policy pullPolicy: IfNotPresent - tag: 4.1.1 + # -- image tag + tag: 4.6.0 -strategy: - type: Recreate - -# Other environment variables that can be configure can be seen at -# https://github.com/jesec/flood/blob/master/config.cli.js +# -- environment variables. See more environment variables in the [flood documentation] (https://github.com/jesec/flood/blob/v4.6.0/config.ts) +# Note: The environmental variables are not case sensitive (e.g. FLOOD_OPTION_port=FLOOD_OPTION_PORT). +# @default -- See below env: + # -- Where to store Flood's runtime files (eg. database) FLOOD_OPTION_RUNDIR: /data +# -- Configures service settings for the chart. +# @default -- See values.yaml service: - port: - port: 3000 + main: + ports: + http: + port: 3000 ingress: - enabled: false + # -- 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: data: enabled: false - emptyDir: - enabled: false - mountPath: /data - ## Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - # storageClass: "-" - # accessMode: ReadWriteOnce - # size: 1Gi - ## Do not delete the pvc upon helm uninstall - # skipuninstall: false - # existingClaim: ""