Fix of review comments. Will squash later.

Including:
- Remove external usage of resource name vars
- Add commments about why we export field helpers
This commit is contained in:
Xiangyang Chu
2019-07-18 09:12:28 +08:00
parent 313044abd7
commit 4ef227c682
3 changed files with 8 additions and 9 deletions

View File

@@ -640,7 +640,7 @@ run_rs_tests() {
# Post-condition: no replica set exists
kube::test::get_object_assert rs "{{range.items}}{{${id_field:?}}}:{{end}}" ''
if kube::test::if_supports_resource "${horizontalpodautoscalers:?}" ; then
if kube::test::if_supports_resource "horizontalpodautoscalers" ; then
### Auto scale replica set
# Pre-condition: no replica set exists
kube::test::get_object_assert rs "{{range.items}}{{${id_field:?}}}:{{end}}" ''