From 90a203b7d18fd9af76349fbfc27b6c6f3fb137ce Mon Sep 17 00:00:00 2001 From: Pierangelo Di Pilato Date: Tue, 15 Dec 2020 15:13:40 +0100 Subject: [PATCH] ContainerSource stored version v1 and migration tool Signed-off-by: Pierangelo Di Pilato --- config/core/resources/containersource.yaml | 4 ++-- config/post-install/clusterrole.yaml | 1 + config/post-install/storage-version-migrator.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/core/resources/containersource.yaml b/config/core/resources/containersource.yaml index 61b8b304e5c..874f77e8788 100644 --- a/config/core/resources/containersource.yaml +++ b/config/core/resources/containersource.yaml @@ -404,7 +404,7 @@ spec: - <<: *version name: v1beta1 served: true - storage: true + storage: false # the schema of v1beta1 is exactly the same as v1alpha2 schema schema: openAPIV3Schema: @@ -412,7 +412,7 @@ spec: - <<: *version name: v1 served: true - storage: false + storage: true # the schema of v1 is exactly the same as v1beta1 schema schema: openAPIV3Schema: diff --git a/config/post-install/clusterrole.yaml b/config/post-install/clusterrole.yaml index ee1f1d7e38e..ef707c92fe2 100644 --- a/config/post-install/clusterrole.yaml +++ b/config/post-install/clusterrole.yaml @@ -36,6 +36,7 @@ rules: - "sources.knative.dev" resources: - "apiserversources" + - "containersources" verbs: - "get" - "list" diff --git a/config/post-install/storage-version-migrator.yaml b/config/post-install/storage-version-migrator.yaml index cd94295d08f..8888a3005eb 100644 --- a/config/post-install/storage-version-migrator.yaml +++ b/config/post-install/storage-version-migrator.yaml @@ -38,3 +38,4 @@ spec: image: ko://knative.dev/eventing/vendor/knative.dev/pkg/apiextensions/storageversion/cmd/migrate args: - "apiserversources.sources.knative.dev" + - "containersources.sources.knative.dev"