Support kubectl group/resource name

This commit is contained in:
Janet Kuo
2015-09-23 18:17:09 -07:00
parent 7ba48583fa
commit 57388f9f94
8 changed files with 221 additions and 14 deletions

View File

@@ -288,6 +288,7 @@ func NewInCluster() (*Client, error) {
// SetKubernetesDefaults sets default values on the provided client config for accessing the
// Kubernetes API or returns an error if any of the defaults are impossible or invalid.
// TODO: this method needs to be split into one that sets defaults per group, expected to be fix in PR "Refactoring clientcache.go and helper.go #14592"
func SetKubernetesDefaults(config *Config) error {
if config.Prefix == "" {
config.Prefix = "/api"