Skip to content

Renovate

Renovate scans the onboarded Gitea repositories for outdated dependencies and opens pull requests for them as the renovate-bot user. Why it is self-hosted and how its pull requests become Taskbase work is decided in the Renovate ADR. When an upgrade of an operator with CRDs breaks a cluster, recovery follows the ops runbook.

What runs

Item Value
Component components/renovate/ (flat: namespace, ExternalSecret, HelmRepository, HelmRelease)
Cluster wiring cluster/hetzner-mgmt/renovate/kustomization.yaml (Flux Kustomization renovate, after external-secrets-config)
Chart renovate from https://docs.renovatebot.com/helm-charts (renovatebot/helm-charts)
Workload CronJob renovate in the renovate namespace
Schedule hourly (0 * * * *), concurrencyPolicy: Forbid, so a long run never overlaps the next
Resources requests 250m / 1536Mi, limits 1 CPU / 3Gi (#2402). A run takes about one core for 15–25 minutes; its memory is 1.4 Gi at the median and 2.1 Gi at most. Without requests, the scheduler counted none of this on worker-1
Placement prefers a worker without a CI runner pod (soft pod anti-affinity on app=gitea-act-runner, #2505); see CI runners, CPU and core services

The CronJob only decides how often Renovate looks. When pull requests actually open is set by each repository's own schedule in its renovate.json.

Configuration

The global configuration is split between the component and the cluster:

  • Component (helmrelease.yaml, renovate.config): platform: gitea, autodiscover: true, onboarding: false, and requireConfig: required. A repository is only processed when it has its own renovate.json; Renovate never opens onboarding pull requests.
  • Cluster (patch in cluster/hetzner-mgmt/renovate/kustomization.yaml): RENOVATE_ENDPOINT (the Gitea API, https://gitea.prod.skatzi.com/api/v1) and RENOVATE_AUTODISCOVER_FILTER, the comma-separated list of onboarded repositories. Repositories are added one at a time in the order of ADR §14; see Rollout status.

Renovate ran in dryRun: full against Skatzi/taskbase until the rollout (#101) removed it; it now opens branches and pull requests.

Shared preset

Every onboarded repository has a renovate.json that only extends the shared preset default.json in Skatzi/renovate-config:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["local>Skatzi/renovate-config"]
}

The preset carries the classes of ADR §5 and the settings of §13. Each pull request gets exactly one upgrade/<class> label. The class rules are ordered packageRules that set labels, so a later rule replaces the label of an earlier one; addLabels would pile up several class labels on one pull request.

Class Rule in the preset Release age Grouping Approval
upgrade/trivial patch, minor, digest or pin of a ≥1.0 version 3 days group:allNonMajor, Mondays 00:00–03:59; every other class opens at any time —
upgrade/standard patch, digest or pin of a 0.x version; any non-major in Skatzi/platform, until trivial automerge is turned on there 3 days none —
upgrade/breaking major, or minor of a 0.x version; major or minor of external-secrets, cert-manager or kube-prometheus-stack / prometheus-operator, cluster add-ons that bring CRDs (CloudNativePG, Flux, Cilium and MetalLB bring CRDs too and are stateful or core) 14 days none —
upgrade/stateful Gitea, PostgreSQL and MongoDB images, CloudNativePG, the Keycloak server (keycloak, quay.io/keycloak/keycloak; not client libraries such as keycloak-js), Mattermost, Harbor, OpenBao, Rocket.Chat. Not in docker-compose*.yml, .gitea/workflows/** or components/agent-runner/**: dev and CI databases and the OpenBao CLI store nothing, so they take the class of their update type 14 days; none for a release without a timestamp (timestamp-optional, §13), which opens its pull request at once one group per app (gitea, cloudnative-pg, mattermost, harbor, openbao, rocketchat): chart and image in one pull request — (the component's backup gate guards it, ADR §11)
upgrade/core Flux (fluxcd/* included), Cilium, hcloud CSI, MetalLB 14 days none —

Also in the preset:

  • Limits: prHourlyLimit: 2, prConcurrentLimit: 5.
  • Docker images without a release timestamp: quay.io and Docker Hub library images (python, node, postgres) have none, so under Renovate's default they never meet the release age. The preset sets minimumReleaseAgeBehaviour: timestamp-optional for the docker datasource: they open a pull request with no wait, and images that have a timestamp keep it (§13).
  • Security: osvVulnerabilityAlerts is on. Security pull requests keep their class but skip the schedule and the release age (Renovate's vulnerabilityAlerts defaults).
  • Evidence: Merge Confidence badges only (mergeConfidence:age-confidence-badges), changelogs in the pull request (fetchChangeLogs: pr, using the github.com token), and the Dependency Dashboard issue.
  • Taskbase line: prBodyNotes adds one <!-- taskbase:dep {...} --> line per update, including the release time as released_at (ADR §4); a grouped pull request gets one line per upgrade.
  • Managers: the flux and kubernetes managers read the YAML under components/ and cluster/. A bare tag, such as Gitea's image.tag, needs a comment on the line above it so the preset's regex manager finds it:
image:
  # renovate: datasource=docker depName=gitea/gitea
  tag: "1.25.5"

After depName, the comment takes optional versioning=, registryUrl= and extractVersion=, in that order. The key on the next line may contain . and /, as in a label such as app.kubernetes.io/version.

  • Out of scope (ADR §14): the terraform manager is off (Terraform providers, and Talos and Kubernetes, which Terraform applies); harbor.prod.skatzi.com/skatzi/* images, siderolabs and registry.k8s.io/kube-* are disabled. The §14 exception for consumer repositories (eloro/*), which lets them update their pins of our own images, still needs its preset change in Skatzi/renovate-config. The kubernetes manager's apiVersion updates (kubernetes-api datasource) are off too: whether a cluster serves a new API version depends on the installed operator, not on a release.
  • Unused components (Skatzi/platform's own renovate.json): no updates for the components no cluster runs: rocketchat and nightgain (commented out of cluster/hetzner-mgmt). Remove a path there when its component is deployed again.

Coverage of Skatzi/platform

What Where How Renovate sees it
Helm charts with a HelmRepository source (20) HelmReleases under components/ flux manager
Images in plain manifests and in chart values with an image: key components/ kubernetes manager
Gitea image image.tag in components/gitea/base/helmrelease.yaml # renovate: datasource=docker comment
PostgreSQL image of a CNPG Cluster spec.imageName in the Cluster's manifest, where it is pinned the custom regex manager in renovate.json (#3212); minors only, no majors. The kubernetes manager reads only image: keys, and a Cluster without imageName in Git is not seen at all (CNPG: PostgreSQL image). The Cluster's image gate carries the same tag in target_version under a # renovate: comment, so the same pull request moves it (image gates). Other repositories need the same manager: move it into the shared preset once Skatzi/renovate-config has a Taskbase project or a person makes the change
agent-runner chart (= runner version) Flux variable agent_runner_version in cluster/hetzner-mgmt/agent-runners/kustomization.yaml # renovate: comment reading the Skatzi/agent-runner releases on Gitea (datasource=gitea-releases, v stripped); no Harbor credentials needed. Taskbase's runner target version (runner-settings) does not apply to container runners.
Gateway API CRDs app.kubernetes.io/version label in components/gateway-system/crds/kustomization.yaml # renovate: datasource=github-releases comment. Renovate bumps only the label: whoever upgrades it re-vendors standard-install.yaml from the release of that version in the same pull request.
Tool versions in our image builds ARG <NAME>=<version> in container-images/*/Dockerfile (today ci-base) # renovate: comment and the custom regex manager in renovate.json; the merged update rebuilds the image
Our own images (harbor.prod.skatzi.com/skatzi/*) components/ not covered: their release CI writes the tags
Talos and Kubernetes versions terraform/ not covered: the terraform manager is off (ADR §14)

Automerge

The preset sets platformAutomerge: true but no automerge, so nothing merges on its own. Every class rule except trivial sets automerge: false. A repository turns on trivial automerge by adding "automerge": true to its renovate.json, and only once its default branch requires status checks (task #1170). Skatzi/platform keeps it off, and the preset's platform standard rule stays. Its PR CI (CI Manifests / render-and-validate) renders and schema-checks the manifests, but main does not require it as a status check yet (#1170), and a render that passes does not show that a new chart or image runs. Drop the rule and turn automerge on once #1170 lists the required check for Skatzi/platform.

Rollout status

Repository renovate.json In RENOVATE_AUTODISCOVER_FILTER trivial automerge
Skatzi/taskbase merged: Skatzi/taskbase#529 yes off: no required status checks yet (#1170)
Skatzi/agent-runner merged: Skatzi/agent-runner#214 yes off: no required status checks yet (#1170)
Skatzi/platform yes (task #1272) yes (task #1272) off: no required status checks yet (#1170)
Skatzi/emiliero Skatzi/emiliero#16 yes off: no required status checks yet (#1170)
Emmalia/Helloweekly Emmalia/Helloweekly#34 yes off: no required status checks yet (#1170)
eloro/* (the webshop platform and every shop repository) eloro/webshop-platform: eloro/webshop-platform#1; each new shop repository brings its own from the template yes, as the pattern eloro/* off: no required status checks yet (#1170)

Kodexet repositories are archived and not onboarded.

A repository outside the Skatzi organization also needs renovate-bot as a collaborator with write access and its own upgrade/* labels (the Skatzi organization has them as organization labels). Emmalia/Helloweekly got both on 2026-10-20.

eloro is onboarded as a whole organization (owner, 2026-10-24), so a new repository there is picked up without a change here, as long as it has a renovate.json, renovate-bot can write to it and it has the upgrade/* labels. eloro/webshop-platform has repository labels; organization labels (as in Skatzi) would cover future repositories too.

The preset was merged in Skatzi/renovate-config#1.

To onboard a repository: add its renovate.json, then append it to RENOVATE_AUTODISCOVER_FILTER in cluster/hetzner-mgmt/renovate/kustomization.yaml. Merge the preset first, then each repository's renovate.json: a renovate.json merged before its preset makes Renovate fail on that repository with a config error. renovate-bot is a collaborator on Skatzi/renovate-config, so it can read the preset.

Secrets

The credentials are stored in OpenBao (mount clusters) and synced by the ExternalSecret renovate-env into the Secret of the same name, which the CronJob loads as environment variables (envFrom):

Environment variable OpenBao key Property Content
RENOVATE_TOKEN hetzner-mgmt/renovate/gitea token PAT of the renovate-bot Gitea user (write:repository, read:user, write:issue, read:organization)
GITHUB_COM_TOKEN hetzner-mgmt/renovate/github token github.com token without scopes, for changelogs and GitHub-hosted datasources
RENOVATE_HOST_RULES hetzner-mgmt/harbor/pull-secret username, password one host rule, hostType: docker on harbor.prod.skatzi.com, with the read-only Harbor pull robot

How Renovate authenticates to Harbor. Harbor project skatzi is private, and an anonymous tag list gets a 401. Renovate's docker datasource logs in with the read-only pull robot that harbor-pull-secret uses, from the same OpenBao key, so it can list the tags of harbor.prod.skatzi.com/skatzi/* images but cannot push. Renovate reads RENOVATE_HOST_RULES as a JSON list of hostRules. The ExternalSecret templates it, with toJson quoting the robot's name and password. Its template replaces the synced keys (mergePolicy: Replace, the default), so all three variables are in the template.

renovate-bot has Write (not Admin) on each onboarded repository. Rotating a token, or the pull robot, means replacing it in OpenBao; the next sync (at most an hour) and the next CronJob run pick it up.

Checking a run

kubectl --context admin@mgmt-cluster -n renovate get cronjob,jobs
kubectl --context admin@mgmt-cluster -n renovate logs job/<job-name>

A healthy run logs the repositories it found (only those in the filter) and, per repository, the branches and pull requests it created or updated. The pull requests carry an upgrade/<class> label and a taskbase:dep line per update. To start a run without waiting for the hour: kubectl --context admin@mgmt-cluster -n renovate create job --from=cronjob/renovate renovate-manual.