Allow blank value for namespace

This commit add changes to allow blank value for namespace, which
removes namespace field from CRD definition file.

Also updated year for the copyright.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
Vivek Singh
2018-08-02 22:56:03 +05:30
committed by Alex Ellis
parent cad006c2dc
commit 3b5e7b7b80
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) OpenFaaS Author(s) 2017. All rights reserved.
// Copyright (c) OpenFaaS Author(s) 2018. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package commands

View File

@@ -1,4 +1,4 @@
// Copyright (c) OpenFaaS Author(s) 2017. All rights reserved.
// Copyright (c) OpenFaaS Author(s) 2018. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package schema
@@ -8,7 +8,7 @@ import "github.com/openfaas/faas-cli/stack"
//Metadata metadata of the object
type Metadata struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
Namespace string `yaml:"namespace,omitempty"`
}
//Spec describe characteristics of the object