Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
diff --git a/test/e2e/network/network_policy.go b/test/e2e/network/network_policy.go
index 676e6b25e2c..1b6924711d1 100644
--- a/test/e2e/network/network_policy.go
+++ b/test/e2e/network/network_policy.go
@@ -18,6 +18,7 @@ package network
import (
"encoding/json"
+
v1 "k8s.io/api/core/v1"
# Remove redundancys
There are many redundancy's which make these tests longer then they need to be.
As one example, the following stanza appears 7 times. It is used for network policy tests
which test namespace specific filtering:
```
nsA := f.Namespace
nsBName := f.BaseName + "-b"
nsB, err := f.CreateNamespace(nsBName, map[string]string{
namespace a : pod 1 . namespace b : pod 2 namespace b : pod 2 ...
namespace a : pod 1 . 1
namespace b : pod 2 0
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
This file has been truncated, but you can view the full file.
sonobuoy run --e2e-focus "NetworkPolicy" --e2e-skip "" --kubeconfig=.//out/workload-cluster-4/kubeconfig
• Failure [68.954 seconds]
[sig-network] NetworkPolicy [LinuxOnly]
/workspace/anago-v1.16.3-beta.0.56+b3cbbae08ec52a/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/network/framework.go:23
NetworkPolicy between server and client
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
I0115 21:15:39.297046 1 request.go:530] Throttling request took 81.031142ms, request: GET:https://100.64.0.1:443/apis/autoscaling/v1?timeout=32s
I0115 21:15:39.347109 1 request.go:530] Throttling request took 131.100719ms, request: GET:https://100.64.0.1:443/apis/autoscaling/v2beta1?timeout=32s
I0115 21:15:39.397276 1 request.go:530] Throttling request took 181.198877ms, request: GET:https://100.64.0.1:443/apis/autoscaling/v2beta2?timeout=32s
I0115 21:15:39.447502 1 request.go:530] Throttling request took 227.314248ms, request: GET:https://100.64.0.1:443/apis/networking.k8s.io/v1?timeout=32s
I0115 21:15:39.497233 1 request.go:530] Throttling request took 277.079152ms, request: GET:https://100.64.0.1:443/apis/batch/v1beta1?timeout=32s
I0115 21:15:39.547253 1 request.go:530] Throttling request took 327.09078ms, request: GET:https://100.64.0.1:443/apis/certificates.k8s.io/v1beta1?timeout=32s
I0115 21:15:39.597089 1 request.go:530] Throttling request took 376.868113ms, re
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.