Documentation ¶
Index ¶
- func HashObject(obj runtime.Object) string
- type Controller
- func (c Controller) ForObject(object client.Object) *Controller
- func (c Controller) GetStatus() (*types.FormationStatus, error)
- func (c Controller) Reconcile(ctx context.Context, list []types.Resource) (result ctrl.Result, err error)
- func (c Controller) ReconcileObject(ctx context.Context, resource types.Resource, owner v1.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashObject ¶
HashObject returns the hash of a Object hash by a Codec
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(scheme *runtime.Scheme, cli client.Client) *Controller
func (Controller) ForObject ¶
func (c Controller) ForObject(object client.Object) *Controller
func (Controller) GetStatus ¶
func (c Controller) GetStatus() (*types.FormationStatus, error)
status.formation
func (Controller) ReconcileObject ¶
func (c Controller) ReconcileObject(ctx context.Context, resource types.Resource, owner v1.Object) error
ReconcileObject In some cases, we want to reconcile a single object without the need to reconcile the whole formation. This will bypass the status check and will only check if the object exists and if not, create it. All the other logic will be the same as the Reconcile method.
Click to show internal directories.
Click to hide internal directories.