Release version
7.0.0-alpha.2.0.0
Describe the bug
Empty configuration in extractor
Previously, if we wanted to skip extracting all resources of a type, we had to put a random placeholder value (e.g. ignore). We now support the more intuitive [].
This seems to not be working for namedValues, in my tests ALL named values are being extracted when using the new [] placeholder and section names
Below is configuration.extractor.yaml:
apis:
- containerAppDummy
backends:
- containerappdummyBackend
diagnostics: []
loggers: []
namedValues: []
products:
- containerappdummy
subscriptions:
- containerappdummy
tags: []
policyFragments: []
groups: []
Even though namedValues has an empty [] like the other properties, ALL Named Values are being extracted as can be seen in the pipeline screenshot below:
The other properties like tags and diagnostics are in contrast being correctly ignored by the extractor:
Expected behavior
If configuration.extractor.yaml has namedValues: [] then NO Named Values should be extracted.
Actual behavior
When configuration.extractor.yaml has namedValues: [], ALL Named Values are being extracted.
Reproduction Steps
- In configuration.extractor.yaml add
namedValues: []
- Run pipeline
- All Named Values are extracted instead of none.