• Kubernetes Submit Queue's avatar
    Merge pull request #50665 from xiangpengzhao/hardcode-to-const · 178a5ff3
    Kubernetes Submit Queue authored
    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
    ```
    178a5ff3
Name
Last commit
Last update
..
util Loading commit data...
BUILD Loading commit data...
balanced_resource_allocation.go Loading commit data...
balanced_resource_allocation_test.go Loading commit data...
image_locality.go Loading commit data...
image_locality_test.go Loading commit data...
interpod_affinity.go Loading commit data...
interpod_affinity_test.go Loading commit data...
least_requested.go Loading commit data...
least_requested_test.go Loading commit data...
metadata.go Loading commit data...
metadata_test.go Loading commit data...
most_requested.go Loading commit data...
most_requested_test.go Loading commit data...
node_affinity.go Loading commit data...
node_affinity_test.go Loading commit data...
node_label.go Loading commit data...
node_label_test.go Loading commit data...
node_prefer_avoid_pods.go Loading commit data...
node_prefer_avoid_pods_test.go Loading commit data...
selector_spreading.go Loading commit data...
selector_spreading_test.go Loading commit data...
taint_toleration.go Loading commit data...
taint_toleration_test.go Loading commit data...
test_util.go Loading commit data...