Documentation ¶
Index ¶
- Constants
- Variables
- func DeployCiliumAndDNS(vm *helpers.Kubectl, ciliumFilename string)
- func DeployCiliumOptionsAndDNS(vm *helpers.Kubectl, ciliumFilename string, options map[string]string)
- func ExpectAllPodsInNsTerminated(vm *helpers.Kubectl, ns string)
- func ExpectAllPodsTerminated(vm *helpers.Kubectl)
- func ExpectCiliumNotRunning(vm *helpers.Kubectl)
- func ExpectCiliumOperatorReady(vm *helpers.Kubectl)
- func ExpectCiliumPreFlightInstallReady(vm *helpers.Kubectl)
- func ExpectCiliumReady(vm *helpers.Kubectl)
- func ExpectHubbleCLIReady(vm *helpers.Kubectl, ns string)
- func ExpectHubbleRelayReady(vm *helpers.Kubectl, ns string)
- func ExpectKubeDNSReady(vm *helpers.Kubectl)
- func InstallAndValidateCiliumUpgrades(kubectl *helpers.Kubectl, ...) (func(), func())
- func RedeployCilium(vm *helpers.Kubectl, ciliumFilename string, options map[string]string)
- func RedeployCiliumWithMerge(vm *helpers.Kubectl, ciliumFilename string, from, options map[string]string)
- func SkipIfBenchmark()
- func SkipIfIntegration(integration string)
- func UninstallCiliumFromManifest(vm *helpers.Kubectl, ciliumFilename string)
- type BPFProgram
Constants ¶
const ( HookTC = "TC" HookCgroup = "CG" HookXDP = "XDP" )
Variables ¶
var ( DemoDaemonSet = helpers.Manifest{ Filename: "demo_ds.yaml", Alternate: "demo_ds_local.yaml", DaemonSetNames: []string{"testds", "testclient"}, DeploymentNames: []string{"test-k8s2"}, NumPods: 1, Singleton: true, } NetperfPods = helpers.Manifest{ Filename: "netperf-deployment.yaml", NumPods: 2, LabelSelector: "zgroup=testapp", } HttpServer = helpers.Manifest{ Filename: "http-deployment.yaml", NumPods: 2, LabelSelector: "zgroup=http-server", } HttpClients = helpers.Manifest{ Filename: "http-clients.yaml", NumPods: 2, LabelSelector: "zgroup=http-clients", } DemoHostFirewall = helpers.Manifest{ Filename: "demo_hostfw.yaml", DaemonSetNames: []string{"testserver", "testclient", "testserver-host", "testclient-host"}, LabelSelector: "zgroup=DS", } IPSecSecret = helpers.Manifest{ Filename: "ipsec_secret.yaml", } StatelessEtcd = helpers.Manifest{ Filename: "etcd-deployment.yaml", NumPods: 1, LabelSelector: "name=stateless-etcd", } ConnectivityCheck = helpers.Manifest{ Filename: "policy-stress-test.yaml", NumPods: 14, LabelSelector: "manifest=policy-stress-test", Singleton: true, } )
Functions ¶
func DeployCiliumAndDNS ¶ added in v1.6.0
DeployCiliumAndDNS deploys DNS and cilium into the kubernetes cluster
func DeployCiliumOptionsAndDNS ¶ added in v1.6.0
func DeployCiliumOptionsAndDNS(vm *helpers.Kubectl, ciliumFilename string, options map[string]string)
DeployCiliumOptionsAndDNS deploys DNS and cilium with options into the kubernetes cluster
func ExpectAllPodsInNsTerminated ¶ added in v1.8.0
ExpectAllPodsInNsTerminated is a wrapper around helpers/WaitTerminatingPods. It asserts that the error returned by that function is nil.
func ExpectAllPodsTerminated ¶
ExpectAllPodsTerminated is a wrapper around helpers/WaitTerminatingPods. It asserts that the error returned by that function is nil.
func ExpectCiliumNotRunning ¶ added in v1.8.6
func ExpectCiliumOperatorReady ¶
ExpectCiliumOperatorReady is a wrapper around helpers/WaitForPods. It asserts that the error returned by that function is nil.
func ExpectCiliumPreFlightInstallReady ¶
ExpectCiliumPreFlightInstallReady is a wrapper around helpers/WaitForNPods. It asserts the error returned by that function is nil.
func ExpectCiliumReady ¶
ExpectCiliumReady is a wrapper around helpers/WaitForPods. It asserts that the error returned by that function is nil.
func ExpectHubbleCLIReady ¶ added in v1.8.0
ExpectHubbleCLIReady is a wrapper around helpers/WaitForPods. It asserts that the error returned by that function is nil.
func ExpectHubbleRelayReady ¶ added in v1.8.0
ExpectHubbleRelayReady is a wrapper around helpers/WaitForPods. It asserts that the error returned by that function is nil.
func ExpectKubeDNSReady ¶
ExpectKubeDNSReady is a wrapper around helpers/WaitKubeDNS. It asserts that the error returned by that function is nil.
func InstallAndValidateCiliumUpgrades ¶
func InstallAndValidateCiliumUpgrades(kubectl *helpers.Kubectl, oldHelmChartVersion, oldImageVersion, newHelmChartVersion, newImageVersion string) (func(), func())
InstallAndValidateCiliumUpgrades installs and tests if the oldVersion can be upgrade to the newVersion and if the newVersion can be downgraded to the oldVersion. It returns two callbacks, the first one is the assertfunction that need to run, and the second one are the cleanup actions
func RedeployCilium ¶ added in v1.7.3
RedeployCilium reinstantiates the Cilium DS and ensures it is running.
This helper is only appropriate for reconfiguring Cilium in the middle of an existing testsuite that calls DeployCiliumAndDNS(...).
func RedeployCiliumWithMerge ¶ added in v1.8.2
func RedeployCiliumWithMerge(vm *helpers.Kubectl, ciliumFilename string, from, options map[string]string)
RedeployCiliumWithMerge merges the configuration passed as "from" into "options", allowing the caller to preserve the previous Cilium configuration, along with passing new configuration. This function behaves equivalently to RedeployCilium. Note that "options" is deep copied, meaning it will NOT be modified. Any modifications will be local to this function.
func SkipIfBenchmark ¶ added in v1.7.0
func SkipIfBenchmark()
SkipIfBenchmark will skip the test if benchmark is not specified
func SkipIfIntegration ¶ added in v1.7.0
func SkipIfIntegration(integration string)
SkipIfIntegration will skip a test if it's running with any of the specified integration.
func UninstallCiliumFromManifest ¶ added in v1.9.0
UninstallCiliumFromManifest uninstall a deployed Cilium configuration from the provided manifest file. Treat this as a cleanup function for RedeployCilium/Redeploy/DeployCiliumAndDNS/CiliumInstall.
Types ¶
type BPFProgram ¶ added in v1.9.12
type BPFProgram struct {
// contains filtered or unexported fields
}
Source Files ¶
- Bandwidth.go
- Chaos.go
- Conformance.go
- CustomCalls.go
- DatapathConfiguration.go
- Egress.go
- Health.go
- Identity.go
- KafkaPolicies.go
- Policies.go
- PoliciesNightly.go
- Services.go
- StressPolicy.go
- Updates.go
- Verifier.go
- assertionHelpers.go
- bgp.go
- bookinfo.go
- cli.go
- external_ips.go
- fqdn.go
- hubble.go
- istio.go
- l7_demos.go
- log.go
- lrp.go
- manifests.go
- service_helpers.go