Documentation ¶
Index ¶
- type Helper
- func (h *Helper) CertificateKeyInPodPath(namespace, podName, containerName, mountPath string, attr map[string]string) ([]byte, []byte, error)
- func (h *Helper) CertificateKeyMatch(cr *cmapi.CertificateRequest, certData, keyData []byte) error
- func (h *Helper) FindCertificateRequestsReady(crs []cmapi.CertificateRequest, pod *corev1.Pod) ([]*cmapi.CertificateRequest, error)
- func (h *Helper) Kubectl(ns string) *Kubectl
- func (h *Helper) ReadFilePathFromContainer(namespace, podName, containerName, path string) ([]byte, error)
- func (h *Helper) WaitForCertificateRequestDeletion(namespace, name string, timeout time.Duration) error
- func (h *Helper) WaitForCertificateRequestsReady(pod *corev1.Pod, timeout time.Duration) ([]*cmapi.CertificateRequest, error)
- func (h *Helper) WaitForPodDeletion(namespace, name string, timeout time.Duration) error
- func (h *Helper) WaitForPodReady(namespace, name string, timeout time.Duration) error
- type Kubectl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct { RestConfig *rest.Config KubeClient kubernetes.Interface CMClient cmclient.Interface // contains filtered or unexported fields }
Helper provides methods for common operations needed during tests.
func (*Helper) CertificateKeyInPodPath ¶
func (*Helper) CertificateKeyMatch ¶
func (h *Helper) CertificateKeyMatch(cr *cmapi.CertificateRequest, certData, keyData []byte) error
func (*Helper) FindCertificateRequestsReady ¶
func (h *Helper) FindCertificateRequestsReady(crs []cmapi.CertificateRequest, pod *corev1.Pod) ([]*cmapi.CertificateRequest, error)
func (*Helper) ReadFilePathFromContainer ¶ added in v0.4.0
func (*Helper) WaitForCertificateRequestDeletion ¶
func (*Helper) WaitForCertificateRequestsReady ¶
func (h *Helper) WaitForCertificateRequestsReady(pod *corev1.Pod, timeout time.Duration) ([]*cmapi.CertificateRequest, error)
WaitForCertificateRequestReady waits for the CertificateRequest resources to enter a Ready state.
func (*Helper) WaitForPodDeletion ¶
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
func (*Kubectl) DescribeResource ¶
Click to show internal directories.
Click to hide internal directories.