Open mishanchus opened 1 year ago
Hi, I just had a quick look and what are considered labels in case of Gitlab are project topics rather than actual labels (used on issues and PRs)
Hello @jjsiv, Yes, you are right. Using topics instead of labels helped.
Gitlab labels
are deprecated and superseded by topics
Checklist:
argocd version
.Describe the bug
The documentation says that when using the SCM provider generator, several parameters are generated for use within the ApplicationSet resource template. Including labels:
I am using gitlab. I have labeled the repositories and the group and these labels can be seen in /api/v4/projects/.../labels. In ApplicationSet, I'm trying to use these labels, but it's giving an error that index is out of range.
An example of an error from the applicationsetcontroller logs:
Here you can see that there are no labels generated for any repository - just an empty space after "labels:".
To Reproduce
Use ApplicationSet with scmProvider generator and Gitlab. There should be labels on repositories in Gitlab. And you need to add
.labels
to the template part of the ApplicationSet.Expected behavior
Labels are generated by ApplicationSet and can be used in templates.
Screenshots
Version
Logs