diff --git a/.github/workflows/chart-update.yaml b/.github/workflows/chart-update.yaml new file mode 100644 index 00000000..2096c6e2 --- /dev/null +++ b/.github/workflows/chart-update.yaml @@ -0,0 +1,46 @@ +--- +name: "chart-update" + +on: + schedule: + - cron: "0 7 * * 1-5" + + workflow_dispatch: + inputs: + update-strategy: + description: "Update strategy to use. Valid values are 'patch', 'minor' or 'major'" + type: choice + options: + - "patch" + - "minor" + - "major" + required: true + excluded-dependencies: + description: "Comma-separated list of dependencies to exclude from the update (i.e. 'dependency1,dependency2,dependency3')" + type: string + required: false + default: "" + dry-run: + description: "Activate dry-run mode" + type: boolean + required: false + default: true + +jobs: + + chart-update-schedule: + if: ${{ github.event_name == 'schedule' }} + strategy: + matrix: + update-strategy: ["major", "minor"] + uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main + with: + update-strategy: ${{ matrix.update-strategy }} + + chart-update-manual: + if: ${{ github.event_name == 'workflow_dispatch' }} + uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main + with: + update-strategy: ${{ inputs.update-strategy }} + excluded-dependencies: ${{ inputs.excluded-dependencies }} + dry-run: ${{ inputs.dry-run }} diff --git a/README.adoc b/README.adoc index f925eb63..b63ffb41 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = devops-stack-module-kube-prometheus-stack // Document attributes to replace along the document -:chart-version: 48.1.1 +:kube-prometheus-stack-chart-version: 48.1.1 :chart-url: https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack A https://devops-stack.io[DevOps Stack] module to deploy and configure https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack[kube-prometheus-chart]. diff --git a/charts/kube-prometheus-stack/Chart.yaml b/charts/kube-prometheus-stack/Chart.yaml index 6021be89..7ad7656c 100644 --- a/charts/kube-prometheus-stack/Chart.yaml +++ b/charts/kube-prometheus-stack/Chart.yaml @@ -6,5 +6,5 @@ description: | This chart installs the kube-prometheus-stack and configures Grafana dashboards for monitoring Kubernetes cluster with Prometheus. dependencies: - name: "kube-prometheus-stack" - version: "^48" + version: "48.1.1" repository: "https://prometheus-community.github.io/helm-charts"