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

Regroup all kubernetes extra-fields under x-kubernetes #1823

Merged
merged 1 commit into from Apr 14, 2019

Conversation

simonferquel
Copy link
Contributor

- What I did

This regroup all Kubernetes extra fields for compose-on-kubernetes v1alpha3 in a single x-kubernetes object.

Also use the same naming scheme as cap_add etc. for fields inside this object.

- How I did it

Just a little bit of refactoring

- How to verify it

This is covered by unit tests

This regroup all Kubernetes extra fields for compose-on-kubernetes
v1alpha3 in a single x-kubernetes object.
Also use the same naming scheme as cap_add etc. for fiels inside this
object.

Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
@codecov-io
Copy link

codecov-io commented Apr 12, 2019

Codecov Report

Merging #1823 into master will decrease coverage by <.01%.
The diff coverage is 90.9%.

@@            Coverage Diff             @@
##           master    #1823      +/-   ##
==========================================
- Coverage   56.38%   56.37%   -0.01%     
==========================================
  Files         308      308              
  Lines       21479    21468      -11     
==========================================
- Hits        12110    12103       -7     
+ Misses       8481     8479       -2     
+ Partials      888      886       -2

@thaJeztah
Copy link
Member

👍 definitely a lot cleaner, and likely better maintainable

@vdemeester @silvin-lubecki PTAL; I was discussing this with @simonferquel, and thought this would be a cleaner solution than adding yet-another-x-field for each thing kubernetes-specific (that isn't a "stable" API yet)

@thaJeztah
Copy link
Member

looks good to me, but waiting for others to have a look

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

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

5 participants