Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

erroneously including invalid aliases when the jq expression returns "null" but there is valid string data from the expression #36

@rocktavious

Description

@rocktavious
"Aliases": [
            "k8s:yellow-app1b-contact-extractor-deployment-yellow-app1b-ml-consumers",
            "k8s:null"
        ],

this should probably not happen and we should just drop the value but its not a simple fix because it was a valid parse of the JQ expression and returned a non-null string value because of the nature of it being a JQ string expression filter.

> echo '{}' | jq '"k8s:\(.metadata.name)"'
"k8s:null"    <- valid non-null string value which we propagate because its valid string data
> echo '{}' | jq '.metadata.name'  
null          <- json null value which we detect as null

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions