|
|
@ -100,11 +100,9 @@ func (k *KubernetesKubectl) Create(resource string) (string, error) {
|
|
|
|
return k.execute(args, resource)
|
|
|
|
return k.execute(args, resource)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (k *KubernetesKubectl) Delete(name string, resourceType string) (string, error) {
|
|
|
|
func (k *KubernetesKubectl) Delete(resource string) (string, error) {
|
|
|
|
args := []string{"delete",
|
|
|
|
args := []string{"delete"}
|
|
|
|
resourceType,
|
|
|
|
return k.execute(args, resource)
|
|
|
|
name}
|
|
|
|
|
|
|
|
return k.execute(args, "")
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (k *KubernetesKubectl) Replace(resource string) (string, error) {
|
|
|
|
func (k *KubernetesKubectl) Replace(resource string) (string, error) {
|
|
|
|