diff --git a/pkg/infrastructure/backend/k8simpl/backend.go b/pkg/infrastructure/backend/k8simpl/backend.go index bdd273ed..fb2437c4 100644 --- a/pkg/infrastructure/backend/k8simpl/backend.go +++ b/pkg/infrastructure/backend/k8simpl/backend.go @@ -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 {