Documentation ¶
Index ¶
- func CiliumHealth() check.Scenario
- func ClientToClient() check.Scenario
- func Dummy(name string) check.Scenario
- func EgressGateway() check.Scenario
- func FromCIDRToPod() check.Scenario
- func NetperfPodtoPod(n string) check.Scenario
- func NodeToNodeEncryption() check.Scenario
- func OutsideToNodePort() check.Scenario
- func PodToCIDR(opts ...RetryOption) check.Scenario
- func PodToExternalWorkload() check.Scenario
- func PodToHost() check.Scenario
- func PodToHostPort() check.Scenario
- func PodToIngress(opts ...Option) check.Scenario
- func PodToLocalNodePort() check.Scenario
- func PodToPod(opts ...Option) check.Scenario
- func PodToPodEncryption() check.Scenario
- func PodToPodWithEndpoints(opts ...Option) check.Scenario
- func PodToRemoteNodePort() check.Scenario
- func PodToService(opts ...Option) check.Scenario
- func PodToWorld(opts ...RetryOption) check.Scenario
- func PodToWorld2() check.Scenario
- func PodToWorldWithTLSIntercept(curlOpts ...string) check.Scenario
- type Option
- type RetryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CiliumHealth ¶ added in v0.12.4
func ClientToClient ¶
ClientToClient sends an ICMP packet from each client Pod to each client Pod in the test context.
func EgressGateway ¶ added in v0.14.2
EgressGateway is a test case which, given the cegp-sample CiliumEgressGatewayPolicy targeting: - a couple of client pods (kind=client) as source - the 0.0.0.0/0 destination CIDR - kind-worker2 as gateway node
ensures that traffic from both clients reaches the echo-external service with the egress IP of the gateway node.
func FromCIDRToPod ¶ added in v0.14.0
FromCIDRToPod generates HTTP request from each node without Cilium to the echo pods within the Cilium / K8s cluster.
func NetperfPodtoPod ¶ added in v0.10.5
Network Performance
func NodeToNodeEncryption ¶ added in v0.12.12
func OutsideToNodePort ¶ added in v0.12.2
OutsideToNodePort sends an HTTP request from client pod running on a node w/o Cilium to NodePort services.
func PodToCIDR ¶
func PodToCIDR(opts ...RetryOption) check.Scenario
PodToCIDR sends an HTTPS request from each client Pod to ExternalIP and ExternalOtherIP
func PodToExternalWorkload ¶
func PodToHost ¶
PodToHost sends an ICMP ping from all client Pods to all nodes in the test context.
func PodToHostPort ¶ added in v0.12.2
PodToHostPort sends an HTTP request from all client Pods to all echo Services' HostPorts.
func PodToIngress ¶ added in v0.14.1
PodToIngress sends an HTTP request from all client Pods to all Ingress service in the test context.
func PodToLocalNodePort ¶
PodToLocalNodePort sends an HTTP request from all client Pods to all echo Services' NodePorts, but only on the same node as the client Pods.
func PodToPod ¶
PodToPod generates one HTTP request from each client pod to each echo (server) pod in the test context. The remote Pod is contacted directly, no DNS is involved.
func PodToPodEncryption ¶ added in v0.12.12
PodToPodEncryption is a test case which checks the following:
- There is a connectivity between pods on different nodes when any encryption mode is on (either WireGuard or IPsec).
- No unencrypted packet is leaked.
The checks are implemented by curl'ing a server pod from a client pod, and then inspecting tcpdump captures from the client pod's node.
func PodToPodWithEndpoints ¶ added in v0.12.0
func PodToRemoteNodePort ¶
PodToRemoteNodePort sends an HTTP request from all client Pods to all echo Services' NodePorts, but only to other nodes.
func PodToService ¶
PodToService sends an HTTP request from all client Pods to all Services in the test context.
func PodToWorld ¶
func PodToWorld(opts ...RetryOption) check.Scenario
PodToWorld sends multiple HTTP(S) requests to ExternalTarget from each client Pods.
func PodToWorld2 ¶ added in v0.12.4
PodToWorld2 sends an HTTPS request to cilium.io from from random client Pods.
func PodToWorldWithTLSIntercept ¶ added in v0.13.2
PodToWorldWithTLSIntercept sends an HTTPS request to one.one.one.one (default value of ExternalTarget) from from random client
Types ¶
type Option ¶ added in v0.12.2
type Option func(*labelsOption)
func WithDestinationLabelsOption ¶ added in v0.12.2
func WithMethod ¶ added in v0.12.4
func WithSourceLabelsOption ¶ added in v0.12.2
type RetryOption ¶ added in v0.14.1
type RetryOption func(*retryCondition)
func WithRetryAll ¶ added in v0.14.1
func WithRetryAll() RetryOption
WithRetryAll sets all condition, returns retry options in every case
func WithRetryDestIP ¶ added in v0.14.1
func WithRetryDestIP(ip string) RetryOption
WithRetryDestIP sets ip address condition
func WithRetryDestPort ¶ added in v0.14.1
func WithRetryDestPort(port uint32) RetryOption
WithRetryDestPort sets port condition
func WithRetryPodLabel ¶ added in v0.14.1
func WithRetryPodLabel(name, val string) RetryOption
WithRetryPodLabel sets pod label condition