[alertmanager-bot] Migrate to common v3 (#954)

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-06-09 14:25:01 +02:00 committed by GitHub
parent 71a9087f05
commit 89e09bde2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 31 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: 0.4.2 appVersion: 0.4.3
description: Bot for Prometheus Alertmanager description: Bot for Prometheus Alertmanager
name: alertmanager-bot name: alertmanager-bot
version: 4.4.0 version: 5.0.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- alertmanager - alertmanager
@ -20,4 +20,4 @@ maintainers:
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.k8s-at-home.com repository: https://library-charts.k8s-at-home.com
version: 2.5.0 version: 3.0.1

View File

@ -1,6 +1,6 @@
# alertmanager-bot # 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 Bot for Prometheus Alertmanager
@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version | | 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 ## TL;DR
@ -76,19 +76,17 @@ N/A
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| env.BOLT_PATH | string | `"/data/bot.db"` | | | env | object | See below | environment variables. See [image docs](https://github.com/metalmatze/alertmanager-bot) for more configuration options. |
| env.STORE | string | `"bolt"` | | | env.BOLT_PATH | string | `"/data/bot.db"` | Bolt database path |
| image.pullPolicy | string | `"IfNotPresent"` | | | env.STORE | string | `"bolt"` | Storage type |
| image.repository | string | `"metalmatze/alertmanager-bot"` | | | env.TZ | string | `"UTC"` | Set the container timezone |
| image.tag | string | `"0.4.2"` | | | image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| ingress.enabled | bool | `false` | | | image.repository | string | `"metalmatze/alertmanager-bot"` | image repository |
| persistence.data.emptyDir.enabled | bool | `false` | | | image.tag | string | `"0.4.3"` | image tag |
| persistence.data.enabled | bool | `false` | | | ingress | object | Disabled | Enable and configure ingress settings for the chart under this key. |
| probes.liveness.enabled | bool | `false` | | | persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| probes.readiness.enabled | bool | `false` | | | probes | object | Disabled | Configures probes for the chart. Normally this does not need to be modified. |
| probes.startup.enabled | bool | `false` | | | service | object | Disabled | Configures service settings for the chart. Normally this does not need to be modified. |
| service.enabled | bool | `false` | |
| strategy.type | string | `"Recreate"` | |
## Changelog ## 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). 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] ### [4.3.2]
#### Added #### Added
@ -124,6 +130,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
[5.0.0]: #5.0.0
[4.3.2]: #4.3.2 [4.3.2]: #4.3.2
[1.0.0]: #1.0.0 [1.0.0]: #1.0.0

View File

@ -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). 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] ### [4.3.2]
#### Added #### Added
@ -37,6 +45,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
[5.0.0]: #5.0.0
[4.3.2]: #4.3.2 [4.3.2]: #4.3.2
[1.0.0]: #1.0.0 [1.0.0]: #1.0.0
{{- end -}} {{- end -}}

View File

@ -6,28 +6,37 @@
# #
image: image:
# -- image repository
repository: metalmatze/alertmanager-bot repository: metalmatze/alertmanager-bot
# -- image tag
tag: 0.4.3
# -- image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: 0.4.2
strategy: # -- environment variables. See [image docs](https://github.com/metalmatze/alertmanager-bot) for more configuration options.
type: Recreate # @default -- See below
# See more environment varaibles in the alertmanager-botdocumentation
# https://github.com/metalmatze/alertmanager-bot
env: env:
# -- Set the container timezone
TZ: UTC
# -- Storage type
STORE: bolt STORE: bolt
# -- Bolt database path
BOLT_PATH: /data/bot.db 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: service:
main:
enabled: false enabled: false
# -- Enable and configure ingress settings for the chart under this key.
# @default -- Disabled
ingress: ingress:
main:
enabled: false enabled: false
# -- Configures probes for the chart. Normally this does not need to be modified.
# @default -- Disabled
probes: probes:
liveness: liveness:
enabled: false enabled: false
@ -36,8 +45,8 @@ probes:
startup: startup:
enabled: false enabled: false
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence: persistence:
data: data:
enabled: false enabled: false
emptyDir:
enabled: false