Remove namespace from args (#386)

This commit is contained in:
makocchi 2019-08-23 10:00:12 +09:00 committed by Knative Prow Robot
parent 9625b5f4c5
commit 04a55b27f2
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ func NewServiceCreateCommand(p *commands.KnParams) *cobra.Command {
return err
}
serviceExists, err := serviceExists(client, name, namespace)
serviceExists, err := serviceExists(client, name)
if err != nil {
return err
}
@ -184,7 +184,7 @@ func replaceService(client v1alpha1.KnClient, service *serving_v1alpha1_api.Serv
}
}
func serviceExists(client v1alpha1.KnClient, name string, namespace string) (bool, error) {
func serviceExists(client v1alpha1.KnClient, name string) (bool, error) {
_, err := client.GetService(name)
if api_errors.IsNotFound(err) {
return false, nil