Split naming behavior out into objects that are derived from the request
Fix bug with cross namespace queries not being possible. Ensure selflink is set on lists correctly.
This commit is contained in:
@@ -146,6 +146,11 @@ for version in "${kube_api_versions[@]}"; do
|
||||
kubectl describe pod redis-master "${kube_flags[@]}" | grep -q 'Name:.*redis-master'
|
||||
kubectl delete -f examples/guestbook/redis-master.json "${kube_flags[@]}"
|
||||
|
||||
# make calls in another namespace
|
||||
kubectl create --namespace=other -f examples/guestbook/redis-master.json "${kube_flags[@]}"
|
||||
kubectl get pod --namespace=other redis-master
|
||||
kubectl delete pod --namespace=other redis-master
|
||||
|
||||
kube::log::status "Testing kubectl(${version}:services)"
|
||||
kubectl get services "${kube_flags[@]}"
|
||||
kubectl create -f examples/guestbook/frontend-service.json "${kube_flags[@]}"
|
||||
|
Reference in New Issue
Block a user