[dsmr-reader] Migrate to common v3 (#968)

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-06-10 20:23:04 +02:00 committed by GitHub
parent 053e1952e8
commit 097d61499e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 46 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: v4.9.0 appVersion: "2021.06.01"
description: DSMR-protocol reader, telegram data storage and energy consumption visualizer. description: DSMR-protocol reader, telegram data storage and energy consumption visualizer.
name: dsmr-reader name: dsmr-reader
version: 3.5.1 version: 4.0.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- dsmr-reader - dsmr-reader
@ -18,8 +18,8 @@ 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.2
- name: postgresql - name: postgresql
version: 10.4.8 version: 10.4.9
repository: https://charts.bitnami.com/bitnami repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled condition: postgresql.enabled

View File

@ -1,6 +1,6 @@
# dsmr-reader # dsmr-reader
![Version: 3.5.1](https://img.shields.io/badge/Version-3.5.1-informational?style=flat-square) ![AppVersion: v4.9.0](https://img.shields.io/badge/AppVersion-v4.9.0-informational?style=flat-square) ![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: 2021.06.01](https://img.shields.io/badge/AppVersion-2021.06.01-informational?style=flat-square)
DSMR-protocol reader, telegram data storage and energy consumption visualizer. DSMR-protocol reader, telegram data storage and energy consumption visualizer.
@ -19,8 +19,8 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version | | Repository | Name | Version |
|------------|------|---------| |------------|------|---------|
| https://charts.bitnami.com/bitnami | postgresql | 10.4.8 | | https://charts.bitnami.com/bitnami | postgresql | 10.4.9 |
| https://library-charts.k8s-at-home.com | common | 2.5.0 | | https://library-charts.k8s-at-home.com | common | 3.0.2 |
## TL;DR ## TL;DR
@ -77,22 +77,17 @@ N/A
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| env.DJANGO_DATABASE_NAME | string | `"dsmr-reader"` | | | env | object | See below | environment variables. See [image docs](https://github.com/xirixiz/dsmr-reader-docker#dsmr-reader---environment-variables) for more details. |
| env.DJANGO_DATABASE_PASSWORD | string | `"dsmr-reader-pass"` | | | env.TZ | string | `"UTC"` | Set the container timezone |
| env.DJANGO_DATABASE_PORT | int | `5432` | | | image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| env.DJANGO_DATABASE_USER | string | `"dsmr-reader"` | | | image.repository | string | `"xirixiz/dsmr-reader-docker"` | image repository |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.tag | string | `"latest-2021.06.01-amd64"` | image tag |
| image.repository | string | `"xirixiz/dsmr-reader-docker"` | | | ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
| image.tag | string | `"latest-v4.9.0-amd64"` | | | persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| ingress.enabled | bool | `false` | | | persistence.p1reader | object | See values.yaml | Set up a local USB p1 reader device. |
| postgresql.enabled | bool | `false` | | | postgresql | object | See values.yaml | Enable and configure postgresql database subchart under this key. For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) |
| postgresql.persistence.enabled | bool | `false` | | | securityContext.privileged | bool | `nil` | Privileged securityContext may be required if USB devics are accessed directly through the host machine |
| postgresql.postgresqlDatabase | string | `"dsmr-reader"` | | | service | object | See values.yaml | Configures service settings for the chart. |
| postgresql.postgresqlPassword | string | `"dsmr-reader-pass"` | |
| postgresql.postgresqlUsername | string | `"dsmr-reader"` | |
| securityContext.privileged | bool | `true` | |
| service.port.port | int | `80` | |
| strategy.type | string | `"Recreate"` | |
## Changelog ## Changelog
@ -100,6 +95,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). 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).
### [4.0.0]
#### Changed
- **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.
- Updated image tag to `latest-2021.06.01-amd64`.
- Updated postgresql chart to `10.4.9`.
### [1.0.0] ### [1.0.0]
#### Added #### Added

View File

@ -9,6 +9,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). 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).
### [4.0.0]
#### Changed
- **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.
- Updated image tag to `latest-2021.06.01-amd64`.
- Updated postgresql chart to `10.4.9`.
### [1.0.0] ### [1.0.0]
#### Added #### Added

View File

@ -6,45 +6,55 @@
# #
image: image:
# -- image repository
repository: xirixiz/dsmr-reader-docker repository: xirixiz/dsmr-reader-docker
# -- image tag
tag: latest-2021.06.01-amd64
# -- image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: latest-v4.9.0-amd64
strategy: # -- environment variables. See [image docs](https://github.com/xirixiz/dsmr-reader-docker#dsmr-reader---environment-variables) for more details.
type: Recreate # @default -- See below
# For all options see https://github.com/xirixiz/dsmr-reader-docker#dsmr-reader---environment-variables
env: env:
# TZ: UTC # -- Set the container timezone
# DJANGO_TIME_ZONE: UTC TZ: UTC
DJANGO_TIME_ZONE: UTC
DJANGO_DATABASE_USER: dsmr-reader DJANGO_DATABASE_USER: dsmr-reader
DJANGO_DATABASE_PASSWORD: dsmr-reader-pass DJANGO_DATABASE_PASSWORD: dsmr-reader-pass
DJANGO_DATABASE_PORT: 5432 DJANGO_DATABASE_PORT: 5432
DJANGO_DATABASE_NAME: dsmr-reader DJANGO_DATABASE_NAME: dsmr-reader
# -- Configures service settings for the chart.
# @default -- See values.yaml
service: service:
port: main:
port: 80 ports:
http:
port: 80
ingress: ingress:
enabled: false # -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false
securityContext: securityContext:
privileged: true # -- (bool) Privileged securityContext may be required if USB devics are accessed directly through the host machine
privileged: # true
# Path to your p1 reader device in the container # -- Configure persistence settings for the chart under this key.
# additionalVolumeMounts: # @default -- See values.yaml
# - name: p1reader persistence:
# mountPath: /dev/ttyUSB0 # -- Set up a local USB p1 reader device.
# @default -- See values.yaml
p1reader:
enabled: false
type: hostPath
hostPath: /dev/ttyUSB0
# Path to your p1 reader device on the host # -- Enable and configure postgresql database subchart under this key.
# additionalVolumes: # For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql)
# - name: p1reader # @default -- See values.yaml
# hostPath:
# path: /dev/ttyUSB0
# Enable postgres
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
postgresql: postgresql:
enabled: false enabled: false
postgresqlUsername: dsmr-reader postgresqlUsername: dsmr-reader