feat(cluster): use the native flux renovate integration

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2022-02-01 09:39:30 -05:00
1 parent 0af7c0029e
commit 6ed399d381
9 files changed
+16 -51

No files matched your search

+16 -8
View File
@@ -5,24 +5,32 @@
"dependencyDashboardTitle": "Renovate Dashboard",
"suppressNotifications": ["prIgnoreNotification"],
"rebaseWhen": "conflicted",
"flux": {
"fileMatch": [
"cluster/.+\\.ya?ml$"
],
"ignorePaths": [
"cluster/base/"
]
},
"helm-values": {
"fileMatch": [
"cluster/.+/helm-release\\.yaml$"
"cluster/.+/helm-release\\.ya?ml$"
]
},
"kubernetes": {
"fileMatch": [
"cluster/.+\\.yaml$"
"cluster/.+\\.ya?ml$"
],
"ignorePaths": [
"cluster/base/"
],
]
},
"regexManagers": [
// regexManager to read and process HelmRelease files
{
"fileMatch": [
"cluster/.+\\.yaml$"
"cluster/.+\\.ya?ml$"
],
"matchStrings": [
// helm releases
@@ -33,7 +41,7 @@
// regexManager to read and process cert-manager CRD's
{
"fileMatch": [
"cluster/crds/cert-manager/.+\\.yaml$"
"cluster/crds/cert-manager/.+\\.ya?ml$"
],
"matchStrings": [
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n.*\\/(?<currentValue>.*?)\\/"
@@ -43,13 +51,13 @@
// regexManager to read and process Traefik CRD's
{
"fileMatch": [
"cluster/crds/traefik/.+\\.yaml$"
"cluster/crds/traefik/.+\\.ya?ml$"
],
"matchStrings": [
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n *tag: v(?<currentValue>.*)\n"
],
"datasourceTemplate": "helm"
},
}
],
"packageRules": [
// setup datasources
@@ -64,7 +72,7 @@
"enabled": true,
"commitMessageTopic": "container image {{depName}}",
"commitMessageExtra": "to {{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}",
"matchUpdateTypes": ["major", "minor", "patch"],
"matchUpdateTypes": ["major", "minor", "patch"]
},
// add labels according to package and update types
{
-36
View File
@@ -1,36 +0,0 @@
---
name: Schedule - Renovate Helm Releases
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
jobs:
renovate-helm-releases:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 1
- name: Renovate Helm Releases
uses: k8s-at-home/renovate-helm-releases@v1
with:
cluster-path: "./cluster"
- name: Create pull request for renovatebot helm-release annotations
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: renovate-annotations
delete-branch: true
title: "chore(deps): update renovate annotations"
signoff: false
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit-message: "chore(deps): update renovate annotations"
body: |
Update HelmReleases inorder for Renovate to pick up new versions of Helm charts
labels: renovate/annotations
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://hajimari.io
chart: hajimari
version: 1.2.0
sourceRef:
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://kubernetes-sigs.github.io/metrics-server
chart: metrics-server
version: 3.7.0
sourceRef:
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://emberstack.github.io/helm-charts/
chart: reflector
version: 6.1.23
sourceRef:
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://stakater.github.io/stakater-charts
chart: reloader
version: v0.0.104
sourceRef:
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://helm.traefik.io/traefik
chart: traefik
version: 10.13.0
sourceRef:
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://charts.jetstack.io/
chart: cert-manager
version: v1.7.0
sourceRef:
@@ -8,7 +8,6 @@ spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://metallb.github.io/metallb
chart: metallb
version: 0.11.0
sourceRef: