From c9deeb9f88695a2dfc806888c527c2bee2274139 Mon Sep 17 00:00:00 2001 From: Pierangelo Di Pilato Date: Fri, 21 Jun 2024 13:38:18 +0200 Subject: [PATCH] Add JobSink to storage version migration (#8020) Signed-off-by: Pierangelo Di Pilato --- config/post-install/clusterrole.yaml | 13 +++++++++++++ config/post-install/storage-version-migrator.yaml | 1 + 2 files changed, 14 insertions(+) diff --git a/config/post-install/clusterrole.yaml b/config/post-install/clusterrole.yaml index 93cdf0a7382..9920c68ff0c 100644 --- a/config/post-install/clusterrole.yaml +++ b/config/post-install/clusterrole.yaml @@ -109,6 +109,19 @@ rules: - "update" - "patch" - "watch" + - apiGroups: + - "sinks.knative.dev" + resources: + - "jobsinks" + - "jobsinks/finalizers" + - "jobsinks/status" + verbs: + - "get" + - "list" + - "create" + - "update" + - "patch" + - "watch" - apiGroups: - "" resources: diff --git a/config/post-install/storage-version-migrator.yaml b/config/post-install/storage-version-migrator.yaml index acaee3db874..845c8bd7aae 100644 --- a/config/post-install/storage-version-migrator.yaml +++ b/config/post-install/storage-version-migrator.yaml @@ -53,6 +53,7 @@ spec: - "sinkbindings.sources.knative.dev" - "subscriptions.messaging.knative.dev" - "triggers.eventing.knative.dev" + - "jobsinks.sinks.knative.dev" securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true