mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-28 21:55:48 +00:00
Merge pull request #10892 from nikhiljindal/beta1
Removing references to pre v1beta3 apis in code
This commit is contained in:
@@ -468,7 +468,6 @@ runTests() {
|
||||
|
||||
### Printing pod templates works
|
||||
kubectl get podtemplates "${kube_flags[@]}"
|
||||
### Display of an object which doesn't existing in v1beta1 and v1beta2 works
|
||||
[[ "$(kubectl get podtemplates -o yaml "${kube_flags[@]}" | grep nginx)" ]]
|
||||
|
||||
### Delete nginx pod template by name
|
||||
@@ -738,20 +737,6 @@ __EOF__
|
||||
# Post-condition: node is schedulable
|
||||
kube::test::get_object_assert "nodes 127.0.0.1" "{{.spec.unschedulable}}" '<no value>'
|
||||
|
||||
###########
|
||||
# Nodes #
|
||||
###########
|
||||
|
||||
if [[ "${version}" = "v1beta1" ]] || [[ "${version}" = "v1beta2" ]]; then
|
||||
kube::log::status "Testing kubectl(${version}:nodes)"
|
||||
|
||||
kube::test::get_object_assert nodes "{{range.items}}{{$id_field}}:{{end}}" '127.0.0.1:'
|
||||
|
||||
kube::test::get_object_assert nodes '{{.kind}}' 'List'
|
||||
|
||||
kube::test::describe_object_assert nodes "127.0.0.1" "Name:" "Conditions:" "Addresses:" "Capacity:" "Pods:"
|
||||
fi
|
||||
|
||||
|
||||
#####################
|
||||
# Retrieve multiple #
|
||||
|
Reference in New Issue
Block a user