---
version: 1
kind: component

parameters:
  - name: dns.domain
    env: DOMAIN_NAME

  - name: component.anthosServiceMesh.revision
    env: ISTIO_REVISION

  - name: component.anthosIngressGateway
    parameters:
      - name: name
        value: default-gateway
        env: GATEWAY_NAME
      - name: namespace
        value: istio-ingress
        env: INGRESS_NAMESPACE

outputs:
  - name: component.anthosIngressGateway.ip
    fromTfVar: ingress_gateway_ip

templates:
  files:
    - "resources/*.template"
