UNCLASSIFIED - NO CUI

Skip to content

fix vs for multiple tcp and http ports

Israel Morales requested to merge fix-vs into main

fixes virtualservice generation when values file contains multiple tcp or http ports.

before fix:

  spec:
    gateways:
    - istio-system/main
    hosts:
    - fluentd.app.dso.mil
    tcp:
    - match:
      - port: 24224
      route:
      - destination:
          host: fluentd
          port:
            number: 24224
    tcp:
    - match:
      - port: 5044
      route:
      - destination:
          host: fluentd
          port:
            number: 5044

after fix:

  spec:
    gateways:
    - istio-system/main
    hosts:
    - fluentd.app.dso.mil
    tcp:
    - match:
      - port: 24224
      route:
      - destination:
          host: fluentd
          port:
            number: 24224
    - match:
      - port: 5044
      route:
      - destination:
          host: fluentd
          port:
            number: 5044
Edited by Israel Morales

Merge request reports

Loading