k3s/pkg/api
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
events Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
fuzzer Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
helper OIR predicate includes namespaced resources. 2017-08-16 15:29:24 -07:00
install Merge pull request #50094 from sttts/sttts-no-importprefix 2017-08-14 12:14:55 -07:00
persistentvolume 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
ref Merge pull request #50204 from smarterclayton/move_list_to_metav1 2017-08-16 02:50:26 -07: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
testapi Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
testing Generated StorageClass.ReclaimPolicy code 2017-08-14 13:36:58 -04:00
unversioned Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
util Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
v1 Merge pull request #50665 from xiangpengzhao/hardcode-to-const 2017-08-23 02:35:09 -07:00
validation Merge pull request #48789 from mtanino/issue/47311 2017-08-22 19:45:29 -07:00
BUILD Merge pull request #41901 from soltysh/cronjobs_beta 2017-08-16 15:59:46 -07:00
OWNERS Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
annotation_key_constants.go mark created-by annotation as deprecated 2017-08-15 17:08:07 -07:00
conversion_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
copy_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
deep_copy_test.go Remove the temporary fix for pre-1.0 mirror pods 2017-02-02 10:37:19 -08:00
defaulting_test.go Merge pull request #47987 from wongma7/reclaimpolicy 2017-08-17 01:32:18 -07:00
doc.go
field_constants.go
json.go Change taint/toleration annotations to api fields. 2017-02-22 09:27:42 -05:00
meta_test.go API 2017-02-28 23:05:40 -08:00
node_example.json
objectreference.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
register.go Dynamic Kubelet Configuration 2017-08-08 12:21:37 -07:00
replication_controller_example.json
resource.go Add EmptyDir Volume and local storage for container overlay Isolation 2017-06-05 12:05:48 -07:00
serialization_proto_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
serialization_test.go Revert "Merge pull request #51008 from kubernetes/revert-50789-fix-scheme" 2017-08-21 11:28:05 -07:00
taint.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
taint_test.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
toleration.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
types.go Merge pull request #48789 from mtanino/issue/47311 2017-08-22 19:45:29 -07:00
unstructured_test.go Unify fuzzers and roundtrip tests 2017-07-20 12:31:00 +02:00
zz_generated.deepcopy.go Autogenerated files 2017-08-21 12:29:32 -04:00