Documentation
¶
Index ¶
- func NewDryRunClient(c client.Client, log logr.Logger) client.Client
- func RunDryRunMode(ctx context.Context, mgr ctrl.Manager, baseConfig *config.BaseOperatorConf) error
- func RunManager(ctx context.Context) error
- type DryRunClient
- func (d *DryRunClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (d *DryRunClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (d *DryRunClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (d *DryRunClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (d *DryRunClient) Status() client.SubResourceWriter
- func (d *DryRunClient) SubResource(subResource string) client.SubResourceClient
- func (d *DryRunClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDryRunClient ¶ added in v0.68.4
NewDryRunClient returns a DryRunClient.
func RunDryRunMode ¶ added in v0.68.4
func RunManager ¶
Types ¶
type DryRunClient ¶ added in v0.68.4
DryRunClient wraps client.Client and logs mutating operations instead of executing them.
func (*DryRunClient) Create ¶ added in v0.68.4
func (d *DryRunClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*DryRunClient) Delete ¶ added in v0.68.4
func (d *DryRunClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*DryRunClient) DeleteAllOf ¶ added in v0.68.4
func (d *DryRunClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (*DryRunClient) Patch ¶ added in v0.68.4
func (d *DryRunClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*DryRunClient) Status ¶ added in v0.68.4
func (d *DryRunClient) Status() client.SubResourceWriter
func (*DryRunClient) SubResource ¶ added in v0.68.4
func (d *DryRunClient) SubResource(subResource string) client.SubResourceClient
func (*DryRunClient) Update ¶ added in v0.68.4
func (d *DryRunClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.