{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "description": ["Preset for use with Kubernetes repositories"], "extends": ["github>thegeeklab/renovate-presets:base"], "flux": { "fileMatch": ["^flux/.+\\.ya?ml$"] }, "helm-values": { "fileMatch": [ "^flux/(?:.+/)overlays/(?:.+/)patches/(?:helmRelease)\\.ya?ml$" ], "pinDigests": true }, "kubernetes": { "fileMatch": [ "^flux/(?:.+/)overlays/(?:.+/)patches/(?:deployment|statefulSet|postgresCluster|minioTenant)\\.ya?ml$" ] }, "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", "extends": ["schedule:daily"], "matchDatasources": ["docker"], "matchPackagePatterns": ["^hetznercloud/hcloud-cloud-controller-manager"], "matchUpdateTypes": ["pin", "digest"], "automerge": true }, { "description": "Disable kubernetes-api datasource", "datasources": ["kubernetes-api"], "enabled": false } ], "customManagers": [ { "customType": "regex", "fileMatch": [ "^flux/(?:.+/)overlays/(?:.+/)patches/(?:postgresCluster)\\.ya?ml$" ], "matchStrings": [ "\\s+(?:imageName):\\s+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" ], "datasourceTemplate": "docker" }, { "customType": "regex", "fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"], "matchStrings": [ ".+(?:_IMAGE):\\s+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" ], "datasourceTemplate": "docker" }, { "customType": "regex", "fileMatch": ["^flux/crds/.+\\.ya?ml$"], "matchStrings": [ "# renovate: registryUrl=(?.*?) chart=(?.*)\\s.+k8up-(?.*?)/.+" ], "datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}", "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" } ] }