Skip to content

How to process gitlab-like reference tags with yq? #2131

Closed
@sigurdblueface

Description

@sigurdblueface

I have a following yaml file, utilizing format somewhat similar to reference tags in gitlab.

ports:
  - name: http
    port: 8080
    hosts:
      - hostname: "!reference[.placeholders, ingressHostname]"
...
placeholders:
  ingressHostname: xyz.com

My goal is to substitute these reference tags with values from placeholders like that.

ports:
  - name: http
    port: 8080
    hosts:
      - hostname: xyz.com

Couldn't find something on this in documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions