use-case-and-architecture/ai_computing_force_scheduling/knets_cmd/debug/options.go
Weisen Pan a877aed45f AI-based CFN Traffic Control and Computer Force Scheduling
Change-Id: I16cd7730c1e0732253ac52f51010f6b813295aa7
2023-11-03 00:09:19 -07:00

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.")
}