Skip to content

Setting Force in direct applier results in --force-conflicts #279

Closed as not planned
@stephanhorsthemke

Description

@stephanhorsthemke

What happened:
I got confused using ApplierOptions.Force which did not result in running kubectl with --force

What you expected to happen:
I expected that ApplierOptions.Force results in running kubectl with --force but actually it results in --force-conflicts.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
It happens during the population of ApplyOptions here.

Another thing to note is that --prune does not work with --force (but with --force-conflicts). Hence, if changing the behaviour I believe we should consider setting force to false by default? It also does not feel right to use force by default but I think that happens atm (it is just lucky the it gets mapped incorrectly)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions