Documentation ¶
Overview ¶
Package resource implements e2e testing resource. Used for CSI EBS driver testing.
Index ¶
- Constants
- Variables
- type DaemonSetManager
- type DeploymentManager
- func (m *DeploymentManager) DeploymentLogger(dp *appsv1.Deployment) error
- func (m *DeploymentManager) ListDeploymentReplicaSets(dp *appsv1.Deployment) ([]*appsv1.ReplicaSet, error)
- func (m *DeploymentManager) ListReplicaSetPods(replicaSets []*appsv1.ReplicaSet) ([]*corev1.Pod, error)
- func (m *DeploymentManager) WaitDeploymentDeleted(ctx context.Context, dp *appsv1.Deployment) error
- func (m *DeploymentManager) WaitDeploymentReady(ctx context.Context, dp *appsv1.Deployment) (*appsv1.Deployment, error)
- type JobManager
- type Manager
- type NamespaceManager
- func (m *NamespaceManager) Cleanup(ctx context.Context) error
- func (m *NamespaceManager) CreateNamespace(ctx context.Context, name string) (*corev1.Namespace, error)
- func (m *NamespaceManager) CreateNamespaceUnique(ctx context.Context, baseName string) (*corev1.Namespace, error)
- func (m *NamespaceManager) DeleteNamespace(ctx context.Context, namespace string) error
- type NodeManager
- type ServiceManager
Constants ¶
View Source
const ( // TaintNodeNotReady will be added when node is not ready // and feature-gate for TaintBasedEvictions flag is enabled, // and removed when node becomes ready. TaintNodeNotReady = "node.kubernetes.io/not-ready" // TaintNodeUnreachable will be added when node becomes unreachable // (corresponding to NodeReady status ConditionUnknown) // and feature-gate for TaintBasedEvictions flag is enabled, // and removed when node becomes reachable (NodeReady status ConditionTrue). TaintNodeUnreachable = "node.kubernetes.io/unreachable" )
View Source
const (
DefaultNamespaceDeletionTimeout = 10 * time.Minute
)
Variables ¶
View Source
var ( // UnreachableTaintTemplate is the taint for when a node becomes unreachable. UnreachableTaintTemplate = &corev1.Taint{ Key: TaintNodeUnreachable, Effect: v1.TaintEffectNoExecute, } // NotReadyTaintTemplate is the taint for when a node is not ready for // executing pods NotReadyTaintTemplate = &corev1.Taint{ Key: TaintNodeNotReady, Effect: v1.TaintEffectNoExecute, } )
Functions ¶
This section is empty.
Types ¶
type DaemonSetManager ¶
type DaemonSetManager struct {
// contains filtered or unexported fields
}
func NewDaemonSetManager ¶
func NewDaemonSetManager(cs kubernetes.Interface) *DaemonSetManager
func (*DaemonSetManager) WaitDaemonSetReady ¶
type DeploymentManager ¶
type DeploymentManager struct {
// contains filtered or unexported fields
}
func NewDeploymentManager ¶
func NewDeploymentManager(cs kubernetes.Interface) *DeploymentManager
func (*DeploymentManager) DeploymentLogger ¶
func (m *DeploymentManager) DeploymentLogger(dp *appsv1.Deployment) error
DeploymentLogger logs replicas in the replicasets and pod statuses
func (*DeploymentManager) ListDeploymentReplicaSets ¶
func (m *DeploymentManager) ListDeploymentReplicaSets(dp *appsv1.Deployment) ([]*appsv1.ReplicaSet, error)
ListDeploymentReplicaSets lists the replica sets in a deployment
func (*DeploymentManager) ListReplicaSetPods ¶
func (m *DeploymentManager) ListReplicaSetPods(replicaSets []*appsv1.ReplicaSet) ([]*corev1.Pod, error)
ListReplicaSetPods lists the pods in the given replica sets
func (*DeploymentManager) WaitDeploymentDeleted ¶
func (m *DeploymentManager) WaitDeploymentDeleted(ctx context.Context, dp *appsv1.Deployment) error
WaitDeploymentDeleted waits for a deployment to be deleted
func (*DeploymentManager) WaitDeploymentReady ¶
func (m *DeploymentManager) WaitDeploymentReady(ctx context.Context, dp *appsv1.Deployment) (*appsv1.Deployment, error)
WaitDeploymentReady waits for a deployment to be ready
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
func NewJobManager ¶
func NewJobManager(cs kubernetes.Interface) *JobManager
func (*JobManager) WaitJobComplete ¶
type Manager ¶
type Manager struct { *NamespaceManager *DeploymentManager *ServiceManager *DaemonSetManager *NodeManager }
func NewManager ¶
func NewManager(cs kubernetes.Interface) *Manager
type NamespaceManager ¶
type NamespaceManager struct {
// contains filtered or unexported fields
}
func NewNamespaceManager ¶
func NewNamespaceManager(cs kubernetes.Interface) *NamespaceManager
func (*NamespaceManager) CreateNamespace ¶
func (*NamespaceManager) CreateNamespaceUnique ¶
func (*NamespaceManager) DeleteNamespace ¶
func (m *NamespaceManager) DeleteNamespace(ctx context.Context, namespace string) error
DeleteNamespace deletes the provided namespace, waits for it to be completely deleted.
type NodeManager ¶
type NodeManager struct {
// contains filtered or unexported fields
}
func NewNodeManager ¶
func NewNodeManager(cs kubernetes.Interface) *NodeManager
func (*NodeManager) WaitNodeExists ¶
func (*NodeManager) WaitNodeReady ¶
type ServiceManager ¶
type ServiceManager struct {
// contains filtered or unexported fields
}
func NewServiceManager ¶
func NewServiceManager(cs kubernetes.Interface) *ServiceManager
Click to show internal directories.
Click to hide internal directories.