Skip to content

Advanced templating for default tags #109

@kvlxj

Description

@kvlxj

Is your feature request related to a problem? Please describe.
We would like to inject a tag value depending on the namespace the pvc is in.

Describe the solution you'd like
Something like:

--default-tags={"gov:customer": "{{- if eq .Namespace "myns"-}} mycoolns {{- end -}}"}

I don't quite know the ramification and the complexity this might add in the code as I am no go expert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions