Skip to content

Commit

Permalink
Merge pull request #986 from traPtitech/fix/sablier-enable-config
Browse files Browse the repository at this point in the history
fix: 'enable' field of sablier config was not working
  • Loading branch information
pirosiki197 authored Dec 15, 2024
2 parents a6b91b8 + b6741b7 commit bd84835
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/infrastructure/backend/k8simpl/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ func sablierMiddlewareName(appID string) string {
}

func (b *Backend) useSablier(app *domain.Application) bool {
return app.DeployType == domain.DeployTypeRuntime && app.Config.BuildConfig.GetRuntimeConfig().AutoShutdown.Enabled
return b.config.Middleware.Sablier.Enable &&
app.DeployType == domain.DeployTypeRuntime &&
app.Config.BuildConfig.GetRuntimeConfig().AutoShutdown.Enabled
}

func sablierGroupName(appID string) string {
Expand Down

0 comments on commit bd84835

Please sign in to comment.