From 14c091aec7914b2f59bf3fd45f479552b76aa413 Mon Sep 17 00:00:00 2001 From: Mauren Berti Date: Mon, 29 Jan 2024 22:57:30 -0500 Subject: [PATCH] fix: remove excessive quoting from error messages --- kustomize/commands/edit/set/setconfigmap.go | 2 +- kustomize/commands/edit/set/setsecret.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kustomize/commands/edit/set/setconfigmap.go b/kustomize/commands/edit/set/setconfigmap.go index ff71b8886..b7a86ad74 100644 --- a/kustomize/commands/edit/set/setconfigmap.go +++ b/kustomize/commands/edit/set/setconfigmap.go @@ -151,7 +151,7 @@ func findConfigMapArgs(m *types.Kustomization, name, namespace string) (*types.C }) if cmIndex == -1 { - return nil, fmt.Errorf("unable to find ConfigMap with name '%q'", name) + return nil, fmt.Errorf("unable to find ConfigMap with name %q", name) } return &m.ConfigMapGenerator[cmIndex], nil diff --git a/kustomize/commands/edit/set/setsecret.go b/kustomize/commands/edit/set/setsecret.go index ad91634b2..c9cca6f36 100644 --- a/kustomize/commands/edit/set/setsecret.go +++ b/kustomize/commands/edit/set/setsecret.go @@ -150,7 +150,7 @@ func findSecretArgs(m *types.Kustomization, name, namespace string) (*types.Secr }) if cmIndex == -1 { - return nil, fmt.Errorf("unable to find Secret with name '%q'", name) + return nil, fmt.Errorf("unable to find Secret with name %q", name) } return &m.SecretGenerator[cmIndex], nil