GetConfigFromFileOrDie tries to read a kubeconfig file and if it can't, it calls exit. One exception, missing files result in empty configs, not an exit
(filename string)
| 481 | |
| 482 | // GetConfigFromFileOrDie tries to read a kubeconfig file and if it can't, it calls exit. One exception, missing files result in empty configs, not an exit |
| 483 | func GetConfigFromFileOrDie(filename string) *clientcmdapi.Config { |
| 484 | config, err := getConfigFromFile(filename) |
| 485 | if err != nil { |
| 486 | klog.FatalDepth(1, err) |
| 487 | } |
| 488 | |
| 489 | return config |
| 490 | } |
nothing calls this directly
no test coverage detected