From 3984e5f752c1513beb7c800667f1def7e60b3d62 Mon Sep 17 00:00:00 2001 From: Brady Pratt Date: Tue, 13 Aug 2024 04:54:22 -0500 Subject: [PATCH] task/operator-sdk-generate-bundle: --extra-service-accounts allow for passing the `--extra-service-accounts` operator-sdk flag in to configure additional cluster permissions in the CSV Signed-off-by: Brady Pratt --- task/operator-sdk-generate-bundle/0.1/README.md | 1 + .../0.1/operator-sdk-generate-bundle.yaml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/task/operator-sdk-generate-bundle/0.1/README.md b/task/operator-sdk-generate-bundle/0.1/README.md index 534029e99..56bcab9e8 100644 --- a/task/operator-sdk-generate-bundle/0.1/README.md +++ b/task/operator-sdk-generate-bundle/0.1/README.md @@ -8,6 +8,7 @@ Generate an OLM bundle using the operator-sdk |input-dir|Directory to read cluster-ready operator manifests from|deploy|false| |channels|Comma-separated list of channels the bundle belongs to|alpha|false| |kustomize-dir|Directory containing kustomize bases in a "bases" dir and a kustomization.yaml for operator-framework manifests |""|false| +|extra-service-accounts|Comma-seperated list of service account names, outside of the operator's Deployment account, that have bindings to {Cluster}Roles that should be added to the CSV |""|false| |version|Semantic version of the operator in the generated bundle||true| |package-name|Bundle's package name||true| diff --git a/task/operator-sdk-generate-bundle/0.1/operator-sdk-generate-bundle.yaml b/task/operator-sdk-generate-bundle/0.1/operator-sdk-generate-bundle.yaml index 294a7bdbb..882e17cec 100644 --- a/task/operator-sdk-generate-bundle/0.1/operator-sdk-generate-bundle.yaml +++ b/task/operator-sdk-generate-bundle/0.1/operator-sdk-generate-bundle.yaml @@ -17,6 +17,12 @@ spec: Directory containing kustomize bases in a "bases" dir and a kustomization.yaml for operator-framework manifests default: "" + - name: extra-service-accounts + description: > + Comma-seperated list of service account names, outside of the + operator's Deployment account, that have bindings to {Cluster}Roles + that should be added to the CSV + default: "" - name: version description: Semantic version of the operator in the generated bundle - name: package-name @@ -44,3 +50,5 @@ spec: - $(params.package-name) - --kustomize-dir - $(params.kustomize-dir) + - --extra-service-accounts + - $(params.extra-service-accounts)