Open jswxstw opened 8 months ago
As mentioned in https://github.com/argoproj/argo-workflows/discussions/12566, I think AgentPod
just needs plugins in workflow namespace, plugins in controller namespace are useless and should not be loaded by default.
@alexec Do you know why plugins in controller namespace are needed?
A plugin outside the controller namespace is a user plugin. In many set ups, the users cannot modify the controller because they only have access to their own namespace. Loading plugins from the user’s namespace allows the user to self-serve their plugins. I’m not sure a user plugin should try and use a controller service account, so this seems to be a bug.
I’m not sure a user plugin should try and use a controller service account, so this seems to be a bug.
Controller plugins are loaded by default, so controller service account will be accessed if AutomountServiceAccountToken
is true.
https://github.com/argoproj/argo-workflows/blob/af2cacb365a6cc03cc35ed9749976e095f9a03f7/workflow/controller/agent.go#L273-L302
I'm not sure why controller plugins are needed for user workflow. Do you know why?
This seems odd to me too. Agents are part of the workflow, not part of the control-plane, so should run using the service account of the workflow.
This seems odd to me too. Agents are part of the workflow, not part of the control-plane, so should run using the service account of the workflow.
@alexec I see that you support the feature of executor plugin, executor plugins in control-plane are loaded by default, so I wonder why you do this or can you confirm if we can only load plugins in user‘s workflow namespace with this PR:#12724.
Pre-requisites
:latest
What happened/what did you expect to happen?
Related discussion: https://github.com/argoproj/argo-workflows/discussions/12566 Controller runs in namespace:
argo
, there is a plugin namedkhaos-executor-plugin
and a serviceaccount namedkhaos-executor-plugin
. The sample workflow runs in namespace:khaos-workflow
, there is a plugin namedhello-executor-plugin
and a serviceaccount namedhello-executor-plugin
.Version
v3.4.14
Paste a small 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
Logs from in your workflow's wait container