# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: exim
  namespace: default
spec:
  interval: 5m
  chart:
    spec:
      chart: app-template
      version: 3.1.0
      sourceRef:
        kind: HelmRepository
        name: bjws-charts
        namespace: flux-system

  values:
    controllers:
      main:

        containers:
          main:
            image:
              repository: docker.io/devture/exim-relay
              tag: 4.97.1-r0-0

            env:
              HOSTNAME: exim.cluster.lab

            envFrom:
              - secretRef:
                  name: exim-env

    service:
      app:
        controller: main

        ports:
          smtp:
            port: 8025