Merge pull request #95944 from wangyx1992/error-log-captialize

cleanup: fix some error log capitalization

Kubernetes-commit: 48fa50fb5eefb0dee8fb6009a2d91259919f45ec
This commit is contained in:
Kubernetes Publisher 2020-11-04 13:25:21 -08:00
commit d4dda6d52a
4 changed files with 5 additions and 5 deletions

2
Godeps/Godeps.json generated
View File

@ -776,7 +776,7 @@
},
{
"ImportPath": "k8s.io/client-go",
"Rev": "68bb4a9525d8"
"Rev": "bcecfeab186d"
},
{
"ImportPath": "k8s.io/code-generator",

4
go.mod
View File

@ -37,7 +37,7 @@ require (
k8s.io/api v0.0.0-20201104162213-01c5338f427f
k8s.io/apimachinery v0.0.0-20201104162036-79ef3cbd919a
k8s.io/cli-runtime v0.0.0-20201104164157-a3f7397dc36e
k8s.io/client-go v0.0.0-20201104162436-68bb4a9525d8
k8s.io/client-go v0.0.0-20201105002432-bcecfeab186d
k8s.io/component-base v0.0.0-20201104162905-3f97287498d9
k8s.io/component-helpers v0.0.0-20201104163002-2a464068d690
k8s.io/klog/v2 v2.4.0
@ -52,7 +52,7 @@ replace (
k8s.io/api => k8s.io/api v0.0.0-20201104162213-01c5338f427f
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20201104162036-79ef3cbd919a
k8s.io/cli-runtime => k8s.io/cli-runtime v0.0.0-20201104164157-a3f7397dc36e
k8s.io/client-go => k8s.io/client-go v0.0.0-20201104162436-68bb4a9525d8
k8s.io/client-go => k8s.io/client-go v0.0.0-20201105002432-bcecfeab186d
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20201104161901-3609764c976f
k8s.io/component-base => k8s.io/component-base v0.0.0-20201104162905-3f97287498d9
k8s.io/component-helpers => k8s.io/component-helpers v0.0.0-20201104163002-2a464068d690

2
go.sum
View File

@ -511,7 +511,7 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt
k8s.io/api v0.0.0-20201104162213-01c5338f427f/go.mod h1:5iJ2LFNvkNfwL+E+lMewJWlnnT3Fpj1BYHa2Qb4fjrI=
k8s.io/apimachinery v0.0.0-20201104162036-79ef3cbd919a/go.mod h1:WC5jfah6jg0OD6SE11oSOCQHkfkLh7pwIYbwS/dZLe4=
k8s.io/cli-runtime v0.0.0-20201104164157-a3f7397dc36e/go.mod h1:OIreMxwQxdN+VlCRrpYdWuKa3nz8exog4wSSdmXngbQ=
k8s.io/client-go v0.0.0-20201104162436-68bb4a9525d8/go.mod h1:ztJbR1F/dNgUooItME/OBnPPJ7txxpzXUb7zQ7yZRv8=
k8s.io/client-go v0.0.0-20201105002432-bcecfeab186d/go.mod h1:ztJbR1F/dNgUooItME/OBnPPJ7txxpzXUb7zQ7yZRv8=
k8s.io/code-generator v0.0.0-20201104161901-3609764c976f/go.mod h1:XBVD9f8PJVt5zdhi95/mi/yGQEn1GSqbrfD17zGD/l4=
k8s.io/component-base v0.0.0-20201104162905-3f97287498d9/go.mod h1:e91J0JFtlK6KYq5IkdK6rjMoeeEZ68YnyCVaCUkVQuo=
k8s.io/component-helpers v0.0.0-20201104163002-2a464068d690/go.mod h1:FMntmyDIm1iLTi5gEQ5hKfovf7cGLvAKBX/66698Z4Q=

View File

@ -68,7 +68,7 @@ func ParseFileSource(source string) (keyName, filePath string, err error) {
case numSeparators == 1 && strings.HasSuffix(source, "="):
return "", "", fmt.Errorf("file path for key name %v missing", strings.TrimSuffix(source, "="))
case numSeparators > 1:
return "", "", errors.New("Key names or file paths cannot contain '='")
return "", "", errors.New("key names or file paths cannot contain '='")
default:
components := strings.Split(source, "=")
return components[0], components[1], nil