mirror of https://github.com/knative/client.git
chore: Update CRDs API version to v1 (#1248)
* chore: Update CRDs API version to v1 * fix: Fix e2e test * chore: Add changelog entry
This commit is contained in:
parent
270e322401
commit
ffe385a34e
|
|
@ -12,6 +12,17 @@
|
||||||
| https://github.com/knative/client/pull/[#]
|
| https://github.com/knative/client/pull/[#]
|
||||||
////
|
////
|
||||||
|
|
||||||
|
## (Unreleased)
|
||||||
|
[cols="1,10,3", options="header", width="100%"]
|
||||||
|
|===
|
||||||
|
| | Description | PR
|
||||||
|
|
||||||
|
| ✨
|
||||||
|
| Update CRDs API version to `v1`
|
||||||
|
| https://github.com/knative/client/issues/1248[#1248]
|
||||||
|
|
||||||
|
|===
|
||||||
|
|
||||||
## v0.21.0 (2021-02-23)
|
## v0.21.0 (2021-02-23)
|
||||||
[cols="1,10,3", options="header", width="100%"]
|
[cols="1,10,3", options="header", width="100%"]
|
||||||
|===
|
|===
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
crdGroup = "apiextensions.k8s.io"
|
crdGroup = "apiextensions.k8s.io"
|
||||||
crdVersion = "v1beta1"
|
crdVersion = "v1"
|
||||||
crdKind = "CustomResourceDefinition"
|
crdKind = "CustomResourceDefinition"
|
||||||
crdKinds = "customresourcedefinitions"
|
crdKinds = "customresourcedefinitions"
|
||||||
sourcesLabelKey = "duck.knative.dev/source"
|
sourcesLabelKey = "duck.knative.dev/source"
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
crdGroup = "apiextensions.k8s.io"
|
crdGroup = "apiextensions.k8s.io"
|
||||||
crdVersion = "v1beta1"
|
crdVersion = "v1"
|
||||||
crdKind = "CustomResourceDefinition"
|
crdKind = "CustomResourceDefinition"
|
||||||
testNamespace = "current"
|
testNamespace = "current"
|
||||||
channelLabelValue = "true"
|
channelLabelValue = "true"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
crdGroup = "apiextensions.k8s.io"
|
crdGroup = "apiextensions.k8s.io"
|
||||||
crdVersion = "v1beta1"
|
crdVersion = "v1"
|
||||||
crdKind = "CustomResourceDefinition"
|
crdKind = "CustomResourceDefinition"
|
||||||
sourcesLabelKey = "duck.knative.dev/source"
|
sourcesLabelKey = "duck.knative.dev/source"
|
||||||
sourcesLabelValue = "true"
|
sourcesLabelValue = "true"
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ func TestSourceListTypes(t *testing.T) {
|
||||||
t.Log("List available source types in YAML format")
|
t.Log("List available source types in YAML format")
|
||||||
|
|
||||||
output = sourceListTypes(r, "-oyaml")
|
output = sourceListTypes(r, "-oyaml")
|
||||||
assert.Check(t, util.ContainsAll(output, "apiextensions.k8s.io/v1beta1", "CustomResourceDefinition", "Ping", "ApiServer"))
|
assert.Check(t, util.ContainsAll(output, "apiextensions.k8s.io/v1", "CustomResourceDefinition", "Ping", "ApiServer"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSourceList(t *testing.T) {
|
func TestSourceList(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue