- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetKubeConfigPath (0.14 sec)
-
cmd/kubeadm/app/cmd/util/cmdutil_test.go
file: "kubelet.kubeconfig", expected: "kubelet.kubeconfig", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { actualResult := GetKubeConfigPath(tt.file) if actualResult != tt.expected { t.Errorf( "failed GetKubeConfigPath:\n\texpected: %s\n\t actual: %s", tt.expected, actualResult, ) } }) } } func TestValueFromFlagsOrConfig(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 4K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/util/cmdutil.go
} return nil } // GetKubeConfigPath can be used to search for a kubeconfig in standard locations // if and empty string is passed to the function. If a non-empty string is passed // the function returns the same string. func GetKubeConfigPath(file string) string { // If a value is provided respect that. if file != "" { return file }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.3K bytes - Viewed (0)