diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index 180ccf3..0608499 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -41,7 +41,7 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - - mountPath: "/bin" + - mountPath: "/bin/config" name: config readOnly: true volumes: diff --git a/config.yml b/config/config.yml similarity index 100% rename from config.yml rename to config/config.yml diff --git a/internal/configurations/config-setup.go b/internal/configurations/config-setup.go index 7422fc9..64d0bc3 100644 --- a/internal/configurations/config-setup.go +++ b/internal/configurations/config-setup.go @@ -43,7 +43,7 @@ func LoadConfig() (Config, error) { conf.SetConfigName("config") conf.SetConfigType("yml") - conf.AddConfigPath(".") + conf.AddConfigPath("./config") conf.AutomaticEnv() if err := conf.ReadInConfig(); err != nil {