From 4ce0590fac6e2a48cc29e9ab44635b180d8e7dcf Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Wed, 7 Jun 2023 12:44:38 +0200 Subject: [PATCH] feat(ci): install operators before testing (#9455) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 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 corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 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 **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ 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._ --------- Signed-off-by: Kjeld Schouten --- .github/workflows/charts-test.yaml | 73 +++++++++++++++++++++++++++--- charts/stable/sonarr/Chart.yaml | 2 +- 2 files changed, 68 insertions(+), 7 deletions(-) diff --git a/.github/workflows/charts-test.yaml b/.github/workflows/charts-test.yaml index 027fe27a89b..49eab776002 100644 --- a/.github/workflows/charts-test.yaml +++ b/.github/workflows/charts-test.yaml @@ -141,12 +141,22 @@ jobs: # Flags found here https://github.com/k3d-io/k3d k3d-args: --k3s-arg --disable=metrics-server@server:* github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Remove node taints run: | kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true + - name: Add Dependencies + run: | + if [[ "${{ matrix.chart }}" != "charts/operators/metallb" ]]; then + kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml + fi + if [[ "${{ matrix.chart }}" != "charts/operators/cloudnative-pg" ]]; then + kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.17/releases/cnpg-1.17.5.yaml + fi + - name: Run chart-testing (install) - run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" #--upgrade + run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" # --upgrade install-charts2: needs: @@ -191,8 +201,19 @@ jobs: run: | kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true + - name: Add Dependencies + run: | + ## TODO: Move to our Helm Charts + ## TODO: Only add when required + if [[ "${{ matrix.chart }}" != "charts/operators/metallb" ]]; then + kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml + fi + if [[ "${{ matrix.chart }}" != "charts/operators/cloudnative-pg" ]]; then + kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.17/releases/cnpg-1.17.5.yaml + fi + - name: Run chart-testing (install) - run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" #--upgrade + run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" # --upgrade install-charts3: needs: @@ -232,12 +253,22 @@ jobs: # Flags found here https://github.com/k3d-io/k3d k3d-args: --k3s-arg --disable=metrics-server@server:* github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Remove node taints run: | kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true + - name: Add Dependencies + run: | + if [[ "${{ matrix.chart }}" != "charts/operators/metallb" ]]; then + kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml + fi + if [[ "${{ matrix.chart }}" != "charts/operators/cloudnative-pg" ]]; then + kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.17/releases/cnpg-1.17.5.yaml + fi + - name: Run chart-testing (install) - run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" #--upgrade + run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" # --upgrade install-charts4: needs: @@ -277,12 +308,22 @@ jobs: # Flags found here https://github.com/k3d-io/k3d k3d-args: --k3s-arg --disable=metrics-server@server:* github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Remove node taints run: | kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true + - name: Add Dependencies + run: | + if [[ "${{ matrix.chart }}" != "charts/operators/metallb" ]]; then + kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml + fi + if [[ "${{ matrix.chart }}" != "charts/operators/cloudnative-pg" ]]; then + kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.17/releases/cnpg-1.17.5.yaml + fi + - name: Run chart-testing (install) - run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" #--upgrade + run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" # --upgrade install-charts5: needs: @@ -322,12 +363,22 @@ jobs: # Flags found here https://github.com/k3d-io/k3d k3d-args: --k3s-arg --disable=metrics-server@server:* github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Remove node taints run: | kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true + - name: Add Dependencies + run: | + if [[ "${{ matrix.chart }}" != "charts/operators/metallb" ]]; then + kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml + fi + if [[ "${{ matrix.chart }}" != "charts/operators/cloudnative-pg" ]]; then + kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.17/releases/cnpg-1.17.5.yaml + fi + - name: Run chart-testing (install) - run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" #--upgrade + run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" # --upgrade install-charts6: needs: @@ -367,12 +418,22 @@ jobs: # Flags found here https://github.com/k3d-io/k3d k3d-args: --k3s-arg --disable=metrics-server@server:* github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Remove node taints run: | kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true + - name: Add Dependencies + run: | + if [[ "${{ matrix.chart }}" != "charts/operators/metallb" ]]; then + kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml + fi + if [[ "${{ matrix.chart }}" != "charts/operators/cloudnative-pg" ]]; then + kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.17/releases/cnpg-1.17.5.yaml + fi + - name: Run chart-testing (install) - run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" #--upgrade + run: ct install --config ".github/ct-install.yaml" --charts "${{ matrix.chart }}" # --upgrade # Summarize matrix https://github.community/t/status-check-for-a-matrix-jobs/127354/7 install_success: diff --git a/charts/stable/sonarr/Chart.yaml b/charts/stable/sonarr/Chart.yaml index e8c1fad0b91..70dbba1fb1a 100644 --- a/charts/stable/sonarr/Chart.yaml +++ b/charts/stable/sonarr/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/sonarr - https://github.com/Sonarr/Sonarr type: application -version: 15.0.25 +version: 15.0.27 annotations: truecharts.org/catagories: | - media