From 577738e2a3280f7b3b6a60c91f81799c8f3d7cd6 Mon Sep 17 00:00:00 2001 From: Boemeltrein <130394941+Boemeltrein@users.noreply.github.com> Date: Tue, 3 Jun 2025 09:24:11 +0200 Subject: [PATCH] fix(clustertool&docs): apiVersion: source.toolkit.fluxcd.io (#35820) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Changed from `source.toolkit.fluxcd.io/v1beta2` to `apiVersion: source.toolkit.fluxcd.io/v1` And some other additional files ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [x] 📜 Documentation Changes **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- .../root/repositories/oci/flux-manifests.yaml | 4 ++-- .../src/content/docs/guides/fluxcd/capacitor.md | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/clustertool/embed/generic/root/repositories/oci/flux-manifests.yaml b/clustertool/embed/generic/root/repositories/oci/flux-manifests.yaml index e0763dd9caa..8f7c8b7b09c 100644 --- a/clustertool/embed/generic/root/repositories/oci/flux-manifests.yaml +++ b/clustertool/embed/generic/root/repositories/oci/flux-manifests.yaml @@ -1,6 +1,6 @@ --- -# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/ocirepository_v1beta2.json -apiVersion: source.toolkit.fluxcd.io/v1beta2 +# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/ocirepository_v1.json +apiVersion: source.toolkit.fluxcd.io/v1 kind: OCIRepository metadata: name: flux-manifests diff --git a/website/src/content/docs/guides/fluxcd/capacitor.md b/website/src/content/docs/guides/fluxcd/capacitor.md index 2fec6c86a74..30ff86290d3 100644 --- a/website/src/content/docs/guides/fluxcd/capacitor.md +++ b/website/src/content/docs/guides/fluxcd/capacitor.md @@ -31,8 +31,9 @@ If you face issues feel free to open a thread in the appropiate Channel in our D - Next we will need 3 files inside the capacitor folder: -capacitor.yaml ```yaml +//capacitor.yaml + apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: @@ -51,8 +52,9 @@ spec: name: capacitor ``` -ingress.yaml ```yaml +//ingress.yaml + apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -80,8 +82,9 @@ spec: secretName: capacitor-tls-0 # use what you have configured for your ingress ``` -kustomization.yaml ``` yaml +//kustomization.yaml + apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: @@ -93,9 +96,10 @@ resources: Go to your `Reponsitories/oci` directory and create this file. -capacitor-manifests.yaml ``` yaml -apiVersion: source.toolkit.fluxcd.io/v1beta2 +//capacitor-manifests.yaml + +apiVersion: source.toolkit.fluxcd.io/v1 kind: OCIRepository metadata: name: capacitor