Skip to content

Commit

Permalink
Fix ConfigMap mount overwriting /bin
Browse files Browse the repository at this point in the history
  • Loading branch information
cant-code committed Mar 25, 2024
1 parent bf7c475 commit 3bdd8c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: "/bin"
- mountPath: "/bin/config"
name: config
readOnly: true
volumes:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/configurations/config-setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3bdd8c2

Please sign in to comment.