mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
fix: remove excessive quoting from error messages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user