Documentation ¶
Index ¶
- func AtomicUpdateClusterCR(crClient versioned.Interface, name, namespace string, maxRetries int, ...) (*api.EtcdCluster, error)
- func CalculateRestoreWaitTime(needDataClone bool) int
- func CheckEtcdData(t *testing.T, url string)
- func ClusterCRWithTLS(cl *api.EtcdCluster, ...)
- func ClusterWithVersion(cl *api.EtcdCluster, version string) *api.EtcdCluster
- func CreateCluster(t *testing.T, crClient versioned.Interface, namespace string, ...) (*api.EtcdCluster, 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 int) *api.EtcdCluster
- func NewEtcdRestore(clusterName string, size int, restoreSource api.RestoreSource, ...) *api.EtcdRestore
- func NewS3Backup(endpoints []string, clusterName, path, secret, clientTLSSecret string) *api.EtcdBackup
- func NewS3RestoreSource(path, awsSecret string) *api.S3RestoreSource
- func PrepareClientTLSSecret(dir, clusterName, ns, mSecret, oSecret string) error
- func PreparePeerTLSSecret(clusterName, ns, secretName string) error
- func PrepareTLS(clusterName, namespace, memberPeerTLSSecret, memberClientTLSSecret, ... string) error
- func PutDataToEtcd(url string) error
- func UpdateCluster(crClient versioned.Interface, cl *api.EtcdCluster, maxRetries int, ...) (*api.EtcdCluster, 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, cl *api.EtcdCluster, ...) ([]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)
- type StorageCheckerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicUpdateClusterCR ¶ added in v0.5.0
func AtomicUpdateClusterCR(crClient versioned.Interface, name, namespace string, maxRetries int, updateFunc k8sutil.EtcdClusterCRUpdateFunc) (*api.EtcdCluster, error)
func CalculateRestoreWaitTime ¶ added in v0.3.0
func CheckEtcdData ¶ added in v0.3.0
func ClusterCRWithTLS ¶ added in v0.7.1
func ClusterCRWithTLS(cl *api.EtcdCluster, memberPeerTLSSecret, memberServerTLSSecret, operatorClientTLSSecret string)
ClusterCRWithTLS adds TLSPolicy to the passing in cluster CR.
func ClusterWithVersion ¶ added in v0.2.6
func ClusterWithVersion(cl *api.EtcdCluster, version string) *api.EtcdCluster
func CreateCluster ¶ added in v0.2.6
func CreateCluster(t *testing.T, crClient versioned.Interface, namespace string, cl *api.EtcdCluster) (*api.EtcdCluster, error)
func DeleteCluster ¶ added in v0.2.6
func DeleteCluster(t *testing.T, crClient versioned.Interface, kubeClient kubernetes.Interface, cl *api.EtcdCluster) error
func DeleteSecrets ¶ added in v0.4.1
func DeleteSecrets(kubecli kubernetes.Interface, namespace string, secretNames ...string) error
func KillMembers ¶ added in v0.3.0
func KillMembers(kubecli kubernetes.Interface, namespace string, names ...string) error
func LogfWithTimestamp ¶ added in v0.2.6
func NameLabelSelector ¶ added in v0.5.0
NameLabelSelector returns a label selector of the form name=<name>
func NewCluster ¶ added in v0.2.6
func NewCluster(genName string, size int) *api.EtcdCluster
func NewEtcdRestore ¶ added in v0.7.0
func NewEtcdRestore(clusterName string, size int, restoreSource api.RestoreSource, backupStorageType api.BackupStorageType) *api.EtcdRestore
NewEtcdRestore returns an EtcdRestore CR with the specified RestoreSource
func NewS3Backup ¶ added in v0.7.0
func NewS3Backup(endpoints []string, clusterName, path, secret, clientTLSSecret string) *api.EtcdBackup
NewS3Backup creates a EtcdBackup object using clusterName.
func NewS3RestoreSource ¶ added in v0.7.0
func NewS3RestoreSource(path, awsSecret string) *api.S3RestoreSource
NewS3RestoreSource returns an S3RestoreSource with the specified path and secret
func PrepareClientTLSSecret ¶ added in v0.3.1
func PreparePeerTLSSecret ¶
func PrepareTLS ¶ added in v0.7.1
func PrepareTLS(clusterName, namespace, memberPeerTLSSecret, memberClientTLSSecret, operatorClientTLSSecret string) error
PrepareTLS creates all the required tls certs for a given clusterName.
func PutDataToEtcd ¶ added in v0.3.0
func UpdateCluster ¶ added in v0.2.6
func UpdateCluster(crClient versioned.Interface, cl *api.EtcdCluster, maxRetries int, updateFunc k8sutil.EtcdClusterCRUpdateFunc) (*api.EtcdCluster, error)
func WaitPodsDeleted ¶ added in v0.3.0
func WaitPodsDeleted(kubecli kubernetes.Interface, namespace string, retries int, lo metav1.ListOptions) ([]*v1.Pod, error)
func WaitPodsDeletedCompletely ¶ added in v0.4.1
func WaitPodsDeletedCompletely(kubecli kubernetes.Interface, namespace string, retries int, lo metav1.ListOptions) ([]*v1.Pod, error)
func WaitPodsWithImageDeleted ¶ added in v0.3.0
func WaitPodsWithImageDeleted(kubecli kubernetes.Interface, namespace, image string, retries int, lo metav1.ListOptions) ([]*v1.Pod, error)
func WaitSizeAndVersionReached ¶ added in v0.2.6
func WaitSizeAndVersionReached(t *testing.T, kubeClient kubernetes.Interface, version string, size, retries int, cl *api.EtcdCluster) error
func WaitUntilMembersWithNamesDeleted ¶ added in v0.3.3
func WaitUntilOperatorReady ¶ added in v0.5.0
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 ¶ added in v0.3.3
func WaitUntilPodSizeReached(t *testing.T, kubeClient kubernetes.Interface, size, retries int, cl *api.EtcdCluster) ([]string, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.