-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for ingress-custom-grpc-health-check #176
Conversation
sawsa307
commented
Oct 19, 2023
- Update SSL policy name in the recipe README and yaml to avoid naming collision.
- Add a helper function to check if a string has the expected pattern count.
- Update instance image version since the official docker install script doesn't work for debian-11.
- Add test for ingress-grpc recipe. The traffic is validated by running a grpc-client image on a docker and send grpc request to the load balancer IP.
* Update SSL policy name in the recipe README and yaml to avoid naming collision. * Add a helper function to check if a string has the expected pattern count. * Update instance image version since the offical docker install script doesn't work for debian-11. * Add test for ingress-grpc recipe. The traffic is validated by running a grpc-client image on a docker and send grpc request to the load balancer IP.
e3640f9
to
2c29e0b
Compare
eval_cmd="gcloud compute ssh "${instance}" --zone="${zone}" -- \ | ||
'{ docker --version || \ | ||
(curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh); } > /dev/null && \ | ||
sudo ${eval_cmd}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to do this without having to install docker? Is there a debian package that offers a grpc_client?
eval_cmd="docker run \ | ||
--add-host grpc.domain.com:${vip} \ | ||
-t \ | ||
docker.io/salrashid123/grpc_app /grpc_client \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not use random containers on the Internet in our tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a security and reliability issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is described in the README so I follow within the test.
I'll look for ways to validate using an official image for grpc_client or using grpcurl.
Closing this since it is not maintainable to use custom hosted image. Will follow up with test author to update it. |