INNER CODE UNIT · Go

main

kserve/kserve · cmd/localmodel/main.go:92

func main() {
	options := GetOptions()
	if options.logFormat == oteljson.FormatOTelJSON {
		oteljson.Apply(&options.zapOpts, "kserve-localmodel-controller", os.Stdout)
	}
	ctrl.SetLogger(zap.New(zap.UseFlagOptions(&options.zapOpts)))

	// Get a config to talk to the apiserver
	setupLog.Info("Setting up client for manager")
	cfg, err := config.GetConfig()
	if err != nil {
		setupLog.Error(err, "unable to set up client config")
		os.Exit(1)
	}

	// Setup clientset to directly talk to the api server
	clientSet, err := kubernetes.NewForConfig(cfg)
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…