From 89e09bde2adfe373ceccea65bf0af2c1aea7122d 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, 9 Jun 2021 14:25:01 +0200 Subject: [PATCH] [alertmanager-bot] Migrate to common v3 (#954) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs --- charts/stable/alertmanager-bot/Chart.yaml | 6 +-- charts/stable/alertmanager-bot/README.md | 37 +++++++++++-------- .../README_CHANGELOG.md.gotmpl | 9 +++++ charts/stable/alertmanager-bot/values.yaml | 35 +++++++++++------- 4 files changed, 56 insertions(+), 31 deletions(-) diff --git a/charts/stable/alertmanager-bot/Chart.yaml b/charts/stable/alertmanager-bot/Chart.yaml index 4fba898d..45901eb9 100644 --- a/charts/stable/alertmanager-bot/Chart.yaml +++ b/charts/stable/alertmanager-bot/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 -appVersion: 0.4.2 +appVersion: 0.4.3 description: Bot for Prometheus Alertmanager name: alertmanager-bot -version: 4.4.0 +version: 5.0.0 kubeVersion: ">=1.16.0-0" keywords: - alertmanager @@ -20,4 +20,4 @@ maintainers: dependencies: - name: common repository: https://library-charts.k8s-at-home.com - version: 2.5.0 + version: 3.0.1 diff --git a/charts/stable/alertmanager-bot/README.md b/charts/stable/alertmanager-bot/README.md index 2789660e..51ed44fb 100644 --- a/charts/stable/alertmanager-bot/README.md +++ b/charts/stable/alertmanager-bot/README.md @@ -1,6 +1,6 @@ # alertmanager-bot -![Version: 4.4.0](https://img.shields.io/badge/Version-4.4.0-informational?style=flat-square) ![AppVersion: 0.4.2](https://img.shields.io/badge/AppVersion-0.4.2-informational?style=flat-square) +![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-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 @@ -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.1 | ## TL;DR @@ -76,19 +76,17 @@ N/A | Key | Type | Default | Description | |-----|------|---------|-------------| -| env.BOLT_PATH | string | `"/data/bot.db"` | | -| env.STORE | string | `"bolt"` | | -| image.pullPolicy | string | `"IfNotPresent"` | | -| image.repository | string | `"metalmatze/alertmanager-bot"` | | -| image.tag | string | `"0.4.2"` | | -| ingress.enabled | bool | `false` | | -| persistence.data.emptyDir.enabled | bool | `false` | | -| persistence.data.enabled | bool | `false` | | -| probes.liveness.enabled | bool | `false` | | -| probes.readiness.enabled | bool | `false` | | -| probes.startup.enabled | bool | `false` | | -| service.enabled | bool | `false` | | -| strategy.type | string | `"Recreate"` | | +| 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 @@ -96,6 +94,14 @@ 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). +### [5.0.0] + +#### Changed + +- **BREAKING**: Upgraded the common library dependency to version 3.0.0. 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.0/charts/stable/common/) for the up-to-date values. +- Updated image tag to `0.4.3`. + ### [4.3.2] #### Added @@ -124,6 +130,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - N/A +[5.0.0]: #5.0.0 [4.3.2]: #4.3.2 [1.0.0]: #1.0.0 diff --git a/charts/stable/alertmanager-bot/README_CHANGELOG.md.gotmpl b/charts/stable/alertmanager-bot/README_CHANGELOG.md.gotmpl index d92180bb..eff7ed11 100644 --- a/charts/stable/alertmanager-bot/README_CHANGELOG.md.gotmpl +++ b/charts/stable/alertmanager-bot/README_CHANGELOG.md.gotmpl @@ -9,6 +9,14 @@ 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). +### [5.0.0] + +#### Changed + +- **BREAKING**: Upgraded the common library dependency to version 3.0.0. 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.0/charts/stable/common/) for the up-to-date values. +- Updated image tag to `0.4.3`. + ### [4.3.2] #### Added @@ -37,6 +45,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - N/A +[5.0.0]: #5.0.0 [4.3.2]: #4.3.2 [1.0.0]: #1.0.0 {{- end -}} diff --git a/charts/stable/alertmanager-bot/values.yaml b/charts/stable/alertmanager-bot/values.yaml index 7ea4a29c..edfecf4d 100644 --- a/charts/stable/alertmanager-bot/values.yaml +++ b/charts/stable/alertmanager-bot/values.yaml @@ -6,28 +6,37 @@ # image: + # -- image repository repository: metalmatze/alertmanager-bot + # -- image tag + tag: 0.4.3 + # -- image pull policy pullPolicy: IfNotPresent - tag: 0.4.2 -strategy: - type: Recreate - -# See more environment varaibles in the alertmanager-botdocumentation -# https://github.com/metalmatze/alertmanager-bot +# -- 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 - # ALERTMANAGER_URL: - # TELEGRAM_ADMIN: - # TELEGRAM_TOKEN: +# -- Configures service settings for the chart. Normally this does not need to be modified. +# @default -- Disabled service: - enabled: false + main: + enabled: false +# -- Enable and configure ingress settings for the chart under this key. +# @default -- Disabled ingress: - enabled: false + main: + enabled: false +# -- Configures probes for the chart. Normally this does not need to be modified. +# @default -- Disabled probes: liveness: enabled: false @@ -36,8 +45,8 @@ probes: startup: enabled: false +# -- Configure persistence settings for the chart under this key. +# @default -- See values.yaml persistence: data: enabled: false - emptyDir: - enabled: false