Closed serbrech closed 5 years ago
The goal of this PR is to clean up the main.go code to extract the logic and make it testable.
KeyvaultFlexvolumeAdapter
main()
Run()
github.com/pkg/errors
errors.Wrapf()
errors
glog.Fatalf
Exit(1)
1
255
TODO :
More :
writeContent
The goal of this PR is to clean up the main.go code to extract the logic and make it testable.
KeyvaultFlexvolumeAdapter
structmain()
logic into aRun()
function applied to the structgithub.com/pkg/errors
errors.Wrapf()
errors
fromRun()
glog.Fatalf
instead ofExit(1)
1
to255
as perglog.Fatalf
definitionTODO :
KeyvaultFlexvolumeAdapter
in its own fileMore :
writeContent
to enable testing