From 29004a9573c0316b9ade1c54aebab2dbc6178292 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 16 Dec 2022 22:14:33 +0100 Subject: [PATCH] feat: add kubernetes preset --- kubernetes.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 kubernetes.json diff --git a/kubernetes.json b/kubernetes.json new file mode 100644 index 0000000..8d7a0d7 --- /dev/null +++ b/kubernetes.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": ["Preset for use with kubernetes repositories"], + "extends": ["github>thegeeklab/renovate-presets:base"], + "flux": { + "fileMatch": ["flux/.+\\.yaml$"] + }, + "packageRules": [ + { + "description": "Set semantic commit scope for Docker digests", + "groupName": "docker digests", + "matchDatasources": ["docker"], + "matchUpdateTypes": ["pin", "digest"], + "semanticCommitScope": "docker" + }, + { + "description": "Automerge digest updates (usually security patches)", + "groupName": "docker digests", + "matchDatasources": ["docker"], + "matchPackagePatterns": ["^hetznercloud/hcloud-cloud-controller-manager"], + "matchUpdateTypes": ["pin", "digest"], + "automerge": true + } + ], + "regexManagers": [ + { + "fileMatch": [ + "^flux/.+\\.yaml$", + "^ansible/services/.+/templates/.+\\.yaml.j2$" + ], + "matchStrings": [ + "# renovate:\\n\\s+image:\\s+\"?'?(?[^:\\s]+):(?[^\"']+)\"?'?" + ], + "datasourceTemplate": "docker" + } + ] +}