Globs do not match for manifest projects
Summary
Out of the 4 following patterns 2 do not work:
gitops:
manifest_projects:
- id: gitlab-examples/ops/configure-product-walkthrough
default_namespace: gitlab-agent
paths:
- glob: 'manifest.yaml'
- glob: 'simple-path/manifest.yaml'
- glob: 'wildcard-path/**/*.yaml'
- glob: 'partially-wildcard-path/*.yaml'
- glob: 'manifest.yaml'
✅ - glob: 'simple-path/manifest.yaml'
❌ - glob: 'wildcard-path/**/*.yaml'
✅ - glob: 'partially-wildcard-path/*.yaml'
❌
Steps to reproduce
- Create a project
- Add the above agent config with the correct
manifest_projects.id
- Add a
ConfigMap
with differentmetadata.name
under- 'manifest.yaml'
- 'simple-path/manifest.yaml'
- 'wildcard-path/manifest.yaml'
- 'partially-wildcard-path/manifest.yaml'
- Register and install agent
- Check the configmaps
Example Project
What is the current bug behavior?
Only 2 ConfigMaps are synchromized
- glob: 'manifest.yaml'
✅ - glob: 'simple-path/manifest.yaml'
❌ - glob: 'wildcard-path/**/*.yaml'
✅ - glob: 'partially-wildcard-path/*.yaml'
❌
What is the expected correct behavior?
4 ConfigMaps should be synced