Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use patch instead of update for resources not owned by operator #162

Merged
merged 2 commits into from
Aug 22, 2019

Conversation

robskillington
Copy link
Collaborator

@robskillington robskillington commented Jul 16, 2019

This is to avoid the issue we were seeing with Pod updates being rejected when deep copying then calling Update.

I also updated all other places we were doing copies then calling update to use patches (with the exception of our own CRDs since I figure we own the lifecycle and are in control of that).

These implementations follow the implementation of generating patches that the postgres operator follows.

@codecov
Copy link

codecov bot commented Jul 16, 2019

Codecov Report

Merging #162 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #162   +/-   ##
=======================================
  Coverage   72.82%   72.82%           
=======================================
  Files          28       28           
  Lines        2186     2186           
=======================================
  Hits         1592     1592           
  Misses        451      451           
  Partials      143      143

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d574294...b1afffb. Read the comment docs.

Copy link
Collaborator

@schallert schallert left a comment

Choose a reason for hiding this comment

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

LGTM

@schallert schallert merged commit ded8858 into master Aug 22, 2019
@schallert schallert deleted the r/use-patch-instead-of-update branch August 22, 2019 21:22
@bai bai mentioned this pull request Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants