-
Couldn't load subscription status.
- Fork 881
Makes the data directory configurable #1192
Conversation
595b3e4 to
eafaa85
Compare
rkt/config/directories.go
Outdated
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.
We should check if config.Directories.DataDir is empty before setting it to dirs.Data. If it is not, then an error should be returned. See auth.go:111. This is to avoid when somebody puts two config files of directories kind in system configuration directory and specifies data dir in both.
|
Reviewed, there are some issues to be fixed. Also, I see no unit tests. :P |
e61facc to
64791f0
Compare
rkt/run.go
Outdated
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.
I think tempDir is "" not defined if getDataDir() != "". Before, store.NewStore was never called with an empty string.
64791f0 to
0e0fce9
Compare
Documentation/configuration.md
Outdated
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.
Typo in providede.
|
I just started thinking if we should rename the kind from "directories" to "paths". Sounds more generic and might come in handy if we will want to configure a location of some specific file, instead of a directory. What do you think? |
ba236a8 to
368c1ea
Compare
|
@krnowak Sounds fair to me. Changed in the latest version. |
368c1ea to
bf5ee54
Compare
bf5ee54 to
8b7c8ff
Compare
|
@krnowak Can this be merged... the error in the Semaphor build is unrelated to my code? |
|
Can you do the change suggested in #1271 (comment) in this PR? Thanks! |
8b7c8ff to
0a78617
Compare
Documentation/configuration.md
Outdated
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.
It's paths.d, now.
|
I'm a bit worried about On the other hand, this option is probably not widely used anyway... |
|
We need to reach out to kubernetes and ask them if they are using this parameter. cc @yifan-gu |
Adds a new category of config called "directories" which is intended to allow the user to configure various paths. At the moment, it supports one - the data directory. By setting this, you can control where image files are stored without having to give a CLI argument.
0a78617 to
4105524
Compare
|
I am using it https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/rkt/rkt.go#L56 |
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.
data dir
|
Closing in favor of #1806. |
Adds a new category of config called "directories" which is intended to
allow the user to configure various paths. At the moment, it supports
one - the data directory. By setting this, you can control where image
files are stored without having to give a CLI argument.