helmfile.yaml 1.95 KB
environments:
  default:
    values:
      - namespace: logging
        namePrefix: ""
        kibana:
          oauth:
            enabled: false
            authUrl: ""
            tokenUrl: ""
            userinfoUrl: ""
            clientId: ""
            clientSecret: ""
          virtualService:
            enabled: true
            jsonPatches: []
            strategicMergePatches: []
            gateways:
              - default/cluster-local-gateway
            vhost: kibana-logging.local

repositories:

---

releases:
  - name: fluentd-eck
    chart: ./charts/eck
    namespace: {{ .Values.namespace }}
    values:
      - set-common-values.yaml.gotmpl
    jsonPatches:
      {{- if .Values.kibana.virtualService.enabled }}
      - target:
          kind: VirtualService
          name: {{ .Values.namePrefix }}kibana
          namespace: {{ .Values.namespace }}
          version: v1beta3
          group: networking.istio.io
        patch:
          - op: replace
            path: /spec/http/0/route/0/destination/host
            value: {{ .Values.namePrefix }}kibana
      {{- end }}
      {{- if not (empty (.Values.kibana.virtualService.jsonPatches)) }}
      {{- .Values.kibana.virtualService.jsonPatches | toYaml | indent 6 }}
      {{- end }}
    strategicMergePatches:
      - apiVersion: networking.istio.io/v1alpha3
        kind: VirtualService
        metadata:
          name: {{ .Values.namePrefix }}kibana
          namespace: {{ .Values.namespace }}
      {{- if .Values.kibana.virtualService.enabled }}
        spec:
          hosts:
            - {{ .Values.kibana.virtualService.vhost }}
          gateways:
            {{- range $gateway_index, $gateway := .Values.kibana.virtualService.gateways }}
            - {{ $gateway | quote }}
            {{- end }}
      {{- else }}
        $patch: delete
      {{- end }}

  - name: fluentd
    chart: ./charts/fluentd
    namespace: {{ .Values.namespace }}
    values:
      - set-common-values.yaml.gotmpl