Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAreStagesCreated(ctx context.Context, client dynamic.Interface) (found bool, missing []string, err error)
- func CheckIsKWOKInstalled(ctx context.Context) (output []byte, installed bool)
- func CheckIsKubectlInstalled(ctx context.Context) (output []byte, installed bool)
- func CheckIsOperatorRunning(ctx context.Context, client kubernetes.Interface, namespace string) (output []byte, running bool, err error)
- func CreateRBAC(ctx context.Context, clientset kubernetes.Interface, namespace string) error
- func CreateStages(ctx context.Context) (output []byte, err error)
- func DefaultArgs() []string
- func DeleteRBAC(ctx context.Context, clientset kubernetes.Interface, namespace string) error
- func DeleteStages(ctx context.Context) (output []byte, err error)
- func InstallOperator(ctx context.Context, namespace string) (output []byte, err error)
- func NewSimulatorJob(args []string) *batchv1.Job
- func UninstallOperator(ctx context.Context, namespace string) (output []byte, err error)
- type Client
- type Option
Constants ¶
View Source
const (
// LabelSelector which identifies resources managed by kwok.
LabelSelector = "type=kwok"
)
View Source
const (
LabelSelectorSimulator = "app=simulator"
)
Variables ¶
View Source
var (
ErrOperatorNotInstalled = errors.New("kwok-operator is not installed")
)
Functions ¶
func CheckAreStagesCreated ¶
func CheckIsKWOKInstalled ¶
CheckIsKWOKInstalled checks if the kwok binary is installed in the system.
func CheckIsKubectlInstalled ¶
CheckIsKubectlInstalled checks if the kubectl binary is installed in the system.
func CheckIsOperatorRunning ¶
func CheckIsOperatorRunning(ctx context.Context, client kubernetes.Interface, namespace string) (output []byte, running bool, err error)
CheckIsOperatorRunning checks if kwok-operator is installed & running with at least 1 replica in the cluster.
func CreateRBAC ¶
func CreateStages ¶
CreateStages creates the kwok stages in the cluster required for node and pod lifecycle.
func DefaultArgs ¶
func DefaultArgs() []string
func DeleteRBAC ¶
func DeleteStages ¶
DeleteStages deletes the kwok stages from the cluster.
func InstallOperator ¶
InstallOperator installs kwok-operator in the cluster.
func NewSimulatorJob ¶ added in v0.0.4
Types ¶
Click to show internal directories.
Click to hide internal directories.