Documentation
¶
Overview ¶
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Copyright 2022 Authors of spidernet-io SPDX-License-Identifier: Apache-2.0
Index ¶
- Variables
- func BatchCreateIppoolWithSpecifiedIPNumber(frame *frame.Framework, ippoolNumber, ipNum int, isV4orv6Pool bool) (ipPoolNameList []string, err error)
- func BatchDeletePoolUntilFinish(f *frame.Framework, iPPoolNameList []string, ctx context.Context) error
- func CheckIppoolForUsedIP(f *frame.Framework, ippool *spiderpool.SpiderIPPool, ...) (bool, error)
- func CheckPodIpRecordInIppool(f *frame.Framework, v4IppoolNameList, v6IppoolNameList []string, ...) (allIPRecorded, noneIPRecorded, partialIPRecorded bool, err error)
- func CheckPodListInclude(list *corev1.PodList, pod *corev1.Pod) bool
- func CreateDeployUntilExpectedReplicas(frame *e2e.Framework, deploy *appsv1.Deployment, ctx context.Context) (pods *corev1.PodList, err error)
- func CreateIppool(f *frame.Framework, ippool *spiderpool.SpiderIPPool, ...) error
- func CreatePodUntilReady(frame *e2e.Framework, podYaml *corev1.Pod, podName, namespace string, ...) (pod *corev1.Pod, podIPv4, podIPv6 string)
- func CreateReservedIP(f *frame.Framework, ReservedIP *spiderpool.SpiderReservedIP, ...) error
- func DeleteIPPoolByName(f *frame.Framework, poolName string, opts ...client.DeleteOption) error
- func DeleteIPPoolUntilFinish(f *frame.Framework, poolName string, ctx context.Context, ...) error
- func DeleteReservedIPByName(f *frame.Framework, reservedIPName string, opts ...client.DeleteOption) error
- func DeleteResverdIPUntilFinish(ctx context.Context, f *frame.Framework, reservedIPName string, ...) error
- func ExecCommand(cmd *exec.Cmd, timeOut time.Duration) (stdout string, exitCode int)
- func ExecCommandOnKindNode(nodeNameList []string, command string, timeOut time.Duration)
- func GenerateExampleDaemonSetYaml(dsName, namespace string) *appsv1.DaemonSet
- func GenerateExampleDeploymentYaml(dpmName, namespace string, replica int32) *appsv1.Deployment
- func GenerateExampleIpv4poolObject(ipNum int) (string, *spiderpool.SpiderIPPool)
- func GenerateExampleIpv6poolObject(ipNum int) (string, *spiderpool.SpiderIPPool)
- func GenerateExampleJobYaml(behavior JobBehave, jdName, namespace string, parallelism *int32) *batchv1.Job
- func GenerateExamplePodYaml(podName, namespace string) *corev1.Pod
- func GenerateExampleReplicaSetYaml(rsName, namespace string, replica int32) *appsv1.ReplicaSet
- func GenerateExampleStatefulSetYaml(stsName, namespace string, replica int32) *appsv1.StatefulSet
- func GenerateExampleV4ReservedIpObject(ips []string) (string, *spiderpool.SpiderReservedIP)
- func GenerateExampleV6ReservedIpObject(ips []string) (string, *spiderpool.SpiderReservedIP)
- func GenerateRandomNumber(max int) string
- func GenerateString(lenNum int, isHex bool) string
- func GetAdditionalPods(previous, latter *corev1.PodList) (pods []corev1.Pod)
- func GetAllIppool(f *frame.Framework, opts ...client.ListOption) *spiderpool.SpiderIPPoolList
- func GetClusterDefaultIppool(f *frame.Framework) (v4IppoolList, v6IppoolList []string, e error)
- func GetIppoolByName(f *frame.Framework, poolName string) *spiderpool.SpiderIPPool
- func GetNamespaceDefaultIppool(f *frame.Framework, namespace string) (v4IppoolList, v6IppoolList []string, e error)
- func GetPodIPv4Address(pod *corev1.Pod) *corev1.PodIP
- func GetPodIPv6Address(pod *corev1.Pod) *corev1.PodIP
- func GetReservedIPByName(f *frame.Framework, reservedIPName string) *spiderpool.SpiderReservedIP
- func GetWorkloadByName(f *frame.Framework, namespace, name string) *spiderpool.SpiderEndpoint
- func RestartNodeUntilReady(frame *e2e.Framework, nodeMap map[string]bool, timeOut time.Duration, ...) (bool, error)
- func ScaleDeployUntilExpectedReplicas(frame *e2e.Framework, deploy *appsv1.Deployment, expectedReplicas int, ...) (addedPod, removedPod []corev1.Pod, err error)
- func UpdateIppool(f *frame.Framework, ippool *spiderpool.SpiderIPPool, ...) error
- func WaitIPReclaimedFinish(f *frame.Framework, v4IppoolNameList, v6IppoolNameList []string, ...) error
- type JobBehave
Constants ¶
This section is empty.
Variables ¶
var CNIFailedToSetUpNetwork = "failed to setup network for sandbox"
var DaemonSetNameString = "daemonSet"
var DeploymentNameString = "deployment"
var GetIpamAllocationFailed = "get ipam allocation failed"
var PodEventKind = "Pod"
var ReplicaSetNameString = "replicaSet"
var SpiderPoolConfigmapName = "spiderpool-conf"
var SpiderPoolConfigmapNameSpace = "kube-system"
var StatefulSetNameString = "statefulSet"
Functions ¶
func BatchCreateIppoolWithSpecifiedIPNumber ¶ added in v0.0.5
func BatchDeletePoolUntilFinish ¶ added in v0.0.5
func CheckIppoolForUsedIP ¶ added in v0.0.4
func CheckIppoolForUsedIP(f *frame.Framework, ippool *spiderpool.SpiderIPPool, PodName, PodNamespace string, ipAddrress *corev1.PodIP) (bool, error)
func CheckPodIpRecordInIppool ¶ added in v0.0.4
func CheckPodListInclude ¶ added in v0.0.4
func CreateDeployUntilExpectedReplicas ¶ added in v0.0.5
func CreateIppool ¶ added in v0.0.4
func CreateIppool(f *frame.Framework, ippool *spiderpool.SpiderIPPool, opts ...client.CreateOption) error
func CreatePodUntilReady ¶
func CreateReservedIP ¶ added in v0.0.5
func CreateReservedIP(f *frame.Framework, ReservedIP *spiderpool.SpiderReservedIP, opts ...client.CreateOption) error
func DeleteIPPoolByName ¶ added in v0.0.4
func DeleteIPPoolUntilFinish ¶ added in v0.0.4
func DeleteReservedIPByName ¶ added in v0.0.5
func DeleteResverdIPUntilFinish ¶ added in v0.0.5
func ExecCommand ¶ added in v0.0.5
func ExecCommandOnKindNode ¶ added in v0.0.4
func GenerateExampleDeploymentYaml ¶
func GenerateExampleDeploymentYaml(dpmName, namespace string, replica int32) *appsv1.Deployment
func GenerateExampleIpv4poolObject ¶ added in v0.0.4
func GenerateExampleIpv4poolObject(ipNum int) (string, *spiderpool.SpiderIPPool)
func GenerateExampleIpv6poolObject ¶ added in v0.0.4
func GenerateExampleIpv6poolObject(ipNum int) (string, *spiderpool.SpiderIPPool)
func GenerateExampleJobYaml ¶ added in v0.0.4
func GenerateExamplePodYaml ¶
func GenerateExampleReplicaSetYaml ¶
func GenerateExampleReplicaSetYaml(rsName, namespace string, replica int32) *appsv1.ReplicaSet
func GenerateExampleStatefulSetYaml ¶
func GenerateExampleStatefulSetYaml(stsName, namespace string, replica int32) *appsv1.StatefulSet
func GenerateExampleV4ReservedIpObject ¶ added in v0.0.5
func GenerateExampleV4ReservedIpObject(ips []string) (string, *spiderpool.SpiderReservedIP)
func GenerateExampleV6ReservedIpObject ¶ added in v0.0.5
func GenerateExampleV6ReservedIpObject(ips []string) (string, *spiderpool.SpiderReservedIP)
func GenerateRandomNumber ¶ added in v0.0.4
func GenerateString ¶
func GetAdditionalPods ¶ added in v0.0.4
func GetAllIppool ¶ added in v0.0.4
func GetAllIppool(f *frame.Framework, opts ...client.ListOption) *spiderpool.SpiderIPPoolList
func GetClusterDefaultIppool ¶ added in v0.0.4
func GetIppoolByName ¶ added in v0.0.4
func GetIppoolByName(f *frame.Framework, poolName string) *spiderpool.SpiderIPPool
func GetNamespaceDefaultIppool ¶ added in v0.0.4
func GetReservedIPByName ¶ added in v0.0.5
func GetReservedIPByName(f *frame.Framework, reservedIPName string) *spiderpool.SpiderReservedIP
func GetWorkloadByName ¶ added in v0.0.4
func GetWorkloadByName(f *frame.Framework, namespace, name string) *spiderpool.SpiderEndpoint
func RestartNodeUntilReady ¶ added in v0.0.5
func ScaleDeployUntilExpectedReplicas ¶ added in v0.0.5
func UpdateIppool ¶ added in v0.0.5
func UpdateIppool(f *frame.Framework, ippool *spiderpool.SpiderIPPool, opts ...client.UpdateOption) error