kubernetes/pkg/api/v1
Kubernetes Submit Queue 178a5ff314 Merge pull request #50665 from xiangpengzhao/hardcode-to-const
Automatic merge from submit-queue (batch tested with PRs 50257, 50247, 50665, 50554, 51077)

Replace hard-code "cpu" and "memory" to consts

**What this PR does / why we need it**:
There are many places using hard coded "cpu" and "memory" as resource name. This PR replace them to consts.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:
/kind cleanup

**Release note**:

```release-note
NONE
```
2017-08-23 02:35:09 -07:00
..
endpoints Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
helper Merge pull request #48922 from ConnorDoyle/integer-resources-as-default 2017-08-16 19:50:15 -07:00
node Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
pod Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
resource Replace hard-code "cpu" and "memory" to consts 2017-08-16 16:37:50 +08:00
service Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
validation auto-gen 2017-08-17 15:42:05 +08:00
backward_compatibility_test.go manually fix unit tests in pkg/api/v1 2017-06-22 11:30:52 -07:00
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
conversion_test.go manually fix unit tests in pkg/api/v1 2017-06-22 11:30:52 -07:00
conversion.go allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
defaults_test.go Remove deprecated ESIPP beta annotations 2017-08-05 15:00:58 +08:00
defaults.go Remove deprecated ESIPP beta annotations 2017-08-05 15:00:58 +08:00
doc.go split v1/register.go to regsiter.go and builder.go 2017-06-22 10:21:42 -07:00
generate.go run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
register.go rename pkg/api/v1/builder.go to register.go to be consistent with others 2017-07-21 14:03:32 -07:00
zz_generated.conversion.go Autogenerated files 2017-08-21 12:29:32 -04:00
zz_generated.defaults.go run hack/update-codegen.sh 2017-06-22 11:30:58 -07:00