summaryrefslogtreecommitdiff
path: root/pkg/util
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-15 01:48:52 +0200
committerGitHub <noreply@github.com>2020-04-15 01:48:52 +0200
commitf0b6cdede554316643187d40c67684daf5a2a2bb (patch)
treec2b3a369924f29ddf1762d32941dd10b38da2b9d /pkg/util
parent0d01f09bf4103538a6011019b690e5aa11c377db (diff)
parentd51727642603ba160a7898ee4597d0f071cdea44 (diff)
downloadpodman-f0b6cdede554316643187d40c67684daf5a2a2bb.tar.gz
podman-f0b6cdede554316643187d40c67684daf5a2a2bb.tar.bz2
podman-f0b6cdede554316643187d40c67684daf5a2a2bb.zip
Merge pull request #5812 from jwhonce/wip/options
Add support for the global flags and config files
Diffstat (limited to 'pkg/util')
-rw-r--r--pkg/util/utils.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/util/utils.go b/pkg/util/utils.go
index 372c7c53b..1051ed311 100644
--- a/pkg/util/utils.go
+++ b/pkg/util/utils.go
@@ -516,6 +516,8 @@ func ParseInputTime(inputTime string) (time.Time, error) {
}
// GetGlobalOpts checks all global flags and generates the command string
+// FIXME: Port input to config.Config
+// TODO: Is there a "better" way to reverse values to flags? This seems brittle.
func GetGlobalOpts(c *cliconfig.RunlabelValues) string {
globalFlags := map[string]bool{
"cgroup-manager": true, "cni-config-dir": true, "conmon": true, "default-mounts-file": true,