Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Support "Configuration" in "newstore" feature #2179

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

WeiZhang555
Copy link
Member

Store the configuration file in persist.go.

This is the last file we should support for "newstore" feature, after this, we can safely remove old persistence storage drivers.

@WeiZhang555
Copy link
Member Author

/test

@WeiZhang555 WeiZhang555 force-pushed the persist-storage branch 2 times, most recently from 4d4fc2b to 2376d6d Compare November 11, 2019 06:47
@WeiZhang555
Copy link
Member Author

/test

@codecov
Copy link

codecov bot commented Nov 11, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@c0d2867). Click here to learn what that means.
The diff coverage is 37.29%.

@@            Coverage Diff            @@
##             master    #2179   +/-   ##
=========================================
  Coverage          ?   49.05%           
=========================================
  Files             ?      111           
  Lines             ?    16057           
  Branches          ?        0           
=========================================
  Hits              ?     7876           
  Misses            ?     7207           
  Partials          ?      974

@WeiZhang555
Copy link
Member Author

/test

@WeiZhang555
Copy link
Member Author

/retest

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @WeiZhang555.

lgtm although do you think you could add any more unit tests for this?

cli/main.go Show resolved Hide resolved
virtcontainers/persist.go Show resolved Hide resolved
virtcontainers/persist.go Outdated Show resolved Hide resolved
@WeiZhang555
Copy link
Member Author

@jodh-intel Thanks for help reviewing! There're some breaking cases, I will fix them in my free time.

I will also add some unit tests later.

@WeiZhang555
Copy link
Member Author

/test

@WeiZhang555
Copy link
Member Author

/retest

@WeiZhang555
Copy link
Member Author

/test

@WeiZhang555
Copy link
Member Author

/retest

@WeiZhang555
Copy link
Member Author

image

After a hard debugging, all CI passed now (enabled experimental features for all Jenkins jobs).

I'll squash the commits and remove the WIP labels, then waiting for merging now. :-)

@WeiZhang555 WeiZhang555 changed the title [WIP] Support "Configuration" in "newstore" feature Support "Configuration" in "newstore" feature Nov 19, 2019
Fixes kata-containers#803

Store the configuration data in persist.json.

Signed-off-by: Wei Zhang <weizhang555.zw@gmail.com>
@WeiZhang555
Copy link
Member Author

/test

@lifupan lifupan merged commit 48c8d66 into kata-containers:master Nov 20, 2019
@WeiZhang555 WeiZhang555 deleted the persist-storage branch November 20, 2019 02:45
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