-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.json
75 lines (75 loc) · 2.76 KB
/
kubernetes.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"$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$",
"^ansible/services/(?:.+/)helm/(?:.+/)release.ya?ml$"
],
"pinDigests": true
},
"kubernetes": {
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:deployment|statefulSet|postgresCluster|minioTenant)\\.ya?ml$",
"^ansible/services/(?:.+/)kustomization/(?:.+/)component.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/(?:deployment|statefulSet|postgresCluster)\\.ya?ml$"
],
"matchStrings": [
"\\s+(?:imageName):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?",
"\\s+(?:image):\\s+&\\S+\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?",
"- name:.+_IMAGE\\n\\s*value:\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"],
"matchStrings": [
".+(?:_IMAGE):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["^flux/crds/.+\\.ya?ml$"],
"matchStrings": [
"# renovate: registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*)\\s.+k8up-(?<currentValue>.*?)/.+"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}",
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}