Documentation ¶
Index ¶
- func HashObject(obj runtime.Object) string
- func WithKubernetesVolumeMountV1OverWrite() kubernetesVolumeMountV1OverWriteTransformer
- func WithKubernetesVolumeV1OverWrite() kubernetesVolumeV1OverWriteTransformer
- func WithOverwriteZeroValue() overwriteZeroValueTransformer
- type Controller
- func (c *Controller) AddTransformer(transformer ...mergo.Transformers)
- 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) (bool, error)
- type Transformers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashObject ¶
HashObject returns the hash of a Object hash by a Codec
func WithKubernetesVolumeMountV1OverWrite ¶
func WithKubernetesVolumeMountV1OverWrite() kubernetesVolumeMountV1OverWriteTransformer
func WithKubernetesVolumeV1OverWrite ¶
func WithKubernetesVolumeV1OverWrite() kubernetesVolumeV1OverWriteTransformer
func WithOverwriteZeroValue ¶
func WithOverwriteZeroValue() overwriteZeroValueTransformer
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(scheme *runtime.Scheme, cli client.Client) *Controller
func (*Controller) AddTransformer ¶
func (c *Controller) AddTransformer(transformer ...mergo.Transformers)
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) (bool, 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.
type Transformers ¶
type Transformers struct {
// contains filtered or unexported fields
}
func NewTransformersWithDefault ¶
func NewTransformersWithDefault() *Transformers
func (*Transformers) Add ¶
func (t *Transformers) Add(transformers ...mergo.Transformers)
func (*Transformers) Transformer ¶
Click to show internal directories.
Click to hide internal directories.