missed two comments from the CR

pull/189/head
vaikas-google 9 years ago
parent 120ea92816
commit 08dfc919d6

@ -86,25 +86,24 @@ func NewKubernetesKubectl(config *KubernetesConfig) Kubernetes {
} }
func (k *KubernetesKubectl) Get(name string, resourceType string) (string, error) { func (k *KubernetesKubectl) Get(name string, resourceType string) (string, error) {
args := []string{"get"}
// Specify output as json rather than human readable for easier machine parsing // Specify output as json rather than human readable for easier machine parsing
args = append(args, "-o", "json") args := []string{"get",
args = append(args, resourceType) "-o",
args = append(args, name) "json",
resourceType,
name}
return k.execute(args, "") return k.execute(args, "")
} }
func (k *KubernetesKubectl) Create(resource string) (string, error) { func (k *KubernetesKubectl) Create(resource string) (string, error) {
args := []string{"create"} args := []string{"create"}
// args = append(args, resourceType)
// args = append(args, name)
return k.execute(args, resource) return k.execute(args, resource)
} }
func (k *KubernetesKubectl) Delete(name string, resourceType string) (string, error) { func (k *KubernetesKubectl) Delete(name string, resourceType string) (string, error) {
args := []string{"delete"} args := []string{"delete",
args = append(args, resourceType) resourceType,
args = append(args, name) name}
return k.execute(args, "") return k.execute(args, "")
} }

Loading…
Cancel
Save