From 00d2f9749affbe023043b5d5532f9ab49a901562 Mon Sep 17 00:00:00 2001 From: Spot CI <60224180+spotinst-ci@users.noreply.github.com> Date: Sun, 7 Jul 2024 12:31:35 +0300 Subject: [PATCH] [bump] ocean-kubernetes-controller - v2.0.62 (#145) * bump ocean-kubernetes-controller app version to 2.0.62 --------- Co-authored-by: spotinst-ci Co-authored-by: Roi Kramer --- .../workflows/bump-chart-dependencies.yaml | 74 ------------------- .github/workflows/bump-chart.yaml | 2 + .github/workflows/lint.yaml | 2 + charts/ocean-kubernetes-controller/Chart.yaml | 4 +- charts/ocean-kubernetes-controller/README.md | 2 +- 5 files changed, 7 insertions(+), 77 deletions(-) delete mode 100644 .github/workflows/bump-chart-dependencies.yaml diff --git a/.github/workflows/bump-chart-dependencies.yaml b/.github/workflows/bump-chart-dependencies.yaml deleted file mode 100644 index 747b51f..0000000 --- a/.github/workflows/bump-chart-dependencies.yaml +++ /dev/null @@ -1,74 +0,0 @@ -name: Bump Chart Dependencies - -on: {} - -jobs: - bump-local-dependencies: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 - with: - repository: spotinst/charts - - uses: gabe565/setup-helm-docs-action@v1.0.3 - - uses: azure/setup-helm@v4.1.0 - with: - version: v3.12.1 - - - name: Check Dependencies Versions - id: check-dependencies - run: | - for chart in `yq '.dependencies[].name' ./charts/${{ inputs.chart-name }}/Chart.yaml`; do - if [ ! -f ./charts/${chart}/Chart.yaml ]; then - continue - fi - - dep_version=$(yq '.dependencies[] | select(.name == "'${chart}'") | .version' ./charts/${{ inputs.chart-name }}/Chart.yaml) - chart_version=$(yq '.version' ./charts/${chart}/Chart.yaml) - - if [ "${dep_version}" == "${chart_version}" ]; then - echo "Dependency \"${chart}\" has version \"${dep_version}\" and is up to date" - continue - fi - - echo "Dependency \"${chart}\" has version \"${dep_version}\" but should be \"${chart_version}\", bumping to \"${chart_version}\"" - yq -i '(.dependencies[] | select(.name == "'${chart}'") | .version) = "'${chart_version}'"' ./charts/${{ inputs.chart-name }}/Chart.yaml - done - - - name: Check Diff - id: check-diff - run: | - (git diff --exit-code && echo "Nothing to do" && echo "should_update=false" >> $GITHUB_OUTPUT) || (echo "Changes detected" && echo "should_update=true" >> $GITHUB_OUTPUT) - - - name: Update Chart Version - if: steps.check-diff.outputs.should_update == 'true' - run: | - yq -i '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' ./charts/${{ inputs.chart-name }}/Chart.yaml - - - name: Update Dependencies - if: steps.check-diff.outputs.should_update == 'true' - run: | - helm dependency update ./charts/${{ inputs.chart-name }} - - - name: Update helm docs - if: steps.check-diff.outputs.should_update == 'true' - run: | - helm-docs --chart-to-generate charts/${{ inputs.chart-name }} - - - name: Generate version bump commit - if: steps.check-diff.outputs.should_update == 'true' - run: | - git config user.name ${{ github.actor }} - git config user.email '${{ github.actor }}@users.noreply.github.com' - git add . - git commit -a -m "bump ${{ inputs.chart-name }} dependencies" - - - name: Create Pull Request - if: steps.check-diff.outputs.should_update == 'true' - id: cpr - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - title: '[bump] ${{ inputs.chart-name }} dependencies' - branch: bump/dependencies-for-${{ inputs.chart-name }} - delete-branch: true - labels: bump_dependencies diff --git a/.github/workflows/bump-chart.yaml b/.github/workflows/bump-chart.yaml index 5950184..3c3f110 100644 --- a/.github/workflows/bump-chart.yaml +++ b/.github/workflows/bump-chart.yaml @@ -24,6 +24,8 @@ jobs: with: repository: spotinst/charts - uses: gabe565/setup-helm-docs-action@v1.0.3 + with: + version: v1.13.1 - name: Clean version id: clean-version diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 3c8cc9f..d617a5d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -35,6 +35,8 @@ jobs: run: ct lint --config .github/ct.yaml - uses: gabe565/setup-helm-docs-action@v1.0.3 + with: + version: v1.13.1 - run: helm-docs - name: Check for changes in docs run: git diff --exit-code || (echo "Docs are out of date. Please run 'make docs' and commit the changes." && exit 1) \ No newline at end of file diff --git a/charts/ocean-kubernetes-controller/Chart.yaml b/charts/ocean-kubernetes-controller/Chart.yaml index 97c92bb..ccfc207 100644 --- a/charts/ocean-kubernetes-controller/Chart.yaml +++ b/charts/ocean-kubernetes-controller/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: ocean-kubernetes-controller description: A Helm chart for Ocean Kubernetes Controller type: application -version: 0.1.47 -appVersion: 2.0.59 +version: 0.1.48 +appVersion: 2.0.62 kubeVersion: ">=1.20.0-0" maintainers: - name: spotinst diff --git a/charts/ocean-kubernetes-controller/README.md b/charts/ocean-kubernetes-controller/README.md index 2bc551d..d1ba0c9 100644 --- a/charts/ocean-kubernetes-controller/README.md +++ b/charts/ocean-kubernetes-controller/README.md @@ -1,6 +1,6 @@ # ocean-kubernetes-controller -![Version: 0.1.47](https://img.shields.io/badge/Version-0.1.47-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.59](https://img.shields.io/badge/AppVersion-2.0.59-informational?style=flat-square) +![Version: 0.1.48](https://img.shields.io/badge/Version-0.1.48-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.62](https://img.shields.io/badge/AppVersion-2.0.62-informational?style=flat-square) A Helm chart for Ocean Kubernetes Controller.