split up renovate config
This commit is contained in:
parent
9f38a0944f
commit
d41450eda0
66
flux/olympus/apps/services/renovate/config.yaml
Normal file
66
flux/olympus/apps/services/renovate/config.yaml
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: renovate
|
||||||
|
namespace: services
|
||||||
|
data:
|
||||||
|
config.js: |-
|
||||||
|
module.exports = {
|
||||||
|
"binarySource": "install",
|
||||||
|
"repositories": ["v/infrastructure"],
|
||||||
|
"flux": {
|
||||||
|
"fileMatch": ["flux/.+\\.ya?ml$"]
|
||||||
|
},
|
||||||
|
"helm-values": {
|
||||||
|
"fileMatch": ["flux/.+\\.ya?ml$"]
|
||||||
|
},
|
||||||
|
"kubernetes": {
|
||||||
|
"fileMatch": ["flux/.+\\.ya?ml$"]
|
||||||
|
},
|
||||||
|
"hostRules": [
|
||||||
|
{
|
||||||
|
"hostType": "docker",
|
||||||
|
"matchHost": "ghcr.io",
|
||||||
|
"username": "NULLx76",
|
||||||
|
"password": process.env.GITHUB_COM_TOKEN
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"automerge": true,
|
||||||
|
"automergeType": "branch",
|
||||||
|
"matchPackageNames": [
|
||||||
|
"renovate/renovate"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// ignore individual fluxcd images
|
||||||
|
"ignoreDeps": [
|
||||||
|
"ghcr.io/fluxcd/helm-controller",
|
||||||
|
"ghcr.io/fluxcd/image-automation-controller",
|
||||||
|
"ghcr.io/fluxcd/image-reflector-controller",
|
||||||
|
"ghcr.io/fluxcd/kustomize-controller",
|
||||||
|
"ghcr.io/fluxcd/notification-controller",
|
||||||
|
"ghcr.io/fluxcd/source-controller"
|
||||||
|
],
|
||||||
|
"regexManagers": [
|
||||||
|
{
|
||||||
|
"fileMatch": [
|
||||||
|
"flux/cluster/crds/traefik/.+\\.ya?ml$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n *tag: v(?<currentValue>.*)\n"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "helm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileMatch": [
|
||||||
|
"flux/cluster/crds/external-secrets/.+\\.ya?ml$"
|
||||||
|
],
|
||||||
|
"matchStrings": [
|
||||||
|
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n *tag: helm-chart-(?<currentValue>.*)\n"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "helm"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
};
|
|
@ -2,7 +2,7 @@
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: renovate-infrastructure
|
name: renovate
|
||||||
namespace: services
|
namespace: services
|
||||||
spec:
|
spec:
|
||||||
schedule: "@hourly"
|
schedule: "@hourly"
|
||||||
|
@ -14,7 +14,7 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: renovate-config
|
name: renovate
|
||||||
- name: work-volume
|
- name: work-volume
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
|
@ -44,70 +44,3 @@ spec:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: renovate
|
name: renovate
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: renovate-config
|
|
||||||
namespace: services
|
|
||||||
data:
|
|
||||||
config.js: |-
|
|
||||||
module.exports = {
|
|
||||||
"binarySource": "install",
|
|
||||||
"repositories": ["v/infrastructure"],
|
|
||||||
"flux": {
|
|
||||||
"fileMatch": ["flux/.+\\.ya?ml$"]
|
|
||||||
},
|
|
||||||
"helm-values": {
|
|
||||||
"fileMatch": ["flux/.+\\.ya?ml$"]
|
|
||||||
},
|
|
||||||
"kubernetes": {
|
|
||||||
"fileMatch": ["flux/.+\\.ya?ml$"]
|
|
||||||
},
|
|
||||||
"hostRules": [
|
|
||||||
{
|
|
||||||
"hostType": "docker",
|
|
||||||
"matchHost": "ghcr.io",
|
|
||||||
"username": "NULLx76",
|
|
||||||
"password": process.env.GITHUB_COM_TOKEN
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"automerge": true,
|
|
||||||
"automergeType": "branch",
|
|
||||||
"matchPackageNames": [
|
|
||||||
"renovate/renovate"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
// ignore individual fluxcd images
|
|
||||||
"ignoreDeps": [
|
|
||||||
"ghcr.io/fluxcd/helm-controller",
|
|
||||||
"ghcr.io/fluxcd/image-automation-controller",
|
|
||||||
"ghcr.io/fluxcd/image-reflector-controller",
|
|
||||||
"ghcr.io/fluxcd/kustomize-controller",
|
|
||||||
"ghcr.io/fluxcd/notification-controller",
|
|
||||||
"ghcr.io/fluxcd/source-controller"
|
|
||||||
],
|
|
||||||
"regexManagers": [
|
|
||||||
{
|
|
||||||
"fileMatch": [
|
|
||||||
"flux/cluster/crds/traefik/.+\\.ya?ml$"
|
|
||||||
],
|
|
||||||
"matchStrings": [
|
|
||||||
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n *tag: v(?<currentValue>.*)\n"
|
|
||||||
],
|
|
||||||
"datasourceTemplate": "helm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fileMatch": [
|
|
||||||
"flux/cluster/crds/external-secrets/.+\\.ya?ml$"
|
|
||||||
],
|
|
||||||
"matchStrings": [
|
|
||||||
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n *tag: helm-chart-(?<currentValue>.*)\n"
|
|
||||||
],
|
|
||||||
"datasourceTemplate": "helm"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
Loading…
Reference in a new issue