apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: samba-fast
  namespace: argocd
spec:
  destination:
    namespace: sambas
    server: https://kubernetes.default.svc
  project: infra
  source:
    helm:
      parameters:
      - name: image.tag
        value: v1.0.2
      - name: service.type
        value: LoadBalancer
      - name: persistence.pvc.storageClass
        value: local-path-fast
      - name: persistance.pvc.size
        value: 3Ti
      valuesObject: 
        samba:
          users:
          - username: martyn
            password: "564628"
        affinity:
          nodeAffinity:
            preferredDuringSchedulingIgnoredDuringExecution:
            - weight: 1
              preference:
                matchExpressions:
                - key: kubernetes.io/hostname
                  operator: In
                  values:
                  - talos-llu-kx3
    path: apps-helm/samba4
    repoURL: https://git.martyn.berlin/martyn/infra4talos.git
    targetRevision: HEAD
  syncPolicy:
    automated:
      selfHeal: true