mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-02 14:51:58 +00:00
Switch test manifests to apps/v1, remove beta workloads calls
This commit is contained in:
@@ -1123,26 +1123,10 @@ run_rc_tests() {
|
||||
kube::test::if_has_string "${output_message}" 'service/expose-test-deployment exposed'
|
||||
# Clean-up
|
||||
kubectl delete service/expose-test-deployment "${kube_flags[@]}"
|
||||
# Uses deployment selectors for created service
|
||||
output_message=$(kubectl expose -f test/fixtures/pkg/kubectl/cmd/expose/appsv1beta2deployment.yaml --port 80 2>&1 "${kube_flags[@]}")
|
||||
# Post-condition: service created for deployment.
|
||||
kube::test::if_has_string "${output_message}" 'service/expose-test-deployment exposed'
|
||||
# Clean-up
|
||||
kubectl delete service/expose-test-deployment "${kube_flags[@]}"
|
||||
# Uses deployment selectors for created service
|
||||
output_message=$(kubectl expose -f test/fixtures/pkg/kubectl/cmd/expose/appsv1beta1deployment.yaml --port 80 2>&1 "${kube_flags[@]}")
|
||||
# Post-condition: service created for deployment.
|
||||
kube::test::if_has_string "${output_message}" 'service/expose-test-deployment exposed'
|
||||
# Clean-up
|
||||
kubectl delete service/expose-test-deployment "${kube_flags[@]}"
|
||||
# Contains no selectors, should fail.
|
||||
output_message=$(! kubectl expose -f test/fixtures/pkg/kubectl/cmd/expose/appsv1deployment-no-selectors.yaml --port 80 2>&1 "${kube_flags[@]}")
|
||||
# Post-condition: service created for deployment.
|
||||
kube::test::if_has_string "${output_message}" 'invalid deployment: no selectors'
|
||||
# Contains no selectors, should fail.
|
||||
output_message=$(! kubectl expose -f test/fixtures/pkg/kubectl/cmd/expose/appsv1beta2deployment-no-selectors.yaml --port 80 2>&1 "${kube_flags[@]}")
|
||||
# Post-condition: service created for deployment.
|
||||
kube::test::if_has_string "${output_message}" 'invalid deployment: no selectors'
|
||||
|
||||
### Expose a deployment as a service
|
||||
kubectl create -f test/fixtures/doc-yaml/user-guide/deployment.yaml "${kube_flags[@]}"
|
||||
|
||||
Reference in New Issue
Block a user