apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: bikerwitch
  namespace: argocd
spec:
  destination:
    namespace: bikerwitch
    server: https://kubernetes.default.svc
  project: default
  source:
    helm:
      parameters:
      - name: service.type
        value: LoadBalancer
      - name: persistence.enabled
        value: "true"
      - name: persistence.storageClass
        value: "longhorn-fast"
      - name: image.repository
        value: drupal
      - name: image.tag
        value: 9.4-php8.0-apache
      values: |-
        ingress:
          enabled: true
          annotations:
            cert-manager.io/cluster-issuer: letsencrypt
            kubernetes.io/ingress.class: nginx
            external-dns.alpha.kubernetes.io/target: armnleg.martyn.berlin
          hosts:
          - host: bikerwitch.martyn.berlin
            paths:
            - /
          - host: www.bikerwitch.org.uk
            paths:
            - /
          tls:
          - hosts:
            - bikerwitch.martyn.berlin
            - www.bikerwitch.org.uk
    path: apps-helm/drupal
    repoURL: https://git.martyn.berlin/martyn/infra4talos.git
    targetRevision: HEAD