From 604bebf6acb351a2d2a89bed434d8c701b1d668f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCnemann?= Date: Tue, 29 Jul 2025 15:50:41 +0200 Subject: [PATCH] add flux to openmcp component --- .github/workflows/release.yaml | 2 +- component-constructor.yaml | 26 ++++++++++++++++++++++++++ components-versions.yaml | 10 ++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dca23e3..4de45a4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -118,4 +118,4 @@ jobs: - name: Push CTF if: ${{ env.SKIP != 'true' }} run: | - ocm transfer ctf ./openmcp-ctf/ ${{ env.OCI_URL }} \ No newline at end of file + ocm transfer ctf --copy-resources ./openmcp-ctf/ ${{ env.OCI_URL }} \ No newline at end of file diff --git a/component-constructor.yaml b/component-constructor.yaml index 32be3e2..45b3a87 100644 --- a/component-constructor.yaml +++ b/component-constructor.yaml @@ -36,6 +36,32 @@ components: - componentName: github.com/openmcp-project/cluster-provider-gardener name: cluster-provider-gardener version: ${CLUSTER_PROVIDER_GARDENER_VERSION} + + resources: + - name: fluxcd-source-controller + version: ${FLUXCD_SOURCE_CONTROLLER_VERSION} + type: ociImage + input: + type: ociImage + path: ghcr.io/fluxcd/source-controller:${FLUXCD_SOURCE_CONTROLLER_VERSION} + repository: images/fluxcd/source-controller + + - name: fluxcd-kustomize-controller + version: ${FLUXCD_KUSTOMIZE_CONTROLLER_VERSION} + type: ociImage + input: + type: ociImage + path: ghcr.io/fluxcd/kustomize-controller:${FLUXCD_KUSTOMIZE_CONTROLLER_VERSION} + repository: images/fluxcd/kustomize-controller + + - name: fluxcd-helm-controller + version: ${FLUXCD_HELM_CONTROLLER_VERSION} + type: ociImage + input: + type: ociImage + path: ghcr.io/fluxcd/helm-controller:${FLUXCD_HELM_CONTROLLER_VERSION} + repository: images/fluxcd/helm-controller + sources: - access: ref: "refs/tags/${OPENMCP_VERSION}" diff --git a/components-versions.yaml b/components-versions.yaml index 3842484..0ab197e 100644 --- a/components-versions.yaml +++ b/components-versions.yaml @@ -12,3 +12,13 @@ OPENMCP_OPERATOR_VERSION: "v0.8.3" SERVICE_PROVIDER_LANDSCAPER_VERSION: "v0.3.0" # renovate: datasource=github-releases depName=openmcp-project/cluster-provider-gardener CLUSTER_PROVIDER_GARDENER_VERSION: "v0.2.0" + +# external dependencies +# github.com/fluxcd + +# renovate: datasource=github-releases depName=fluxcd/source-controller +FLUXCD_SOURCE_CONTROLLER_VERSION: "v1.6.2" +# renovate: datasource=github-releases depName=fluxcd/kustomize-controller +FLUXCD_KUSTOMIZE_CONTROLLER_VERSION: "v1.6.1" +# renovate: datasource=github-releases depName=fluxcd/helm-controller +FLUXCD_HELM_CONTROLLER_VERSION: "v1.3.0"