applicationset
applicationset copied to clipboard
Gitlab Generator: PathExists does not work for files
Current behavior
The filter example from the doc does not work for Gitlab SCM generator.
Only directories are supported as values for pathsExist
values.
Example:
pathsExist: [kubernetes]
works
pathsExist: [kubernetes/kustomization.yaml]
does not work
Expected behavior
Paths to files should match the filter.
Background
GitlabProvider RepoHasPath() uses List repository tree Gitlab API with option path. From the docs: The path inside repository. Used to get content of subdirectories.
Doesnt work for me either with specific files. Also it looks like labelMatch isn't working as well.