Fix golint errors in pkg/apis/core (#82919)

* Fix lint errors related to receiver name

Ref #68026

* Fix lint errors related to comments

Ref #68026

* Fix package name in comments

Ref #68026

* Rename Cpu to CPU

Ref #68026

* Fix lint errors related to naming convention

Ref #68026

* Remove deprecated field

DoNotUse_ExternalID has been deprecated and is not in use anymore.
It has been removed to fix lint errors related to underscores in field
names.

Ref #68026, #61966

* Include pkg/apis/core in golint check

Ref #68026

* Rename var to fix lint errors

Ref #68026

* Revert "Remove deprecated field"

This reverts commit 75e9bfc168077fcb9346e334b59d60a2c997735b.

Ref #82919

* Remove math from godoc

Ref #82919, #68026

* Remove underscore from var name

Ref #68026

* Rename var in staging core api type

Ref #68026
This commit is contained in:
Mahendra Kariya
2019-09-25 23:36:51 +05:30
committed by Kubernetes Prow Robot
parent 0b4cccc9d1
commit 3698100224
16 changed files with 1052 additions and 971 deletions

View File

@@ -13099,9 +13099,9 @@ func TestValidateDockerConfigSecret(t *testing.T) {
validDockerSecret2 := func() core.Secret {
return core.Secret{
ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "bar"},
Type: core.SecretTypeDockerConfigJson,
Type: core.SecretTypeDockerConfigJSON,
Data: map[string][]byte{
core.DockerConfigJsonKey: []byte(`{"auths":{"https://index.docker.io/v1/": {"auth": "Y2x1ZWRyb29sZXIwMDAxOnBhc3N3b3Jk","email": "fake@example.com"}}}`),
core.DockerConfigJSONKey: []byte(`{"auths":{"https://index.docker.io/v1/": {"auth": "Y2x1ZWRyb29sZXIwMDAxOnBhc3N3b3Jk","email": "fake@example.com"}}}`),
},
}
}
@@ -13118,9 +13118,9 @@ func TestValidateDockerConfigSecret(t *testing.T) {
delete(missingDockerConfigKey.Data, core.DockerConfigKey)
emptyDockerConfigKey.Data[core.DockerConfigKey] = []byte("")
invalidDockerConfigKey.Data[core.DockerConfigKey] = []byte("bad")
delete(missingDockerConfigKey2.Data, core.DockerConfigJsonKey)
emptyDockerConfigKey2.Data[core.DockerConfigJsonKey] = []byte("")
invalidDockerConfigKey2.Data[core.DockerConfigJsonKey] = []byte("bad")
delete(missingDockerConfigKey2.Data, core.DockerConfigJSONKey)
emptyDockerConfigKey2.Data[core.DockerConfigJSONKey] = []byte("")
invalidDockerConfigKey2.Data[core.DockerConfigJSONKey] = []byte("bad")
tests := map[string]struct {
secret core.Secret