-
Notifications
You must be signed in to change notification settings - Fork 212
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
feat(driver_test.go): add test around docker driver config #1012
feat(driver_test.go): add test around docker driver config #1012
Conversation
Signed-off-by: Vaughn Dice <[email protected]>
github.com/spf13/viper v1.3.2 | ||
github.com/stretchr/testify v1.4.0 | ||
github.com/spf13/viper v1.4.0 | ||
github.com/stretchr/testify v1.5.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cnab-go pulls in a higher version of testify and packr. The packr bump pulled in a new dependency (envy), etc... It was a cascade from bumping cnab-go and its dependencies.
I don't see what caused you to need the changes in the PR to cnab-go? Can you help explain what in Porter made you need the change? I'm sure there was something that made this originally hard to work with. |
I added some notes in cnabio/cnab-go#206 (comment) but found we'd hit panics when applying configuration options to an otherwise uninitialized Driver instance (meaning, not actually running |
Signed-off-by: Vaughn Dice <[email protected]>
4c37176
to
f03e974
Compare
|
||
containerHostCfg, err := dockerish.GetContainerHostConfig() | ||
require.NoError(t, err) | ||
require.Equal(t, true, containerHostCfg.Privileged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is perfect. Thanks for your work getting the plumbing into cnab-go to support it.
Can you add a converse test to verify that when we don't have privileged that it's not set on the driver? Just to check for us hard coding it accidentally like it was originally.
Signed-off-by: Vaughn Dice <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
What does this change
Depends on cnabio/cnab-go#206 or some variant thereof
TODO:
What issue does it fix
Addresses a
TODO
lingering in codeNotes for the reviewer
Am I go mod-ing right?! All of the updated deps are coming from my branch override, right? Or is something up with my local Go cache/env that's bringing all of these in?
Checklist