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

connectivity: Label test namespaces #2652

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/aks-byocni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ jobs:

# Run connectivity test
cilium connectivity test --test-concurrency=5 --collect-sysdump-on-failure --external-target bing.com.
kubectl delete namespace -l "app.kubernetes.io/name=cilium-cli"

# Run performance test
cilium connectivity perf --duration 1s
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/eks-tunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jobs:
# - https://github.com/cilium/cilium/issues/16975 is fixed
# - fix has been deployed to a stable branch
# - cilium-cli default cilium version has been updated to pick up the fix
kubectl delete namespace -l "app.kubernetes.io/name=cilium-cli"

# Run performance test
cilium connectivity perf --duration 1s
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ jobs:

# Run connectivity test
cilium connectivity test --test-concurrency=3 --all-flows --collect-sysdump-on-failure --external-target amazon.com.
kubectl delete namespace -l "app.kubernetes.io/name=cilium-cli"

# Run performance test
cilium connectivity perf --duration 1s
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/externalworkloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ jobs:
run: |
# Run connectivity test
cilium connectivity test --test-concurrency=5 --all-flows --collect-sysdump-on-failure --external-target google.com.
kubectl delete namespace -l "app.kubernetes.io/name=cilium-cli"

# Run performance test
cilium connectivity perf --duration 1s
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ jobs:

# Run connectivity test
cilium connectivity test --test-concurrency=5 --all-flows --collect-sysdump-on-failure --external-target google.com.
kubectl delete namespace -l "app.kubernetes.io/name=cilium-cli"

# Run performance test
cilium connectivity perf --duration 1s
Expand Down
7 changes: 7 additions & 0 deletions connectivity/check/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ const (
KindTestConnDisrupt = "test-conn-disrupt"
)

var (
appLabels = map[string]string{
"app.kubernetes.io/name": "cilium-cli",
}
)

type deploymentParameters struct {
Name string
Kind string
Expand Down Expand Up @@ -409,6 +415,7 @@ func (ct *ConnectivityTest) deploy(ctx context.Context) error {
ObjectMeta: metav1.ObjectMeta{
Name: ct.params.TestNamespace,
Annotations: ct.params.NamespaceAnnotations,
Labels: appLabels,
},
}
_, err = client.CreateNamespace(ctx, namespace, metav1.CreateOptions{})
Expand Down
Loading