Documentation
¶
Index ¶
- Constants
- func GetOperatorState(ctx context.Context, clients *TestClients) (*operatorv1.JobSetOperator, v1.ManagementState, error)
- func GetPodCount(ctx context.Context, clients *TestClients, namespace, labelSelector string) int
- func ScaleDeployment(ctx context.Context, clients *TestClients, OperandName string, replicas int32)
- func SetManagementState(ctx context.Context, clients *TestClients, operator *operatorv1.JobSetOperator, ...)
- func VerifyPodCount(ctx context.Context, clients *TestClients, namespace, labelSelector string, ...)
- type TestClients
Constants ¶
View Source
const (
OperandName = "jobset-controller-manager"
)
Variables ¶
This section is empty.
Functions ¶
func GetOperatorState ¶
func GetOperatorState(ctx context.Context, clients *TestClients) (*operatorv1.JobSetOperator, v1.ManagementState, error)
func GetPodCount ¶
func GetPodCount(ctx context.Context, clients *TestClients, namespace, labelSelector string) int
func ScaleDeployment ¶
func ScaleDeployment(ctx context.Context, clients *TestClients, OperandName string, replicas int32)
func SetManagementState ¶
func SetManagementState(ctx context.Context, clients *TestClients, operator *operatorv1.JobSetOperator, state v1.ManagementState)
func VerifyPodCount ¶
func VerifyPodCount(ctx context.Context, clients *TestClients, namespace, labelSelector string, expected int)
Types ¶
type TestClients ¶
type TestClients struct {
KubeClient *kubernetes.Clientset
APIExtClient *apiextv1.ApiextensionsV1Client
DynamicClient dynamic.Interface
JobSetOperatorClient jobsetoperatorv1clientset.JobSetOperatorInterface
}
func NewTestClients ¶
func NewTestClients() *TestClients
Click to show internal directories.
Click to hide internal directories.