forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separately release our CRDs. (knative#4552)
This change has two main parts: 1. Create separate release artifacts for our CRDs, 1. Create two versions of our CRD definitions, with and without v1beta1. The `v1alpha1` CRDs are generated during `./hack/update-codegen.sh` from the `v1beta1` CRDs, so we still have a single source of truth (e.g. for columns and whatnot). `ko apply -f config` is no longer sufficient to install Knative. You need to install either `ko apply -f config/v1alpha1` of `ko apply -f config/v1beta1`. I have added a flag to select the install for e2e, which defaults to beta to maintain our current test coverage. We should add a leg that just runs with alpha to ensure we don't regress alpha-only installs. Related to: knative#4533
- Loading branch information
1 parent
5f2f5f9
commit 058ca35
Showing
15 changed files
with
285 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 2019 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: configurations.serving.knative.dev | ||
labels: | ||
serving.knative.dev/release: devel | ||
knative.dev/crd-install: "true" | ||
spec: | ||
group: serving.knative.dev | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
names: | ||
kind: Configuration | ||
plural: configurations | ||
singular: configuration | ||
categories: | ||
- all | ||
- knative | ||
- serving | ||
shortNames: | ||
- config | ||
- cfg | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
additionalPrinterColumns: | ||
- name: LatestCreated | ||
type: string | ||
JSONPath: .status.latestCreatedRevisionName | ||
- name: LatestReady | ||
type: string | ||
JSONPath: .status.latestReadyRevisionName | ||
- name: Ready | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].status" | ||
- name: Reason | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].reason" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2019 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: revisions.serving.knative.dev | ||
labels: | ||
serving.knative.dev/release: devel | ||
knative.dev/crd-install: "true" | ||
spec: | ||
group: serving.knative.dev | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
names: | ||
kind: Revision | ||
plural: revisions | ||
singular: revision | ||
categories: | ||
- all | ||
- knative | ||
- serving | ||
shortNames: | ||
- rev | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
additionalPrinterColumns: | ||
- name: Service Name | ||
type: string | ||
JSONPath: .status.serviceName | ||
- name: Generation | ||
type: string # int in string form :( | ||
JSONPath: ".metadata.labels['serving\\.knative\\.dev/configurationGeneration']" | ||
- name: Ready | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].status" | ||
- name: Reason | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].reason" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2019 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: routes.serving.knative.dev | ||
labels: | ||
serving.knative.dev/release: devel | ||
knative.dev/crd-install: "true" | ||
spec: | ||
group: serving.knative.dev | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
names: | ||
kind: Route | ||
plural: routes | ||
singular: route | ||
categories: | ||
- all | ||
- knative | ||
- serving | ||
shortNames: | ||
- rt | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
additionalPrinterColumns: | ||
- name: URL | ||
type: string | ||
JSONPath: .status.url | ||
- name: Ready | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].status" | ||
- name: Reason | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].reason" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 2019 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: services.serving.knative.dev | ||
labels: | ||
serving.knative.dev/release: devel | ||
knative.dev/crd-install: "true" | ||
spec: | ||
group: serving.knative.dev | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
names: | ||
kind: Service | ||
plural: services | ||
singular: service | ||
categories: | ||
- all | ||
- knative | ||
- serving | ||
shortNames: | ||
- kservice | ||
- ksvc | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
additionalPrinterColumns: | ||
- name: URL | ||
type: string | ||
JSONPath: .status.url | ||
- name: LatestCreated | ||
type: string | ||
JSONPath: .status.latestCreatedRevisionName | ||
- name: LatestReady | ||
type: string | ||
JSONPath: .status.latestReadyRevisionName | ||
- name: Ready | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].status" | ||
- name: Reason | ||
type: string | ||
JSONPath: ".status.conditions[?(@.type=='Ready')].reason" |
2 changes: 1 addition & 1 deletion
2
config/300-configuration.yaml → config/v1beta1/300-configuration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.