# Argo Workflows Helm values — foxhunt cluster
# Chart: argo/argo-workflows v1.0.2 (Argo v4.0.2)
# Install: helm upgrade argo-workflows argo/argo-workflows -n foxhunt -f infra/k8s/argo/values.yaml

controller:
  nodeSelector:
    k8s.scaleway.com/pool-name: platform
  resources:
    requests:
      cpu: 50m
      memory: 128Mi
    limits:
      cpu: 200m
      memory: 256Mi
  # Only watch foxhunt namespace (not cluster-wide)
  workflowNamespaces:
    - foxhunt
  # Workflow archive — persists workflow state + logs to PostgreSQL after pod GC
  persistence:
    archive: true
    postgresql:
      host: postgres.foxhunt.svc.cluster.local
      port: 5432
      database: argo_archive
      tableName: argo_workflows
      userNameSecret:
        name: argo-postgres-config
        key: username
      passwordSecret:
        name: argo-postgres-config
        key: password
      ssl: false
      sslMode: disable

server:
  nodeSelector:
    k8s.scaleway.com/pool-name: platform
  resources:
    requests:
      cpu: 25m
      memory: 64Mi
    limits:
      cpu: 100m
      memory: 128Mi
  ingress:
    enabled: false
  extraArgs:
    - --auth-mode=server
    - --secure=false

# Default artifact repository — MinIO (in-cluster)
artifactRepository:
  archiveLogs: true
  s3:
    endpoint: minio.foxhunt.svc.cluster.local:9000
    insecure: true
    bucket: argo-logs
    accessKeySecret:
      name: minio-credentials
      key: access-key
    secretKeySecret:
      name: minio-credentials
      key: secret-key

executor:
  resources:
    requests:
      cpu: 10m
      memory: 32Mi
    limits:
      cpu: 100m
      memory: 64Mi

workflow:
  serviceAccount:
    create: true
    name: argo-workflow

crds:
  install: true
