clientcmdNewConfig is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api.NewConfig. NewConfig is a convenience function that returns a new Config object with non-nil maps
()
| 1077 | // clientcmdNewConfig is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api.NewConfig. |
| 1078 | // NewConfig is a convenience function that returns a new Config object with non-nil maps |
| 1079 | func clientcmdNewConfig() *clientcmdConfig { |
| 1080 | return &clientcmdConfig{ |
| 1081 | Clusters: make(map[string]*clientcmdCluster), |
| 1082 | AuthInfos: make(map[string]*clientcmdAuthInfo), |
| 1083 | Contexts: make(map[string]*clientcmdContext), |
| 1084 | } |
| 1085 | } |
| 1086 | |
| 1087 | // yamlBinaryAsBase64String is a []byte that can be stored in yaml as a !!str, not a !!binary |
| 1088 | type yamlBinaryAsBase64String []byte |