# based on https://github.com/kubeflow/manifests/blob/master/apps/pipeline/upstream/third-party/argo/base/workflow-controller-configmap-patch.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: workflow-controller-configmap
  namespace: kubeflow
data:
  # SeaweedFS configuration for V1 pipelines with namespace isolation
  # SeaweedFS is exposed through minio-service for backward compatibility
  artifactRepository: |
    archiveLogs: true
    s3:
      endpoint: minio-service.kubeflow:9000
      bucket: mlpipeline
      keyFormat: private-artifacts/{{workflow.namespace}}/{{workflow.name}}/{{workflow.creationTimestamp.Y}}/{{workflow.creationTimestamp.m}}/{{workflow.creationTimestamp.d}}/{{pod.name}}
      insecure: true
      accessKeySecret:
        name: mlpipeline-minio-artifact
        key: accesskey
      secretKeySecret:
        name: mlpipeline-minio-artifact
        key: secretkey
  executor: |
    imagePullPolicy: IfNotPresent
