Skip to content

Commit

Permalink
remove positional migrations path from job in favour of the env var
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Aug 8, 2024
1 parent a26b43c commit 29c6085
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/draconctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func initializeConfig(cmd *cobra.Command) error {

// Bind to environment variables
// Works great for simple config names, but needs help for names
// like --favorite-color which we fix in the bindFlags function
// like --favorite-color which we fix in the visitall function
v.AutomaticEnv()

if !slices.Contains(supportedLogFormats, strings.ToLower(loggingFormat)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ spec:
- apply
- --url
- "postgresql://{{ .Values.database.auth.username }}:{{ .Values.database.auth.password }}@{{ .Values.database.host }}/{{ .Values.database.auth.database }}?{{ .Values.database.auth.querystringargs}}"
- ${DRACONCTL_MIGRATIONS_PATH}
resources:
{{- toYaml .Values.resources | nindent 12 }}
serviceAccountName: {{ include "deduplication_db_migrations.fullname" . }}
Expand Down

0 comments on commit 29c6085

Please sign in to comment.