Merge branch 'main' into amcamina/customize_rbca
This commit is contained in:
commit
214771848f
13 changed files with 147 additions and 110 deletions
7
.github/configs/renovate-config.js
vendored
Normal file
7
.github/configs/renovate-config.js
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
module.exports = {
|
||||||
|
platform: 'github',
|
||||||
|
gitAuthor: 'renovate[bot] <renovate[bot]@users.noreply.github.com>',
|
||||||
|
autodiscover: false,
|
||||||
|
allowPostUpgradeCommandTemplating: true,
|
||||||
|
allowedPostUpgradeCommands: [".*"],
|
||||||
|
};
|
57
.github/workflows/chart-version-bump.yml
vendored
57
.github/workflows/chart-version-bump.yml
vendored
|
@ -1,57 +0,0 @@
|
||||||
## Used on Renovate PRs to bump the chart version and add a changelog entry
|
|
||||||
## Reference: https://github.com/stefanzweifel/git-auto-commit-action
|
|
||||||
## Reference: https://github.com/marketplace/actions/changed-files
|
|
||||||
name: 'Chart Version Bump and Changelog'
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- labeled
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
helm-bumper:
|
|
||||||
if: ${{ (contains(github.event.pull_request.labels.*.name, 'renovate')) }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.PAT }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Get changed files
|
|
||||||
id: changed-files
|
|
||||||
uses: tj-actions/changed-files@3f54ebb830831fc121d3263c1857cfbdc310cdb9 # v42.0.4
|
|
||||||
with:
|
|
||||||
files: charts/{argo-workflows,argo-cd,argo-events,argo-rollouts,argocd-image-updater}/Chart.yaml
|
|
||||||
|
|
||||||
- name: "Bump Version and Changelog"
|
|
||||||
run: |
|
|
||||||
chartName="$(echo \"${{ steps.changed-files.outputs.all_changed_files }}\" | cut -d '/' -f2)"
|
|
||||||
echo "Changed chart name is: $chartName"
|
|
||||||
echo "----------------------------------------"
|
|
||||||
|
|
||||||
parentDir="charts/${chartName}"
|
|
||||||
|
|
||||||
# Bump the chart version by one patch version
|
|
||||||
version=$(grep '^version:' ${parentDir}/Chart.yaml | awk '{print $2}')
|
|
||||||
major=$(echo $version | cut -d. -f1)
|
|
||||||
minor=$(echo $version | cut -d. -f2)
|
|
||||||
patch=$(echo $version | cut -d. -f3)
|
|
||||||
patch=$(expr $patch + 1)
|
|
||||||
sed -i "s/^version:.*/version: ${major}.${minor}.${patch}/g" ${parentDir}/Chart.yaml
|
|
||||||
|
|
||||||
# Add a changelog entry
|
|
||||||
appVersion=$(grep '^appVersion:' ${parentDir}/Chart.yaml | awk '{print $2}')
|
|
||||||
sed -i -e '/^ artifacthub.io\/changes: |/,$d' ${parentDir}/Chart.yaml
|
|
||||||
echo " artifacthub.io/changes: |" >> ${parentDir}/Chart.yaml
|
|
||||||
echo " - kind: changed" >> ${parentDir}/Chart.yaml
|
|
||||||
echo " description: Bump ${chartName} to ${appVersion}" >> ${parentDir}/Chart.yaml
|
|
||||||
cat ${parentDir}/Chart.yaml
|
|
||||||
|
|
||||||
- name: "Commit and push changes"
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
|
|
||||||
with:
|
|
||||||
commit_options: '--signoff'
|
|
36
.github/workflows/renovate.yaml
vendored
Normal file
36
.github/workflows/renovate.yaml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Renovate
|
||||||
|
on:
|
||||||
|
# The "*" (#42, asterisk) character has special semantics in YAML, so this
|
||||||
|
# string has to be quoted.
|
||||||
|
schedule:
|
||||||
|
- cron: '0 * * * *'
|
||||||
|
# Manual trigger is also possible
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
renovate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Get token
|
||||||
|
uses: actions/create-github-app-token@e8e39f73bb84fdf315a015fa3104f314c0a258b4 # v1.8.1
|
||||||
|
id: get_token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.RENOVATE_APP_ID }}
|
||||||
|
private-key: ${{ secrets.RENOVATE_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|
||||||
|
- name: Self-hosted Renovate
|
||||||
|
uses: renovatebot/github-action@a6e57359b32af9a54d5b3b6603011f50629a0a05 # v40.1.2
|
||||||
|
with:
|
||||||
|
configurationFile: .github/configs/renovate-config.js
|
||||||
|
# renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||||
|
renovate-version: 37.221.0
|
||||||
|
token: '${{ steps.get_token.outputs.token }}'
|
||||||
|
env:
|
||||||
|
LOG_LEVEL: 'debug'
|
||||||
|
RENOVATE_REPOSITORIES: '${{ github.repository }}'
|
|
@ -3,7 +3,7 @@ appVersion: v2.10.1
|
||||||
kubeVersion: ">=1.23.0-0"
|
kubeVersion: ">=1.23.0-0"
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 6.4.2
|
version: 6.5.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -26,5 +26,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: added
|
||||||
description: Pass argocd-server's ALB health check
|
description: Support for templating ingress extraPaths and extraRules
|
||||||
|
|
|
@ -24,7 +24,7 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with .Values.applicationSet.ingress.extraPaths }}
|
{{- with .Values.applicationSet.ingress.extraPaths }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- tpl (toYaml .) $ | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- path: {{ .Values.applicationSet.ingress.path }}
|
- path: {{ .Values.applicationSet.ingress.path }}
|
||||||
pathType: {{ .Values.applicationSet.ingress.pathType }}
|
pathType: {{ .Values.applicationSet.ingress.pathType }}
|
||||||
|
@ -46,7 +46,7 @@ spec:
|
||||||
number: {{ $.Values.applicationSet.service.port }}
|
number: {{ $.Values.applicationSet.service.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.applicationSet.ingress.extraRules }}
|
{{- with .Values.applicationSet.ingress.extraRules }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.applicationSet.ingress.tls .Values.applicationSet.ingress.extraTls }}
|
{{- if or .Values.applicationSet.ingress.tls .Values.applicationSet.ingress.extraTls }}
|
||||||
tls:
|
tls:
|
||||||
|
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with .Values.server.ingress.extraPaths }}
|
{{- with .Values.server.ingress.extraPaths }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- tpl (toYaml .) $ | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- path: {{ .Values.server.ingress.path }}
|
- path: {{ .Values.server.ingress.path }}
|
||||||
pathType: {{ $.Values.server.ingressGrpc.pathType }}
|
pathType: {{ $.Values.server.ingressGrpc.pathType }}
|
||||||
|
@ -55,7 +55,7 @@ spec:
|
||||||
number: {{ $servicePort }}
|
number: {{ $servicePort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.server.ingress.extraRules }}
|
{{- with .Values.server.ingress.extraRules }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
||||||
tls:
|
tls:
|
||||||
|
|
|
@ -31,7 +31,7 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with .Values.server.ingress.extraPaths }}
|
{{- with .Values.server.ingress.extraPaths }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- tpl (toYaml .) $ | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- path: {{ .Values.server.ingress.path }}
|
- path: {{ .Values.server.ingress.path }}
|
||||||
pathType: {{ .Values.server.ingress.pathType }}
|
pathType: {{ .Values.server.ingress.pathType }}
|
||||||
|
@ -53,7 +53,7 @@ spec:
|
||||||
number: {{ $servicePort }}
|
number: {{ $servicePort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.server.ingress.extraRules }}
|
{{- with .Values.server.ingress.extraRules }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
||||||
tls:
|
tls:
|
||||||
|
|
|
@ -25,7 +25,7 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with .Values.server.ingressGrpc.extraPaths }}
|
{{- with .Values.server.ingressGrpc.extraPaths }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- tpl (toYaml .) $ | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- path: {{ .Values.server.ingressGrpc.path }}
|
- path: {{ .Values.server.ingressGrpc.path }}
|
||||||
pathType: {{ .Values.server.ingressGrpc.pathType }}
|
pathType: {{ .Values.server.ingressGrpc.pathType }}
|
||||||
|
@ -47,7 +47,7 @@ spec:
|
||||||
number: {{ $.Values.server.service.servicePortHttps }}
|
number: {{ $.Values.server.service.servicePortHttps }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.server.ingressGrpc.extraRules }}
|
{{- with .Values.server.ingressGrpc.extraRules }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.server.ingressGrpc.tls .Values.server.ingressGrpc.extraTls }}
|
{{- if or .Values.server.ingressGrpc.tls .Values.server.ingressGrpc.extraTls }}
|
||||||
tls:
|
tls:
|
||||||
|
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- with .Values.server.ingress.extraPaths }}
|
{{- with .Values.server.ingress.extraPaths }}
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- tpl (toYaml .) $ | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- path: {{ .Values.server.ingress.path }}
|
- path: {{ .Values.server.ingress.path }}
|
||||||
pathType: {{ $.Values.server.ingress.pathType }}
|
pathType: {{ $.Values.server.ingress.pathType }}
|
||||||
|
@ -48,7 +48,7 @@ spec:
|
||||||
number: {{ $servicePort }}
|
number: {{ $servicePort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.server.ingress.extraRules }}
|
{{- with .Values.server.ingress.extraRules }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
||||||
tls:
|
tls:
|
||||||
|
|
|
@ -2038,6 +2038,7 @@ server:
|
||||||
|
|
||||||
# -- Additional ingress paths
|
# -- Additional ingress paths
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
## Note: Supports use of custom Helm templates
|
||||||
extraPaths: []
|
extraPaths: []
|
||||||
# - path: /*
|
# - path: /*
|
||||||
# pathType: Prefix
|
# pathType: Prefix
|
||||||
|
@ -2049,15 +2050,17 @@ server:
|
||||||
|
|
||||||
# -- Additional ingress rules
|
# -- Additional ingress rules
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
## Note: Supports use of custom Helm templates
|
||||||
extraRules: []
|
extraRules: []
|
||||||
# - host: example.example.com
|
# - http:
|
||||||
# http:
|
# paths:
|
||||||
# path: /
|
# - path: /
|
||||||
|
# pathType: Prefix
|
||||||
# backend:
|
# backend:
|
||||||
# service:
|
# service:
|
||||||
# name: example-svc
|
# name: '{{ include "argo-cd.server.fullname" . }}'
|
||||||
# port:
|
# port:
|
||||||
# name: http
|
# name: '{{ .Values.server.service.servicePortHttpsName }}'
|
||||||
|
|
||||||
# -- Additional TLS configuration
|
# -- Additional TLS configuration
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
@ -2144,6 +2147,7 @@ server:
|
||||||
|
|
||||||
# -- Additional ingress paths for dedicated [gRPC-ingress]
|
# -- Additional ingress paths for dedicated [gRPC-ingress]
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
## Note: Supports use of custom Helm templates
|
||||||
extraPaths: []
|
extraPaths: []
|
||||||
# - path: /*
|
# - path: /*
|
||||||
# pathType: Prefix
|
# pathType: Prefix
|
||||||
|
@ -2155,15 +2159,17 @@ server:
|
||||||
|
|
||||||
# -- Additional ingress rules
|
# -- Additional ingress rules
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
## Note: Supports use of custom Helm templates
|
||||||
extraRules: []
|
extraRules: []
|
||||||
# - host: example.example.com
|
# - http:
|
||||||
# http:
|
# paths:
|
||||||
# path: /
|
# - path: /
|
||||||
|
# pathType: Prefix
|
||||||
# backend:
|
# backend:
|
||||||
# service:
|
# service:
|
||||||
# name: example-svc
|
# name: '{{ include "argo-cd.server.fullname" . }}'
|
||||||
# port:
|
# port:
|
||||||
# name: http
|
# name: '{{ .Values.server.service.servicePortHttpName }}'
|
||||||
|
|
||||||
# -- Additional TLS configuration for dedicated [gRPC-ingress]
|
# -- Additional TLS configuration for dedicated [gRPC-ingress]
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
@ -2904,15 +2910,17 @@ applicationSet:
|
||||||
|
|
||||||
# -- Additional ingress rules
|
# -- Additional ingress rules
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
## Note: Supports use of custom Helm templates
|
||||||
extraRules: []
|
extraRules: []
|
||||||
# - host: example.example.com
|
# - http:
|
||||||
# http:
|
# paths:
|
||||||
# path: /
|
# - path: /api/webhook
|
||||||
# backend:
|
# pathType: Prefix
|
||||||
# service:
|
# backend:
|
||||||
# name: example-svc
|
# service:
|
||||||
# port:
|
# name: '{{ include "argo-cd.applicationSet.fullname" . }}'
|
||||||
# name: http
|
# port:
|
||||||
|
# name: '{{ .Values.applicationSet.service.portName }}'
|
||||||
|
|
||||||
# -- Additional ingress TLS configuration
|
# -- Additional ingress TLS configuration
|
||||||
# @default -- `[]` (See [values.yaml])
|
# @default -- `[]` (See [values.yaml])
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: v3.5.4
|
appVersion: v3.5.5
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.40.11
|
version: 0.40.12
|
||||||
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -16,5 +16,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: fixed
|
- kind: changed
|
||||||
description: Add caSecret in the artifactory.s3 configuration values.
|
description: Bump argo-workflows to v3.5.5
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"fileMatch": ["\\.yaml$", "\\.yml$"]
|
"fileMatch": ["\\.yaml$", "\\.yml$"]
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:base",
|
"config:recommended",
|
||||||
"docker:enableMajor"
|
"docker:enableMajor"
|
||||||
],
|
],
|
||||||
"labels": ["renovate"],
|
"labels": ["renovate"],
|
||||||
|
@ -13,10 +13,12 @@
|
||||||
"**/charts/argo-cd/Chart.yaml",
|
"**/charts/argo-cd/Chart.yaml",
|
||||||
"**/charts/argo-events/Chart.yaml",
|
"**/charts/argo-events/Chart.yaml",
|
||||||
"**/charts/argo-rollouts/Chart.yaml",
|
"**/charts/argo-rollouts/Chart.yaml",
|
||||||
"**/charts/argocd-image-updater/Chart.yaml"
|
"**/charts/argocd-image-updater/Chart.yaml",
|
||||||
|
"**/.github/workflows/renovate.yaml"
|
||||||
],
|
],
|
||||||
"regexManagers": [
|
"customManagers": [
|
||||||
{
|
{
|
||||||
|
"customType": "regex",
|
||||||
"fileMatch": ["charts/argo-workflows/Chart.yaml$"],
|
"fileMatch": ["charts/argo-workflows/Chart.yaml$"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"\\sappVersion: (?<currentValue>.*)\\s"
|
"\\sappVersion: (?<currentValue>.*)\\s"
|
||||||
|
@ -26,6 +28,7 @@
|
||||||
"datasourceTemplate": "github-releases"
|
"datasourceTemplate": "github-releases"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"customType": "regex",
|
||||||
"fileMatch": ["charts/argo-cd/Chart.yaml$"],
|
"fileMatch": ["charts/argo-cd/Chart.yaml$"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"\\sappVersion: (?<currentValue>.*)\\s"
|
"\\sappVersion: (?<currentValue>.*)\\s"
|
||||||
|
@ -35,6 +38,7 @@
|
||||||
"datasourceTemplate": "github-releases"
|
"datasourceTemplate": "github-releases"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"customType": "regex",
|
||||||
"fileMatch": ["charts/argo-events/Chart.yaml$"],
|
"fileMatch": ["charts/argo-events/Chart.yaml$"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"\\sappVersion: (?<currentValue>.*)\\s"
|
"\\sappVersion: (?<currentValue>.*)\\s"
|
||||||
|
@ -44,6 +48,7 @@
|
||||||
"datasourceTemplate": "github-releases"
|
"datasourceTemplate": "github-releases"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"customType": "regex",
|
||||||
"fileMatch": ["charts/argo-rollouts/Chart.yaml$"],
|
"fileMatch": ["charts/argo-rollouts/Chart.yaml$"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"\\sappVersion: (?<currentValue>.*)\\s"
|
"\\sappVersion: (?<currentValue>.*)\\s"
|
||||||
|
@ -53,6 +58,7 @@
|
||||||
"datasourceTemplate": "github-releases"
|
"datasourceTemplate": "github-releases"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"customType": "regex",
|
||||||
"fileMatch": ["charts/argocd-image-updater/Chart.yaml$"],
|
"fileMatch": ["charts/argocd-image-updater/Chart.yaml$"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"\\sappVersion: (?<currentValue>.*)\\s"
|
"\\sappVersion: (?<currentValue>.*)\\s"
|
||||||
|
@ -60,28 +66,34 @@
|
||||||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
|
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
|
||||||
"depNameTemplate": "argoproj-labs/argocd-image-updater",
|
"depNameTemplate": "argoproj-labs/argocd-image-updater",
|
||||||
"datasourceTemplate": "github-releases"
|
"datasourceTemplate": "github-releases"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"customType": "regex",
|
||||||
|
"fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"],
|
||||||
|
"matchStrings": [
|
||||||
|
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchPackagePatterns": ["argoproj/argo-workflows"],
|
"matchPackagePatterns": [
|
||||||
"commitMessagePrefix": "chore(argo-workflows):"
|
"argoproj/argo-workflows",
|
||||||
},
|
"argoproj/argo-cd",
|
||||||
{
|
"argoproj/argo-events",
|
||||||
"matchPackagePatterns": ["argoproj/argo-cd"],
|
"argoproj/argo-rollouts"
|
||||||
"commitMessagePrefix": "chore(argo-cd):"
|
],
|
||||||
},
|
"commitMessagePrefix": "chore({{{replace 'argoproj/' '' depName}}}):",
|
||||||
{
|
"postUpgradeTasks": {
|
||||||
"matchPackagePatterns": ["argoproj/argo-events"],
|
"commands": ["./scripts/renovate-bump-version.sh {{depName}}"]
|
||||||
"commitMessagePrefix": "chore(argo-events):"
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"matchPackagePatterns": ["argoproj/argo-rollouts"],
|
|
||||||
"commitMessagePrefix": "chore(argo-rollouts):"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matchPackagePatterns": ["argoproj-labs/argocd-image-updater"],
|
"matchPackagePatterns": ["argoproj-labs/argocd-image-updater"],
|
||||||
"commitMessagePrefix": "chore(argocd-image-updater):"
|
"commitMessagePrefix": "chore({{{replace 'argoproj-labs/' '' depName}}}):",
|
||||||
|
"postUpgradeTasks": {
|
||||||
|
"commands": ["./scripts/renovate-bump-version.sh {{depName}}"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matchPackagePatterns": ["redis-ha"],
|
"matchPackagePatterns": ["redis-ha"],
|
||||||
|
|
31
scripts/renovate-bump-version.sh
Executable file
31
scripts/renovate-bump-version.sh
Executable file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/bash
|
||||||
|
depName="${1}"
|
||||||
|
if [ -z "${depName}" ]; then
|
||||||
|
echo "Missing argument 'depName'" >&2
|
||||||
|
echo "Example usage: $0 argoproj/argo-cd" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
chartName=$(echo "$depName" | sed -e "s+^argoproj/++" -e "s+^argoproj-labs/++")
|
||||||
|
echo "Changed chart name is: $chartName"
|
||||||
|
echo "----------------------------------------"
|
||||||
|
|
||||||
|
parentDir="charts/${chartName}"
|
||||||
|
|
||||||
|
# Bump the chart version by one patch version
|
||||||
|
version=$(grep '^version:' "${parentDir}/Chart.yaml" | awk '{print $2}')
|
||||||
|
major=$(echo "${version}" | cut -d. -f1)
|
||||||
|
minor=$(echo "${version}" | cut -d. -f2)
|
||||||
|
patch=$(echo "${version}" | cut -d. -f3)
|
||||||
|
patch=$((patch + 1))
|
||||||
|
sed -i "s/^version:.*/version: ${major}.${minor}.${patch}/g" "${parentDir}/Chart.yaml"
|
||||||
|
|
||||||
|
# Add a changelog entry
|
||||||
|
appVersion=$(grep '^appVersion:' "${parentDir}/Chart.yaml" | awk '{print $2}')
|
||||||
|
sed -i -e '/^ artifacthub.io\/changes: |/,$ d' "${parentDir}/Chart.yaml"
|
||||||
|
{
|
||||||
|
echo " artifacthub.io/changes: |"
|
||||||
|
echo " - kind: changed"
|
||||||
|
echo " description: Bump ${chartName} to ${appVersion}"
|
||||||
|
} >> "${parentDir}/Chart.yaml"
|
||||||
|
cat "${parentDir}/Chart.yaml"
|
Loading…
Reference in a new issue