Closed kalote closed 3 weeks ago
My guess is that the pod (running in
backend
NS) doesn't find the CM with the artifactRepositoryRef configuration, as it is in theargo-wf
NS, not in thebackend
NS.
You are right.
You should also add artifact-repositories
configmap to backend
namespace. You can also configure artifactRepository
in workflow controller configmap if you do not want to add artifact-repositories
configmap in every required namespace.
Thanks for your support 🙏
You should also add artifact-repositories configmap to backend namespace
Ok that's what I thought!
You can also configure artifactRepository in workflow controller configmap
Can you elaborate on this please? You mean, adding a artifactRepository
entry in the workflow manifest? Do you have the link to the documentation of that please?
My goal is to factorize as much as possible, which means not adding the S3 config on each workflow if possible.
add artifact-repositories configmap in every required namespace.
So, just adding the configMap in the backend
namespace is enough? Is there a way to indicate in which NS this CM should be created in the helm chart?
Thanks o/
Can you elaborate on this please? You mean, adding a
artifactRepository
entry in the workflow manifest? Do you have the link to the documentation of that please?
You can read this documentation: Workflow Controller Config Map.
My goal is to factorize as much as possible, which means not adding the S3 config on each workflow if possible.
No matter which method you use, artifactRepository
will always be loaded into each workflow.
So, just adding the configMap in the backend namespace is enough?
Yes, add artifact-repositories
ConfigMap or modify workflow controller ConfigMap, choose one.
Is there a way to indicate in which NS this CM should be created in the helm chart?
Sorry, I'm not familiar with Argo Helm.
Thanks for the complete & thorough explanation 🙏
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened? What did you expect to happen?
I'm configuring argo-workflows on multiple namespace:
argo-wf
NS, which handles the argo-wf app (with server and controller)backend
NS, which runs wfArgo-Workflows is deployed using argoCD + helm in its dedicated NS (
argo-wf
).I added the following config (redacted to show the important bits):
When I run jobs in the
backend
NS, it ends up failing withexecutor error: You need to configure artifact storage
error.My guess is that the pod (running in
backend
NS) doesn't find the CM with the artifactRepositoryRef configuration, as it is in theargo-wf
NS, not in thebackend
NS.Version(s)
v3.5.11
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
At the start of the controller, I see this:
Why artifactRepository is empty?
No other logs are very relevant
Logs from in your workflow's wait container