zalando / skipper

An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress
https://opensource.zalando.com/skipper/
Other
3.05k stars 345 forks source link

config: add yaml flag #3069

Closed AlexanderYastrebov closed 1 month ago

AlexanderYastrebov commented 1 month ago

YAML flag parses (preferably flow-style) YAML value from the command line or unmarshals object yaml value from the yaml config file.

Example value:

bin/skipper -foo-flag='{foo: hello, bar: [world, "1"], baz: 2, qux: {baz: 3}}'

and equivalent branch in config yaml:

foo-flag:
  foo: hello
  bar:
    - world
    - "1"
  baz: 2
  qux:
    baz: 3

This will be useful for #2104

It is also a better alternative to manual parsing of micro-syntax like e.g. implemented in #2888

szuecs commented 1 month ago

:+1:

AlexanderYastrebov commented 1 month ago

:+1: