Skip to content

Commit

Permalink
SinkBinding stored version v1 and migration tool
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
  • Loading branch information
pierDipi committed Dec 15, 2020
1 parent af7fc84 commit 724c820
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/core/resources/sinkbindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions config/post-install/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions config/post-install/storage-version-migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 724c820

Please sign in to comment.