From 032351cccfdc89b47452ae2911d52a73610f7c39 Mon Sep 17 00:00:00 2001 From: Andy Zawada <32112934+atzawada@users.noreply.github.com> Date: Wed, 26 Jul 2023 17:44:58 -0400 Subject: [PATCH] chore: Generate standalone CRDs manifests as part of release process (#4814) Signed-off-by: Yoon Park --- .github/workflows/release-build.yml | 12 ++++++++++++ CHANGELOG.md | 1 + Makefile | 1 + 3 files changed, 14 insertions(+) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 3dd52d48afe..7f439a175fb 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -114,3 +114,15 @@ jobs: asset_path: keda-${{ steps.get_version.outputs.VERSION }}-core.yaml asset_name: keda-${{ steps.get_version.outputs.VERSION }}-core.yaml asset_content_type: application/x-yaml + + # Upload CRD deployment YAML file to GitHub release + - name: Upload Deployment YAML file + id: upload-crd-deployment-yaml + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/kedacore/keda/releases/${{ steps.get-release-info.outputs.id }}/assets?name=keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml + asset_path: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml + asset_name: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml + asset_content_type: application/x-yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index a9f5d0cd399..5b252965c1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ To learn more about active deprecations, we recommend checking [GitHub Discussio ### Improvements - **General:**: Add ScaledObject/ScaledJob names to output of `kubectl get triggerauthentication/clustertriggerauthentication` ([#796](https://github.com/kedacore/keda/issues/796)) +- **General:**: Add standalone CRD generation to release workflow ([#2726](https://github.com/kedacore/keda/issues/2726)) ### Fixes diff --git a/Makefile b/Makefile index 061320f541a..291a94b9444 100644 --- a/Makefile +++ b/Makefile @@ -234,6 +234,7 @@ release: manifests kustomize set-version ## Produce new KEDA release in keda-$(V rm -rf config/default/kustomize-config/metadataLabelTransformer.yaml.out $(KUSTOMIZE) build config/default > keda-$(VERSION).yaml $(KUSTOMIZE) build config/minimal > keda-$(VERSION)-core.yaml + $(KUSTOMIZE) build config/crd > keda-$(VERSION)-crds.yaml sign-images: ## Sign KEDA images published on GitHub Container Registry COSIGN_EXPERIMENTAL=1 cosign sign ${COSIGN_FLAGS} $(IMAGE_CONTROLLER)