Skip to content

Commit

Permalink
fix: 'enable' field of sablier config was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
pirosiki197 committed Dec 15, 2024
1 parent a6b91b8 commit b6741b7
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 b6741b7

Please sign in to comment.