Documentation ¶
Index ¶
- Variables
- func CancelLoop(ctx context.Context)
- func ContextWithCancelFn(ctx context.Context, fn context.CancelFunc) context.Context
- func IsContainerStatusImagePullBackoff(ctx context.Context, clientset kubernetes.Interface, job *kbatch.Job, ...) error
- func IsJobPodRunning(ctx context.Context, clientset kubernetes.Interface, job *kbatch.Job, ...) error
- func LogError(msg string, err error, l logr.Logger) error
- func WaitUntilJobPodIsRunning(ctx context.Context, clientset kubernetes.Interface, job *kbatch.Job, ...) error
- type Actor
- type InvalidContainerVersionError
- type NotReadyErr
- type PermanentErr
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUGLEVEL = int(zapcore.DebugLevel)
Different logging levels
View Source
var Log = logf.Log.WithName("action")
Log var
View Source
var WARNLEVEL = int(zapcore.WarnLevel)
Functions ¶
func ContextWithCancelFn ¶
ContextWithCancelFn func
func IsJobPodRunning ¶
Types ¶
type Actor ¶
type Actor interface { Handles([]api.ClusterCondition) bool Act(context.Context, *resource.Cluster) error GetActionType() api.ActionType }
Actor is one action against the cluster if the cluster resource state can be handled
func NewOperatorActions ¶
NewOperatorActions creates a slice of actors that control the actions or actors for the operator. The order of the slice is critical so that the actors run in order, for instance update has to happen before deploy.
type InvalidContainerVersionError ¶
type InvalidContainerVersionError struct {
Err error
}
InvalidContainerVersionError error used to stop requeue the request on failure
func (InvalidContainerVersionError) Error ¶
func (e InvalidContainerVersionError) Error() string
type NotReadyErr ¶
type NotReadyErr struct {
Err error
}
NotReadyErr strut
func (NotReadyErr) Error ¶
func (e NotReadyErr) Error() string
type PermanentErr ¶
type PermanentErr struct {
Err error
}
PermanentErr struct
func (PermanentErr) Error ¶
func (e PermanentErr) Error() string
type ValidationError ¶
type ValidationError struct {
Err error
}
ValidationError error used to stop requeue the request on failure
func (ValidationError) Error ¶
func (e ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.