From 8bf8fd8e6e0d2f9c7a8af525c0ef72445c797fa3 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Tue, 3 Sep 2024 16:14:40 +0300 Subject: [PATCH] Remove unecessary changes Signed-off-by: Dimitris Karakasilis --- pkg/config/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/spec.go b/pkg/config/spec.go index 304f72f3..a20490bd 100644 --- a/pkg/config/spec.go +++ b/pkg/config/spec.go @@ -355,7 +355,6 @@ func NewUpgradeSpec(cfg *Config) (*v1.UpgradeSpec, error) { if err != nil { return nil, fmt.Errorf("failed calculating size: %w", err) } - return spec, nil } @@ -373,6 +372,7 @@ func setUpgradeSourceSize(cfg *Config, spec *v1.UpgradeSpec) error { if targetSpec.Source != nil && targetSpec.Source.IsEmpty() { return nil } + size, err = GetSourceSize(cfg, targetSpec.Source) if err != nil { return err