Use camelCase.
This commit is contained in:
parent
38bc9da25a
commit
e5e0e3a148
|
|
@ -31,10 +31,10 @@ type Options struct {
|
||||||
KubeConfig string
|
KubeConfig string
|
||||||
}
|
}
|
||||||
|
|
||||||
func KubernetesConfig(options Options) (config *rest.Config, is_in_cluster bool) {
|
func KubernetesConfig(options Options) (config *rest.Config, isInCluster bool) {
|
||||||
var err error
|
var err error
|
||||||
is_in_cluster = (options.KubeConfig == "")
|
isInCluster = (options.KubeConfig == "")
|
||||||
if !is_in_cluster {
|
if !isInCluster {
|
||||||
/* out-of-cluster process */
|
/* out-of-cluster process */
|
||||||
rules := clientcmd.NewDefaultClientConfigLoadingRules()
|
rules := clientcmd.NewDefaultClientConfigLoadingRules()
|
||||||
overrides := &clientcmd.ConfigOverrides{}
|
overrides := &clientcmd.ConfigOverrides{}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue