Skip to content
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

Closed

Conversation

sawsa307
Copy link
Contributor

  • 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.
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}'"
Copy link
Member

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 \
Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

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.

@sawsa307
Copy link
Contributor Author

Closing this since it is not maintainable to use custom hosted image. Will follow up with test author to update it.

@sawsa307 sawsa307 closed this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants