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

Introduce Config interfaces #4598

Merged
merged 1 commit into from Aug 31, 2020

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jul 30, 2020

This is an additional non-dangerous step towards getting rid of RunContext as much as possible.

It introduces a Config interface for each constructor that used to depend on a RunContext. This acts as a "facade" on the RunContext and can only access information by their getter, making them more read-only. This break some hard coupling that we have which is also nice.

Signed-off-by: David Gageot david@gageot.net

@codecov
Copy link

codecov bot commented Jul 30, 2020

Codecov Report

Merging #4598 into master will increase coverage by 0.00%.
The diff coverage is 87.93%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4598   +/-   ##
=======================================
  Coverage   73.40%   73.41%           
=======================================
  Files         345      345           
  Lines       13739    13739           
=======================================
+ Hits        10085    10086    +1     
+ Misses       3021     3020    -1     
  Partials      633      633           
Impacted Files Coverage Δ
pkg/skaffold/build/jib/types.go 100.00% <ø> (ø)
...kg/skaffold/generate_pipeline/generate_pipeline.go 40.25% <0.00%> (ø)
pkg/skaffold/generate_pipeline/profile.go 32.87% <0.00%> (ø)
pkg/skaffold/runner/generate_pipeline.go 0.00% <0.00%> (ø)
pkg/skaffold/deploy/status_check.go 52.25% <22.22%> (ø)
pkg/skaffold/build/cache/cache.go 56.81% <100.00%> (ø)
pkg/skaffold/build/cluster/types.go 100.00% <100.00%> (ø)
pkg/skaffold/build/gcb/types.go 42.85% <100.00%> (ø)
pkg/skaffold/build/local/types.go 86.66% <100.00%> (ø)
pkg/skaffold/deploy/helm.go 79.03% <100.00%> (ø)
... and 13 more

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 13efa7e...d914c30. Read the comment docs.

Copy link
Collaborator

@gsquared94 gsquared94 left a comment

Choose a reason for hiding this comment

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

Looks great to me!

@dgageot
Copy link
Contributor Author

dgageot commented Aug 31, 2020

Let me remove those wip commits

@gsquared94
Copy link
Collaborator

Let me remove those wip commits

BTW we only squash merge now to not have to take care of these commit cleanups anymore.

Signed-off-by: David Gageot <david@gageot.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants