fix feedback
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
c113a3eadc
commit
8747adf629
@ -74,7 +74,7 @@ func NewACMESolverCommand(stopCh <-chan struct{}) *cobra.Command {
|
||||
cmd.Flags().StringVar(&s.Token, "token", "", "the challenge token to verify against")
|
||||
cmd.Flags().StringVar(&s.Key, "key", "", "the challenge key to respond with")
|
||||
|
||||
// TODO(@inteon): use flags to configure the log configuration
|
||||
// TODO(@inteon): use flags to configure the log configuration (https://github.com/cert-manager/cert-manager/issues/6021)
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
@ -134,14 +134,13 @@ func (o *InjectorControllerOptions) AddFlags(fs *pflag.FlagSet) {
|
||||
|
||||
logf.AddFlags(o.Logging, fs)
|
||||
|
||||
{
|
||||
var controllerRuntimeFlags flag.FlagSet
|
||||
config.RegisterFlags(&controllerRuntimeFlags)
|
||||
|
||||
controllerRuntimeFlags.VisitAll(func(f *flag.Flag) {
|
||||
fs.AddGoFlag(f)
|
||||
})
|
||||
}
|
||||
// The controller-runtime flag (--kubeconfig) that we need
|
||||
// relies on the "flag" package but we use "spf13/pflag".
|
||||
var controllerRuntimeFlags flag.FlagSet
|
||||
config.RegisterFlags(&controllerRuntimeFlags)
|
||||
controllerRuntimeFlags.VisitAll(func(f *flag.Flag) {
|
||||
fs.AddGoFlag(f)
|
||||
})
|
||||
}
|
||||
|
||||
// NewInjectorControllerOptions returns a new InjectorControllerOptions
|
||||
|
||||
@ -69,7 +69,6 @@ func InitLogs() {
|
||||
}
|
||||
|
||||
func AddFlags(opts *logs.Options, fs *pflag.FlagSet) {
|
||||
// init deprecated flags
|
||||
{
|
||||
var allFlags flag.FlagSet
|
||||
klog.InitFlags(&allFlags)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user