Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Get a new version of the object when retrying on conflict#787

Merged
bryanl merged 1 commit intoksonnet:masterfrom
CATechnologiesTest:fetch-before-retry
Jul 25, 2018
Merged

Get a new version of the object when retrying on conflict#787
bryanl merged 1 commit intoksonnet:masterfrom
CATechnologiesTest:fetch-before-retry

Conversation

@csmarchbanks
Copy link
Contributor

It is necessary to update the resource version if retrying an update due to a conflict. Otherwise, the code retries with the same resource version and will get another 409 back from Kubernetes.

Fixes #650

Signed-off-by: Chris Marchbanks csmarchbanks@gmail.com

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1235

  • 8 of 10 (80.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 71.202%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/cluster/apply.go 8 10 80.0%
Totals Coverage Status
Change from base Build 1229: 0.005%
Covered Lines: 11947
Relevant Lines: 16779

💛 - Coveralls

@bryanl bryanl merged commit 4b260d7 into ksonnet:master Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants