Skip to content

A couple of oc commands should switch to PATCH #5287

Closed

Description

@0xmichalis

oc env, oc edit (already switched upstream), and maybe oc tag are coming to my mind.

See:
kubernetes/kubernetes#15333
kubernetes/kubernetes#15651
kubernetes/kubernetes#15597

Activity

  1. deads2k commented on Oct 22, 2015

    @deads2k
    Contributor

    One thing to consider when deciding whether to switch to patch over replace: "is my change predicated on anything in the current state of the resource?". Non-conflicting patches are applied unconditionally against resourceVersion of the object. If your changes is predicated on anything in the current state, either continue to use update or fix patch to handle preconditions.

  2. liggitt commented on Oct 22, 2015

    @liggitt
    Contributor

    env I could see... for edit, I would want to know if I was stomping, I think

  3. deads2k commented on Oct 22, 2015

    @deads2k
    Contributor

    env I could see... for edit, I would want to know if I was stomping, I think

    Not if you're using edit. It auto-generates the patch for you on conflicts, applies, and resends the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions