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

Persist configuration unconditionally with CreateOrUpdate() #55

Merged
merged 1 commit into from
May 5, 2020

Conversation

travisgroth
Copy link
Contributor

Remove logic to track our updates and, instead, rely on controller-runtime's
CreateOrUpdate() logic to handle diffing. The result is that we will
ensure the persisted config is up to date every settlePeriod seconds.

@travisgroth travisgroth force-pushed the smarter_config_save branch from f4879a9 to 2edd6e0 Compare May 5, 2020 02:06
@travisgroth travisgroth marked this pull request as ready for review May 5, 2020 02:07
@travisgroth travisgroth requested review from a team, calebdoxsey and desimone and removed request for a team May 5, 2020 02:07
Remove logic to track our updates and, instead, rely on controller-runtime's
CreateOrUpdate() logic to handle diffing.  The result is that we will
ensure the persisted config is up to date every settlePeriod seconds.

Signed-off-by: Travis Groth <[email protected]>
@travisgroth travisgroth force-pushed the smarter_config_save branch from 2edd6e0 to a47e1fb Compare May 5, 2020 02:41
@codecov
Copy link

codecov bot commented May 5, 2020

Codecov Report

Merging #55 into master will increase coverage by 0.17%.
The diff coverage is 73.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage   75.16%   75.33%   +0.17%     
==========================================
  Files           7        7              
  Lines         447      442       -5     
==========================================
- Hits          336      333       -3     
+ Misses         80       78       -2     
  Partials       31       31              
Impacted Files Coverage Δ
internal/configmanager/configmanager.go 86.81% <73.33%> (+1.39%) ⬆️

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 30c29f5...a47e1fb. Read the comment docs.

Copy link
Collaborator

@desimone desimone left a comment

Choose a reason for hiding this comment

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

LGTM but I don't have enough competency here to do a proper review.

Copy link

@calebdoxsey calebdoxsey left a comment

Choose a reason for hiding this comment

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

lgtm

@travisgroth travisgroth merged commit ce64e7a into pomerium:master May 5, 2020
@travisgroth travisgroth deleted the smarter_config_save branch May 5, 2020 19:53
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