Skip to content

oc tag should retry on conflict errors - #5626

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:retry_tag
Nov 3, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:retry_tag

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

Tagging is an overwrite. Also update output to be cleaner.

Fixes #5526

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

@0xmichalis

Copy link
Copy Markdown
Contributor

How about using PATCH?

@soltysh

soltysh commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

@smarterclayton I don't like that big chunk of code inside the kclient.RetryOnConflict I'd prefer to move that anonymous internal function into a separate one. This will greatly improve readability.

Comment thread pkg/cmd/cli/cmd/tag.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exercise the messages in test-cmd to make sure we're seeing what we expect

@deads2k

deads2k commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

Why aren't we resolving this one server-side like we did in ISM?

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Because this is a client side operation and we have no server side endpoint.

I don't want to make a larger refactor at this point - I want the bare
minimum to get this working.

On Tue, Nov 3, 2015 at 10:16 AM, David Eads [email protected]
wrote:

Why aren't we resolving this one server-side like we did in ISM?

—
Reply to this email directly or view it on GitHub
#5626 (comment).

@liggitt

liggitt commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

+1 to method, post-3.1

@deads2k

deads2k commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

this is a client side operation and we have no server side endpoint.

ick. #5637

Tagging is an overwrite.  Also update output to be cleaner.
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 867e6e4

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Test case added, please rereview. Still on the bubble.

@liggitt

liggitt commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

code LGTM

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6721/) (Image: devenv-rhel7_2637)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 867e6e4

openshift-bot pushed a commit that referenced this pull request Nov 3, 2015
@openshift-bot
openshift-bot merged commit 92fcbbd into openshift:master Nov 3, 2015
@smarterclayton smarterclayton added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants