From 724c82008317705d7ff9e0e2dfe59258253c726f 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 | 12 ++++++++++++ config/post-install/storage-version-migrator.yaml | 1 + 3 files changed, 15 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..753f8f62559 100644 --- a/config/post-install/clusterrole.yaml +++ b/config/post-install/clusterrole.yaml @@ -32,6 +32,18 @@ rules: - "patch" - "watch" # Our own resources we care about. + - apiGroups: + - "sources.knative.dev" + resources: + - "sinkbindings" + verbs: + - "get" + - "list" + - "create" + - "update" + - "delete" + - "patch" + - "watch" - apiGroups: - "sources.knative.dev" resources: 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"