From b6741b780b08878fe603e069bdfa14b9e923260d Mon Sep 17 00:00:00 2001 From: pirosiki197 Date: Sun, 15 Dec 2024 11:46:04 +0900 Subject: [PATCH] fix: 'enable' field of sablier config was not working --- pkg/infrastructure/backend/k8simpl/backend.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {