add connection string to config
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
type ServerConfig struct {
|
type ServerConfig struct {
|
||||||
Port string
|
Port string
|
||||||
|
ConnectionString string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
@@ -16,6 +17,7 @@ func New() *Config {
|
|||||||
return &Config{
|
return &Config{
|
||||||
Server: ServerConfig{
|
Server: ServerConfig{
|
||||||
Port: getEnv("PORT", ""),
|
Port: getEnv("PORT", ""),
|
||||||
|
ConnectionString: getEnv("CONNECTION_STRING", "test.db"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ spec:
|
|||||||
value: Europe/Moscow
|
value: Europe/Moscow
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: {{ .Values.app.server.port | quote }}
|
value: {{ .Values.app.server.port | quote }}
|
||||||
|
- name: CONNECTION_STRING
|
||||||
|
value: /app/test.db
|
||||||
|
|
||||||
image: {{ .Values.app.image }}:{{ .Chart.AppVersion }} #"docker-registry.dopcore.com/andrusyakka/urban-couscous:latest"
|
image: {{ .Values.app.image }}:{{ .Chart.AppVersion }} #"docker-registry.dopcore.com/andrusyakka/urban-couscous:latest"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|||||||
Reference in New Issue
Block a user