Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Renovate

on:
workflow_dispatch:
inputs:
dryRun:
description: Dry run
type: boolean
default: false
required: true
logLevel:
description: Log level
type: choice
default: info
options:
- info
- debug
required: true
push:
branches:
- main
paths:
- .renovate/**.json
schedule:
- cron: 0 * * * *

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
- name: Run renovate
uses: renovatebot/github-action@v43.0.18
env:
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
RENOVATE_DRY_RUN: ${{ inputs.dryRun }}
RENOVATE_ONBOARDING: false
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_REQUIRE_CONFIG: optional
with:
configurationFile: .renovate/config.json
token: ${{ secrets.RENOVATE_TOKEN }}
25 changes: 25 additions & 0 deletions .renovate/commit-message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"packageRules": [
{
"matchPackagePatterns": ["*"],
"semanticCommitType": "build"
},
{
"matchDatasources": ["docker"],
"semanticCommitScope": "docker",
"commitMessageTopic": "{{{replace '.+/' '' depName}}}"
},
{
"matchDatasources": ["github-actions", "github-releases", "github-tags"],
"semanticCommitScope": "github",
"commitMessageTopic": "{{depName}}"
},
{
"matchDatasources": ["helm"],
"semanticCommitScope": "helm",
"commitMessageTopic": "{{depName}}"
}
]
}
13 changes: 13 additions & 0 deletions .renovate/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": [
"config:recommended",
"docker:enableMajor",
":disableRateLimiting",
":disableDependencyDashboard",
":semanticCommits",
"github>ocf/kubernetes//.renovate/commit-message",
"github>ocf/kubernetes//.renovate/manager",
"github>ocf/kubernetes//.renovate/pr-label"
],
"prBodyTemplate": "{{{table}}}{{{notes}}}{{{changelogs}}}{{{controls}}}"
}
42 changes: 42 additions & 0 deletions .renovate/manager.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"customManagers": [
{
"customType": "regex",
"description": "Process comments",
"managerFilePatterns": ["/^apps/.+\\.py$/"],
"matchStrings": [
"# renovate source=(?<datasource>\\S+) name=(?<depName>\\S+)\n[^\n]+:\\s*\"(?<currentValue>[^:\"]+)\"",
"# renovate source=(?<datasource>\\S+) name=(?<depName>\\S+)\n[^\n]+:\\s*\"\\S+:(?<currentValue>[^:\"]+)\""
]
},
{
"customType": "regex",
"description": "Process helm in version.toml",
"managerFilePatterns": ["/^apps/versions\\.toml$/"],
"matchStrings": [
"\\[(?<depName>[^\\]]+)\\]\nversion\\s*=\\s*\"(?<currentValue>[^\"]+)\"\nhelm\\s*=\\s*\"(?<registryUrl>http[^\"]+)\"(?:\n\n|\n$|$)",
"\\[[^\\]]+\\]\nversion\\s*=\\s*\"(?<currentValue>[^\"]+)\"\nhelm\\s*=\\s*\"(?<registryUrl>http[^\"]+)\"\nchart\\s*=\\s*\"(?<depName>[^\"]+)\""
],
"datasourceTemplate": "helm"
},
{
"customType": "regex",
"description": "Process docker in version.toml",
"managerFilePatterns": ["/^apps/versions\\.toml$/"],
"matchStrings": [
"\\[[^\\]]+\\]\nversion\\s*=\\s*\"(?<currentValue>[^\"]+)\"\nhelm\\s*=\\s*\"oci://(?<depName>[^\"]+)\""
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"description": "Process github in version.toml",
"managerFilePatterns": ["/^apps/versions\\.toml$/"],
"matchStrings": [
"\\[[^\\]]+\\]\nversion\\s*=\\s*\"(?<currentValue>[^\"]+)\"\ngithub\\s*=\\s*\"https:\\/\\/github.com\\/(?<depName>[^\\/]+\/[^\\/\"\\.]+)[^\"]*\"",
"\\[[^\\]]+\\]\nversion\\s*=\\s*\"(?<currentValue>[^\"]+)\"\nrepo_url\\s*=\\s*\"https:\\/\\/github.com\\/(?<depName>[^\\/]+\/[^\\/\"\\.]+)[^\"]*\""
],
"datasourceTemplate": "github-releases"
}
]
}
28 changes: 28 additions & 0 deletions .renovate/pr-label.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"packageRules": [
{
"matchUpdateTypes": ["major"],
"addLabels": ["version/major"]
},
{
"matchUpdateTypes": ["minor"],
"addLabels": ["version/minor"]
},
{
"matchUpdateTypes": ["patch"],
"addLabels": ["version/patch"]
},
{
"matchDatasources": ["docker"],
"addLabels": ["renovate/docker"]
},
{
"matchDatasources": ["github-actions", "github-releases", "github-tags"],
"addLabels": ["renovate/github"]
},
{
"matchDatasources": ["helm"],
"addLabels": ["renovate/helm"]
}
]
}
2 changes: 1 addition & 1 deletion apps/keycloak.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def oidc_client(
"changedSyncPeriod": ["86400"],
"allowKerberosAuthentication": ["true"],
"kerberosRealm": ["OCF.BERKELEY.EDU"],
"serverPrincipal": ["HTTP/lb-81.ocf.berkeley.edu@OCF.BERKELEY.EDU"],
"serverPrincipal": ["HTTP/idm.ocf.berkeley.edu@OCF.BERKELEY.EDU"],
"keyTab": ["/vault/secrets/keytab"],
"debug": ["true"],
"useKerberosForPasswordAuthentication": ["true"],
Expand Down
8 changes: 4 additions & 4 deletions apps/rook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

name = "rook"
values = {
"image": {
"tag": "v1.17.7",
},
# <https://rook.io/docs/rook/v1.10/CRDs/Cluster/ceph-cluster-crd/?h=stack#network-configuration-settings>
"network": {
"dualStack": True,
Expand Down Expand Up @@ -77,7 +74,10 @@ def objects():
"annotations": {"argocd.argoproj.io/compare-options": "IgnoreExtraneous"},
},
"spec": {
"cephVersion": {"image": "quay.io/ceph/ceph:v19.2.3"},
"cephVersion": {
# renovate source=docker name=quay.io/ceph/ceph
"image": "quay.io/ceph/ceph:v19.2.3"
},
"dataDirHostPath": "/var/lib/rook",
"mon": {"count": 3, "allowMultiplePerNode": False},
# Re-enable this when the issue that blocks it is merged and available in a released Ceph version.
Expand Down
2 changes: 2 additions & 0 deletions apps/velero.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"initContainers": [
{
"name": "velero-plugin-for-csi",
# renovate source=docker name=docker.io/velero/velero-plugin-for-csi
"image": "velero/velero-plugin-for-csi:v0.7.0",
"imagePullPolicy": "IfNotPresent",
"volumeMounts": [
Expand All @@ -20,6 +21,7 @@
{
"name": "velero-plugin-for-aws",
# for S3-compatible API
# renovate source=docker name=docker.io/velero/velero-plugin-for-aws
"image": "velero/velero-plugin-for-aws:v1.9.0",
"imagePullPolicy": "IfNotPresent",
"volumeMounts": [
Expand Down
Loading