a877aed45f
Change-Id: I16cd7730c1e0732253ac52f51010f6b813295aa7
20 lines
486 B
Go
20 lines
486 B
Go
package debug
|
|
|
|
// Author: Weisen Pan
|
|
// Date: 2023-10-24
|
|
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
)
|
|
|
|
// Options represents the combined set of options for all operating modes.
|
|
type Options struct {
|
|
Kubeconfig string // Path to the kubeconfig file for analysis.
|
|
}
|
|
|
|
// AddFlags adds the flag to the pflag.FlagSet.
|
|
func (options *Options) AddFlags(fs *pflag.FlagSet) {
|
|
fs.StringVar(&options.Kubeconfig, "kubeconfig", options.Kubeconfig, "Path to the kubeconfig file to use for analysis.")
|
|
}
|