Skip to content

Commit

Permalink
fix: run db migration instead of version command
Browse files Browse the repository at this point in the history
This fixes the removal of the store initialialization for the
version command of the mattermost server under
mattermost/mattermost#19364
  • Loading branch information
fmartingr committed Apr 26, 2023
1 parent f4373bf commit 9c0fda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/update_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func PrepareMattermostJobTemplate(name, namespace string, baseDeployment *appsv1
job.Spec.Template.Spec.Containers[i].ReadinessProbe = nil

// We don't want the full server to start so we print the version and exit
job.Spec.Template.Spec.Containers[i].Args = []string{"version"}
job.Spec.Template.Spec.Containers[i].Args = []string{"db", "migrate"}
}

// Override values for job-specific behavior.
Expand Down

0 comments on commit 9c0fda8

Please sign in to comment.