-
Notifications
You must be signed in to change notification settings - Fork 94
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
fix: add persistent flags to root finch command #1157
base: main
Are you sure you want to change the base?
Conversation
@@ -79,6 +79,9 @@ var newApp = func( | |||
// TODO: Decide when to forward --debug to the dependencies | |||
// (e.g. nerdctl for container commands and limactl for VM commands). | |||
rootCmd.PersistentFlags().Bool("debug", false, "running under debug mode") | |||
rootCmd.PersistentFlags().String("namespace", "", `containerd namespace, such as "moby" for Docker, "k8s.io" for Kubernetes`) | |||
rootCmd.PersistentFlags().String("cgroup-manager", "", `Cgroup manager to use ("cgroupfs"|"systemd")`) |
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.
Do we actually support cgroupfs cgroup manager?
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.
Do we actually support cgroupfs cgroup manager?
I was under the assumption that nerdctl handles this under the hood, I was just referencing this
Apologies for the delayed response, I thought I replied here.
Signed-off-by: Arjun Raja Yogidas <[email protected]>
85a66c0
to
f7335dc
Compare
Issue #, if available:
#516
Adds the global flags as persistent string flag to the root finch command. This enables the cli to display the flags when running the --help command on finch.
Description of changes:
Testing done:
Verified that the command works and display the global flags.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.