Documentation ¶
Index ¶
- func AtomicUpdateClusterCR(crClient versioned.Interface, name, namespace string, maxRetries int, ...) (*api.ReplicatedStatefulSet, error)
- func CalculateRestoreWaitTime(needDataClone bool) int
- func CheckEtcdData(t *testing.T, url string)
- func ClusterWithVersion(cl *api.ReplicatedStatefulSet, version string) *api.ReplicatedStatefulSet
- func CreateCluster(t *testing.T, crClient versioned.Interface, namespace string, ...) (*api.ReplicatedStatefulSet, error)
- func DeleteCluster(t *testing.T, crClient versioned.Interface, kubeClient kubernetes.Interface, ...) error
- func DeleteSecrets(kubecli kubernetes.Interface, namespace string, secretNames ...string) error
- func KillMembers(kubecli kubernetes.Interface, namespace string, names ...string) error
- func LogfWithTimestamp(t *testing.T, format string, args ...interface{})
- func NameLabelSelector(name string) map[string]string
- func NewCluster(genName string, size int32, image string, labels map[string]string, ...) *api.ReplicatedStatefulSet
- func NewClusterWithSpec(genName string, spec api.ClusterSpec, labels map[string]string, ...) *api.ReplicatedStatefulSet
- func PrepareClientTLSSecret(dir, clusterName, ns, mSecret, oSecret string) error
- func PreparePeerTLSSecret(clusterName, ns, secretName string) error
- func PutDataToEtcd(url string) error
- func UpdateCluster(crClient versioned.Interface, cl *api.ReplicatedStatefulSet, maxRetries int, ...) (*api.ReplicatedStatefulSet, error)
- func WaitPodsDeleted(kubecli kubernetes.Interface, namespace string, retries int, ...) ([]*v1.Pod, error)
- func WaitPodsDeletedCompletely(kubecli kubernetes.Interface, namespace string, retries int, ...) ([]*v1.Pod, error)
- func WaitPodsWithImageDeleted(kubecli kubernetes.Interface, namespace, image string, retries int, ...) ([]*v1.Pod, error)
- func WaitSizeAndVersionReached(t *testing.T, kubeClient kubernetes.Interface, version string, ...) error
- func WaitUntilMembersWithNamesDeleted(t *testing.T, crClient versioned.Interface, retries int, ...) ([]string, error)
- func WaitUntilOperatorReady(kubecli kubernetes.Interface, namespace, name string) error
- func WaitUntilPodSizeReached(t *testing.T, kubeClient kubernetes.Interface, size, retries int, ...) ([]string, error)
- func WaitUntilSizeReached(t *testing.T, crClient versioned.Interface, size, retries int, ...) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicUpdateClusterCR ¶
func AtomicUpdateClusterCR(crClient versioned.Interface, name, namespace string, maxRetries int, updateFunc k8sutil.ReplicatedStatefulSetCRUpdateFunc) (*api.ReplicatedStatefulSet, error)
func CheckEtcdData ¶
func ClusterWithVersion ¶
func ClusterWithVersion(cl *api.ReplicatedStatefulSet, version string) *api.ReplicatedStatefulSet
func CreateCluster ¶
func CreateCluster(t *testing.T, crClient versioned.Interface, namespace string, cl *api.ReplicatedStatefulSet) (*api.ReplicatedStatefulSet, error)
func DeleteCluster ¶
func DeleteCluster(t *testing.T, crClient versioned.Interface, kubeClient kubernetes.Interface, cl *api.ReplicatedStatefulSet) error
func DeleteSecrets ¶
func DeleteSecrets(kubecli kubernetes.Interface, namespace string, secretNames ...string) error
func KillMembers ¶
func KillMembers(kubecli kubernetes.Interface, namespace string, names ...string) error
func LogfWithTimestamp ¶
func NameLabelSelector ¶
NameLabelSelector returns a label selector of the form name=<name>
func NewCluster ¶
func NewClusterWithSpec ¶
func NewClusterWithSpec(genName string, spec api.ClusterSpec, labels map[string]string, annotations map[string]string) *api.ReplicatedStatefulSet
func PrepareClientTLSSecret ¶
func PreparePeerTLSSecret ¶
func PutDataToEtcd ¶
func UpdateCluster ¶
func UpdateCluster(crClient versioned.Interface, cl *api.ReplicatedStatefulSet, maxRetries int, updateFunc k8sutil.ReplicatedStatefulSetCRUpdateFunc) (*api.ReplicatedStatefulSet, error)
func WaitPodsDeleted ¶
func WaitPodsDeleted(kubecli kubernetes.Interface, namespace string, retries int, lo metav1.ListOptions) ([]*v1.Pod, error)
func WaitPodsDeletedCompletely ¶
func WaitPodsDeletedCompletely(kubecli kubernetes.Interface, namespace string, retries int, lo metav1.ListOptions) ([]*v1.Pod, error)
func WaitPodsWithImageDeleted ¶
func WaitPodsWithImageDeleted(kubecli kubernetes.Interface, namespace, image string, retries int, lo metav1.ListOptions) ([]*v1.Pod, error)
func WaitSizeAndVersionReached ¶
func WaitSizeAndVersionReached(t *testing.T, kubeClient kubernetes.Interface, version string, size, retries int, cl *api.ReplicatedStatefulSet) error
func WaitUntilOperatorReady ¶
func WaitUntilOperatorReady(kubecli kubernetes.Interface, namespace, name string) error
WaitUntilOperatorReady will wait until the first pod selected for the label name=etcd-operator is ready.
func WaitUntilPodSizeReached ¶
func WaitUntilPodSizeReached(t *testing.T, kubeClient kubernetes.Interface, size, retries int, cl *api.ReplicatedStatefulSet) ([]string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.