From d2e51b33604c1d9a9b4c317067133510f8e9de28 Mon Sep 17 00:00:00 2001 From: Jaime Rodriguez Date: Tue, 21 Nov 2023 18:49:15 -0800 Subject: [PATCH] show correct arguments in error messages --- pkg/webhook/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/webhook/config.go b/pkg/webhook/config.go index 1c27a2d24..c6c37ad2e 100644 --- a/pkg/webhook/config.go +++ b/pkg/webhook/config.go @@ -39,11 +39,11 @@ func LoadConfig(containerImage, imagePullPolicy, cpuLimit, memoryLimit, ephemera } m, err := resource.ParseQuantity(memoryLimit) if err != nil { - return nil, fmt.Errorf("failed to parse memory limit %q: %w", cpuLimit, err) + return nil, fmt.Errorf("failed to parse memory limit %q: %w", memoryLimit, err) } e, err := resource.ParseQuantity(ephemeralStorageLimit) if err != nil { - return nil, fmt.Errorf("failed to parse ephemeral storage limit %q: %w", cpuLimit, err) + return nil, fmt.Errorf("failed to parse ephemeral storage limit %q: %w", ephemeralStorageLimit, err) } cfg := &Config{ ContainerImage: containerImage,