Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix e2e test RejectServiceTraffic (#3892)
createAgnhostServiceAndBackendPods should create the service with the selector that can only selects the Pod created together with it. Previous selector selected all Pods using agnhost image, causing traffic destined for service to be forwarded to unexpected Pod. This patch also changed to use same Pod selector for Service and ClusterNetworkPolicy to avoid redundancy and inconsistency. Signed-off-by: Quan Tian <qtian@vmware.com>
- Loading branch information