---
version: 1
kind: component

requires:
  - helm

parameters:
  - name: hub.componentName
    env: COMPONENT_NAME

  - name: dns.domain
    env: DOMAIN_NAME

  - name: component.ingress.namespace
    value: kube-system
    env: NAMESPACE

  - name: component.externalDns
    parameters:
      - name: helm
        parameters:
          - name: repo
            value: https://charts.bitnami.com/bitnami
            env: HELM_REPO
          - name: chart
            env: HELM_CHART
            value: "external-dns"
          - name: version
            value: 6.5.1
            env: CHART_VERSION
          - name: valuesFile
            value: values.yaml
            env: CHART_VALUES_FILE
          - name: syncIntervalSeconds
            value: 30
            env: SYNC_INTERVAL
          - name: syncPolicy
            value: sync

templates:
  files:
    - "*.template"
