Identifying Helm OCI charts in skaffold.yaml using regex customManager #28488
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitHub Please tell us more about your question or problemWhen using apiVersion: skaffold/v4beta10
kind: Config
deploy:
helm:
releases:
- name: gha-runner-scale-set-controller
remoteChart: oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
valuesFiles:
- values-arc.yaml
namespace: gha-controller
createNamespace: true
version: 0.9.0
upgradeOnChange: true
- name: gha-runner-scale-set
remoteChart: oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
valuesFiles:
- values-runner-scale-set.yaml
namespace: gha-runners
createNamespace: true
version: 0.9.0
upgradeOnChange: true Here is the regex customManager config: {
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^skaffold.yaml$"],
"matchStrings": [
"\\s+remoteChart:\\s+(?<repositoryURL>oci:\/\/(?<registryHost>.*?)\/.*)\/(?<depName>.*?)\\s+(.|\\s)*?version:\\s+('|\")?(?<currentValue>.*?)('|\")?\\s+"
],
"datasourceTemplate": "helm"
}
]
} I tried multiple regex match strings (some are below) and also tried both
I failed to find any appropriate documentation around this. I would appreciate any pointers regarding this. Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Pick the one way which you think/hope should work. What does the |
Beta Was this translation helpful? Give feedback.
-
You have to use |
Beta Was this translation helpful? Give feedback.
If you do not want to overwrite the registry where non scoped images are looked up e.g.
renovatebot/renovate
you do not have to specify aregistryUrl
Simply capture
depName
orpackageName
( if you have setdepName
to something custom ) so that the value isghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
.