Update alpha namespaces to v1
This should have been done before, but was missed. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
03738d2180
commit
6914d950c9
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/openfaas/faas-cli/builder"
|
||||
"github.com/openfaas/faas-cli/proxy"
|
||||
"github.com/openfaas/faas-cli/schema"
|
||||
knativev1 "github.com/openfaas/faas-cli/schema/knative/v1alpha1"
|
||||
knativev1 "github.com/openfaas/faas-cli/schema/knative/v1"
|
||||
openfaasv1 "github.com/openfaas/faas-cli/schema/openfaas/v1"
|
||||
"github.com/openfaas/faas-cli/stack"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
v2 "github.com/openfaas/faas-cli/schema/store/v2"
|
||||
"testing"
|
||||
|
||||
v2 "github.com/openfaas/faas-cli/schema/store/v2"
|
||||
|
||||
"github.com/openfaas/faas-cli/schema"
|
||||
|
||||
"github.com/openfaas/faas-cli/stack"
|
||||
@@ -34,7 +35,7 @@ functions:
|
||||
handler: ./sample/url-ping
|
||||
image: alexellis/faas-url-ping:0.2`,
|
||||
Output: []string{`---
|
||||
apiVersion: openfaas.com/v1alpha2
|
||||
apiVersion: openfaas.com/v1
|
||||
kind: Function
|
||||
metadata:
|
||||
name: url-ping
|
||||
@@ -44,7 +45,7 @@ spec:
|
||||
image: alexellis/faas-url-ping:0.2
|
||||
`},
|
||||
Format: schema.DefaultFormat,
|
||||
APIVersion: "openfaas.com/v1alpha2",
|
||||
APIVersion: "openfaas.com/v1",
|
||||
Namespace: "openfaas-fn",
|
||||
Branch: "",
|
||||
Version: "",
|
||||
@@ -63,7 +64,7 @@ functions:
|
||||
handler: ./sample/url-ping
|
||||
image: alexellis/faas-url-ping:0.2`,
|
||||
Output: []string{`---
|
||||
apiVersion: openfaas.com/v1alpha2
|
||||
apiVersion: openfaas.com/v1
|
||||
kind: Function
|
||||
metadata:
|
||||
name: url-ping
|
||||
@@ -72,7 +73,7 @@ spec:
|
||||
image: alexellis/faas-url-ping:0.2
|
||||
`},
|
||||
Format: schema.DefaultFormat,
|
||||
APIVersion: "openfaas.com/v1alpha2",
|
||||
APIVersion: "openfaas.com/v1",
|
||||
Namespace: "",
|
||||
Branch: "",
|
||||
Version: "",
|
||||
@@ -90,7 +91,7 @@ functions:
|
||||
handler: ./sample/url-ping
|
||||
image: alexellis/faas-url-ping:0.2`,
|
||||
Output: []string{`---
|
||||
apiVersion: openfaas.com/v1alpha2
|
||||
apiVersion: openfaas.com/v1
|
||||
kind: Function
|
||||
metadata:
|
||||
name: url-ping
|
||||
@@ -100,7 +101,7 @@ spec:
|
||||
image: alexellis/faas-url-ping:0.2-master-6bgf36qd
|
||||
`},
|
||||
Format: schema.BranchAndSHAFormat,
|
||||
APIVersion: "openfaas.com/v1alpha2",
|
||||
APIVersion: "openfaas.com/v1",
|
||||
Namespace: "openfaas-function",
|
||||
Branch: "master",
|
||||
Version: "6bgf36qd",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) OpenFaaS Author(s) 2019. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
package v1alpha1
|
||||
package v1
|
||||
|
||||
import "github.com/openfaas/faas-cli/schema"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 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 v1alpha2
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/openfaas/faas-cli/schema"
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
//APIVersionLatest latest API version of CRD
|
||||
const APIVersionLatest = "openfaas.com/v1alpha2"
|
||||
const APIVersionLatest = "openfaas.com/v1"
|
||||
|
||||
//Spec describe characteristics of the object
|
||||
type Spec struct {
|
||||
|
||||
Reference in New Issue
Block a user