jk icon indicating copy to clipboard operation
jk copied to clipboard

Add array addressing in parameters path implementation

Open jaxxstorm opened this issue 5 years ago • 1 comments

It's possible to define a param as an object, for example:

ingress:
  publicHosts:
  - domain: foo.example.com
    paths:
    - path: /foo
      service: foo.ns.svc
      port: 80
    - path: /bar
      service: bar.ns.svc
      port: 90
  - domain: bar.example.com
    paths:
    - path: /foo
      service: foo.ns.svc
      port: 80
    - path: /bar
      service: bar.ns.svc
      port: 90

Is it possible to override these params using the -p option?

jaxxstorm avatar May 01 '19 20:05 jaxxstorm

Unfortunately, the path implementation to address fields doesn't support arrays right now. You would like to type -p ingress.publicHosts[0].paths[2].port 8080 but can't.

Good catch, added as feature request!

dlespiau avatar May 01 '19 20:05 dlespiau