diff --git a/internal/dataplane/sendconfig/dbmode.go b/internal/dataplane/sendconfig/dbmode.go index e47c7f6c470..13a6ab1bee8 100644 --- a/internal/dataplane/sendconfig/dbmode.go +++ b/internal/dataplane/sendconfig/dbmode.go @@ -65,7 +65,7 @@ func NewUpdateStrategyDBModeKonnect( concurrency int, diagnostic *diagnostics.ClientDiagnostic, logger logr.Logger, -) UpdateStrategyDBMode { +) *UpdateStrategyDBMode { s := NewUpdateStrategyDBMode(client, dumpConfig, version, concurrency, diagnostic, logger) s.isKonnect = true return s diff --git a/internal/dataplane/sendconfig/sendconfig.go b/internal/dataplane/sendconfig/sendconfig.go index 139ff0a1604..9ea909f66c0 100644 --- a/internal/dataplane/sendconfig/sendconfig.go +++ b/internal/dataplane/sendconfig/sendconfig.go @@ -77,7 +77,7 @@ func PerformUpdate( updateStrategy := updateStrategyResolver.ResolveUpdateStrategy(client, diagnostic) logger = logger.WithValues("update_strategy", updateStrategy.Type()) timeStart := time.Now() - err = updateStrategy.Update(ctx, ContentWithHash{ + size, err := updateStrategy.Update(ctx, ContentWithHash{ Content: targetContent, CustomEntities: customEntities, Hash: newSHA, diff --git a/test/kongintegration/dbmode_update_strategy_test.go b/test/kongintegration/dbmode_update_strategy_test.go index 5a0cdcf3eff..79ba3f9318c 100644 --- a/test/kongintegration/dbmode_update_strategy_test.go +++ b/test/kongintegration/dbmode_update_strategy_test.go @@ -52,6 +52,7 @@ func TestUpdateStrategyDBMode(t *testing.T) { dump.Config{}, semver.MustParse("3.6.0"), 10, + nil, logger, )