Skip to content

[BUG] All namedValues are being extracted when using namedValues: [] in configuration.extractor.yaml instead of none being extracted. #814

Description

@JProvAnt

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:

Image

The other properties like tags and diagnostics are in contrast being correctly ignored by the extractor:

Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions