From 00f2340329a19711054d638f97f4140a65dd9523 Mon Sep 17 00:00:00 2001 From: Pierangelo Di Pilato Date: Tue, 15 Dec 2020 15:23:14 +0100 Subject: [PATCH] SinkBinding stored version v1 and migration tool Signed-off-by: Pierangelo Di Pilato --- config/core/resources/sinkbindings.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/sinkbindings.yaml b/config/core/resources/sinkbindings.yaml index c7ecb91fc02..d90a084bba1 100644 --- a/config/core/resources/sinkbindings.yaml +++ b/config/core/resources/sinkbindings.yaml @@ -59,11 +59,11 @@ spec: - <<: *version name: v1beta1 served: true - storage: true + storage: false - <<: *version name: v1 served: true - storage: false + storage: true schema: openAPIV3Schema: type: object diff --git a/config/post-install/clusterrole.yaml b/config/post-install/clusterrole.yaml index ee1f1d7e38e..7203fc38695 100644 --- a/config/post-install/clusterrole.yaml +++ b/config/post-install/clusterrole.yaml @@ -35,6 +35,7 @@ rules: - apiGroups: - "sources.knative.dev" resources: + - "sinkbindings" - "apiserversources" verbs: - "get" diff --git a/config/post-install/storage-version-migrator.yaml b/config/post-install/storage-version-migrator.yaml index cd94295d08f..cb69fb4f9e9 100644 --- a/config/post-install/storage-version-migrator.yaml +++ b/config/post-install/storage-version-migrator.yaml @@ -37,4 +37,5 @@ spec: - name: migrate image: ko://knative.dev/eventing/vendor/knative.dev/pkg/apiextensions/storageversion/cmd/migrate args: + - "sinkbindings.sources.knative.dev" - "apiserversources.sources.knative.dev"