Skip to content

Clarify support for dry-run in fake client write calls (SSA/Patch/Update/...) #3365

@sbueringer

Description

@sbueringer

I think we should either implement dry-run or return errors instead of just nil if someone tryes to use dry-run with the fake client.

xref:

Returning nil seems very misleading as that is very different than a real dry-run.

Independent of that the Apply func does not detect dry-run correctly today as fakeClient.patch only checks for patchOptions.DryRun, not for patchOptions.Raw.DryRun

I'm not entirely sure what the issue here is:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions