start deployment stuff
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: udi-archive
|
||||
name: %PRE%-udi-archive
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
@ -13,11 +13,11 @@ spec:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: udi
|
||||
name: %PRE%-udi
|
||||
labels:
|
||||
app: udi
|
||||
annotations:
|
||||
secret.reloader.stakater.com/reload: "udi-conf,udi-db-cred,mqtt-password"
|
||||
secret.reloader.stakater.com/reload: "%PRE%-udi-conf,%PRE%-udi-db-cred,%PRE%-mqtt-password"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
@ -33,16 +33,16 @@ spec:
|
||||
image: %IMAGE%
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: udi-db-cred
|
||||
name: %PRE%-udi-db-cred
|
||||
- secretRef:
|
||||
name: mqtt-password
|
||||
name: %PRE%-mqtt-password
|
||||
- secretRef:
|
||||
name: udi-conf
|
||||
name: %PRE%-udi-conf
|
||||
volumeMounts:
|
||||
- mountPath: /archive
|
||||
name: udi-archive
|
||||
volumes:
|
||||
- name: udi-archive
|
||||
persistentVolumeClaim:
|
||||
claimName: udi-archive
|
||||
claimName: %PRE%-udi-archive
|
||||
|
||||
|
@ -12,7 +12,6 @@ type ConfigT struct {
|
||||
Mqtt struct {
|
||||
Broker string `json:"broker"`
|
||||
Username string `json:"username"`
|
||||
PasswordEnvVar string `json:"passwordEnvVar"`
|
||||
Password string
|
||||
TlsEnable string `json:"tlsEnable"`
|
||||
} `json:"mqtt"`
|
||||
@ -36,8 +35,6 @@ func LoadConfiguration() {
|
||||
log.Fatalf("Unable to parse configuration: %s", err)
|
||||
}
|
||||
|
||||
if Config.Mqtt.PasswordEnvVar != "" {
|
||||
Config.Mqtt.Password = os.Getenv(Config.Mqtt.PasswordEnvVar)
|
||||
}
|
||||
Config.Mqtt.Password = os.Getenv("MQTT_PASSWORD")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user