recreate
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2026-02-26 12:19:48 +01:00
parent d9b1000665
commit d677b33cdb
4 changed files with 12 additions and 13 deletions

View File

@@ -47,10 +47,7 @@ steps:
commands: commands:
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig - printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
- export KUBECONFIG=/tmp/kubeconfig - export KUBECONFIG=/tmp/kubeconfig
- kubectl create configmap pv-controller-config - kubectl create configmap pv-controller-config --from-file=config.yaml=config/config.yaml --namespace=$NAMESPACE --dry-run=client -o yaml | kubectl apply -f -
--from-file=config.yaml=config/config.yaml
--namespace=$NAMESPACE
--dry-run=client -o yaml | kubectl apply -f -
deploy: deploy:
image: quay.io/wollud1969/k8s-admin-helper:0.3.4 image: quay.io/wollud1969/k8s-admin-helper:0.3.4

View File

@@ -25,17 +25,10 @@ input:
output: output:
- name: pv_meter - name: pv_meter
enabled: true enabled: true
scan_rate: 15 scan_rate: 60
publish_topic: IoT/PV/Values publish_topic: IoT/PV/Values
slave_id: 2 slave_id: 2
registers: registers:
- address: 0x0048
attribute: importEnergyActive
name: Import active energy
unit: kWh
register_type: input
data_type: float32
adaptor: floatAdaptor
- address: 0x004c - address: 0x004c
attribute: importEnergyReactive attribute: importEnergyReactive
name: Import reactive energy name: Import reactive energy

7
config/config.yaml-bak Normal file
View File

@@ -0,0 +1,7 @@
- address: 0x0048
attribute: importEnergyActive
name: Import active energy
unit: kWh
register_type: input
data_type: float32
adaptor: floatAdaptor

View File

@@ -9,6 +9,8 @@ metadata:
reloader.stakater.com/configmap: "pv-controller-config" reloader.stakater.com/configmap: "pv-controller-config"
spec: spec:
replicas: 1 replicas: 1
strategy:
type: Recreate
selector: selector:
matchLabels: matchLabels:
app: pv-controller app: pv-controller