From cc1c4797dcd0c265a1560b856ce740600af54aba Mon Sep 17 00:00:00 2001 From: Brady Pratt Date: Fri, 9 Aug 2024 10:28:10 -0500 Subject: [PATCH] task/operator-sdk-generate-bundle: kustomize-dir param allow setting `--kustomize-dir` flag when generating the bundle. This works for generating using a base CSV. If the string is empty (default), it will build without an existing base and generate the default CSV. Signed-off-by: Brady Pratt --- task/operator-sdk-generate-bundle/0.1/README.md | 1 + .../0.1/operator-sdk-generate-bundle.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/task/operator-sdk-generate-bundle/0.1/README.md b/task/operator-sdk-generate-bundle/0.1/README.md index 811493e7f5..534029e992 100644 --- a/task/operator-sdk-generate-bundle/0.1/README.md +++ b/task/operator-sdk-generate-bundle/0.1/README.md @@ -7,6 +7,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| |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 80edb7dcaa..294a7bdbb2 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 @@ -12,6 +12,11 @@ spec: - name: channels description: Comma-separated list of channels the bundle belongs to default: alpha + - name: kustomize-dir + description: > + Directory containing kustomize bases in a "bases" dir and a + kustomization.yaml for operator-framework manifests + default: "" - name: version description: Semantic version of the operator in the generated bundle - name: package-name @@ -37,3 +42,5 @@ spec: - $(params.version) - --package - $(params.package-name) + - --kustomize-dir + - $(params.kustomize-dir)