Platform: Gitlab, Manager: Kustomize, Datasource: gitlab-tags, remote kustomize base and hostRules auth ? #7951
Replies: 6 comments
-
I believe it must be a bug in kustomize:
Its trying to do "lookupName": "https://gitlab.example.com/engineering/cd" , but actual kustomize base is located in nested group https://gitlab.example.com/engineering/cd/k8s/kustomize/podinfo Maybe this #7783 should not be closed, if its reproduced by renovate team... |
Beta Was this translation helpful? Give feedback.
-
@lukasmrtvy #7783 is a duplicate of #5471 |
Beta Was this translation helpful? Give feedback.
-
This also needs #7877, that way renovate can properly detect the gitlab urls |
Beta Was this translation helpful? Give feedback.
-
As workaround can you try the following regex manager? {
"regexManagers": [
{
"fileMatch": ["(^|/)kustomization\\.yaml$"],
"matchStrings": ["\\s- (?<registryUrl>https:\\/\\/[^/]+)\\/(?<depName>.+)\\.git\\?ref=(?<currentValue>.*?)\\s"],
"datasourceTemplate": "gitlab-tags"
}
]
} |
Beta Was this translation helpful? Give feedback.
-
@viceice |
Beta Was this translation helpful? Give feedback.
-
You would need a package rule to disable the default git-tags behavior for that package, then renovate won't try to lookup. |
Beta Was this translation helpful? Give feedback.
-
Which Renovate are you using?
Renovate Open Source CLI
Which platform are you using?
GitLab self-hosted
Have you checked the logs? Don't forget to include them if relevant
What would you like to do?
I am not sure, how to setup Kustomize with gitlab-tabs for remote bases as packageRule with hostRules auth support.
Do I need to use hostRules ? Or gitlab-tags are fetched via Renovate user and RENOVATE_TOKEN via API ? Thanks
https://gitlab.example.com/engineering/environments/ondemand/renovate.json
config.js
https://gitlab.example.com/engineering/environments/ondemand/kustomization.yaml
https://gitlab.example.com/engineering/cd/k8s/kustomize/podinfo/kustomization.yaml
Beta Was this translation helpful? Give feedback.
All reactions