Skip to content

Commit

Permalink
test: Add DNS visibility annotations to client deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Jarno Rajahalme <[email protected]>
  • Loading branch information
jrajahalme committed Jun 14, 2021
1 parent 07a161d commit 466e8f1
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions connectivity/check/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ func (ct *ConnectivityTest) deploy(ctx context.Context) error {
if err != nil {
ct.Logf("✨ [%s] Deploying client deployment...", ct.clients.src.ClusterName())
clientDeployment := newDeployment(deploymentParameters{
Name: ClientDeploymentName,
Kind: kindClientName,
Port: 8080,
Image: defaults.ConnectivityCheckAlpineCurlImage,
Command: []string{"/bin/ash", "-c", "sleep 10000000"},
Name: ClientDeploymentName,
Kind: kindClientName,
Port: 8080,
Image: defaults.ConnectivityCheckAlpineCurlImage,
Command: []string{"/bin/ash", "-c", "sleep 10000000"},
Annotations: map[string]string{"io.cilium.proxy-visibility": "<Egress/53/ANY/DNS>"},
})
_, err = ct.clients.src.CreateDeployment(ctx, ct.params.TestNamespace, clientDeployment, metav1.CreateOptions{})
if err != nil {
Expand All @@ -262,12 +263,13 @@ func (ct *ConnectivityTest) deploy(ctx context.Context) error {
if err != nil {
ct.Logf("✨ [%s] Deploying client2 deployment...", ct.clients.src.ClusterName())
clientDeployment := newDeployment(deploymentParameters{
Name: Client2DeploymentName,
Kind: kindClientName,
Port: 8080,
Image: defaults.ConnectivityCheckAlpineCurlImage,
Command: []string{"/bin/ash", "-c", "sleep 10000000"},
Labels: map[string]string{"other": "client"},
Name: Client2DeploymentName,
Kind: kindClientName,
Port: 8080,
Image: defaults.ConnectivityCheckAlpineCurlImage,
Command: []string{"/bin/ash", "-c", "sleep 10000000"},
Labels: map[string]string{"other": "client"},
Annotations: map[string]string{"io.cilium.proxy-visibility": "<Egress/53/ANY/DNS>"},
})
_, err = ct.clients.src.CreateDeployment(ctx, ct.params.TestNamespace, clientDeployment, metav1.CreateOptions{})
if err != nil {
Expand Down

0 comments on commit 466e8f1

Please sign in to comment.