Documentation ¶
Index ¶
- func NewOperator(mgr ctrl.Manager, fs filesys.FileSystem, ...) (*operatorv1.CompositeOperator, error)
- type ConfigmapOperand
- func (c *ConfigmapOperand) Delete(ctx context.Context, obj client.Object) (eventv1.ReconcilerEvent, error)
- func (c *ConfigmapOperand) Ensure(ctx context.Context, obj client.Object, ownerRef metav1.OwnerReference) (eventv1.ReconcilerEvent, error)
- func (c *ConfigmapOperand) Name() string
- func (c *ConfigmapOperand) PostReady(ctx context.Context, obj client.Object) error
- func (c *ConfigmapOperand) ReadyCheck(ctx context.Context, obj client.Object) (bool, error)
- func (c *ConfigmapOperand) RequeueStrategy() operand.RequeueStrategy
- func (c *ConfigmapOperand) Requires() []string
- type GameController
- func (gc *GameController) Cleanup(context.Context, client.Object) (result ctrl.Result, err error)
- func (gc *GameController) Default(context.Context, client.Object)
- func (gc *GameController) Initialize(ctx context.Context, obj client.Object, condn metav1.Condition) error
- func (gc *GameController) Operate(ctx context.Context, obj client.Object) (result ctrl.Result, err error)
- func (gc *GameController) UpdateStatus(context.Context, client.Object) error
- func (gc *GameController) Validate(context.Context, client.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOperator ¶
func NewOperator(mgr ctrl.Manager, fs filesys.FileSystem, execStrategy executor.ExecutionStrategy) (*operatorv1.CompositeOperator, error)
NewOperator creates and returns a CompositeOperator with all the operands configured.
Types ¶
type ConfigmapOperand ¶
type ConfigmapOperand struct {
// contains filtered or unexported fields
}
ConfigmapOperand implements an operand for ConfigMap.
func NewConfigmapOperand ¶
func NewConfigmapOperand( name string, client client.Client, requires []string, requeueStrategy operand.RequeueStrategy, fs filesys.FileSystem, ) *ConfigmapOperand
func (*ConfigmapOperand) Delete ¶
func (c *ConfigmapOperand) Delete(ctx context.Context, obj client.Object) (eventv1.ReconcilerEvent, error)
func (*ConfigmapOperand) Ensure ¶
func (c *ConfigmapOperand) Ensure(ctx context.Context, obj client.Object, ownerRef metav1.OwnerReference) (eventv1.ReconcilerEvent, error)
func (*ConfigmapOperand) Name ¶
func (c *ConfigmapOperand) Name() string
func (*ConfigmapOperand) ReadyCheck ¶
func (*ConfigmapOperand) RequeueStrategy ¶
func (c *ConfigmapOperand) RequeueStrategy() operand.RequeueStrategy
func (*ConfigmapOperand) Requires ¶
func (c *ConfigmapOperand) Requires() []string
type GameController ¶
type GameController struct {
Operator operatorv1.Operator
}
GameController is a controller that implements the CompositeReconciler contoller interface. It watches the Game CRD.
func NewGameController ¶
func NewGameController(mgr ctrl.Manager, fs filesys.FileSystem, execStrategy executor.ExecutionStrategy) (*GameController, error)
NewGameController creates an Operator and a GameController that uses the created operator, and returns the GameController.
func (*GameController) Initialize ¶
func (*GameController) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.