-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: Only get executor plugins in workflow namespace. Fixes #12708 #12724
base: main
Are you sure you want to change the base?
Conversation
794e8dc
to
fa939bc
Compare
I think this is reasonable. Can you add some tests, such as deploying a plugin under default, another plugin under controller, and checking the sidecar of the pod under default. |
I've tested it locally. # kubectl get cm -A -l workflows.argoproj.io/configmap-type=ExecutorPlugin
NAMESPACE NAME DATA AGE
khaos-workflow khaos-steps-executor-plugin 2 21m
argo hello-executor-plugin 2 10m I submit a example plugin workflow to namespace
There is only one sidecar container
|
OK, thanks. |
@agilgur5 Can this PR be merged? |
As this stands it's a feature removal - the current behaviour of loading from the controller namespace is documented here so would need amending in this PR. |
…12708 Signed-off-by: oninowang <[email protected]>
@Joibel Thank you for the reminder! |
Fixes #12708
Motivation
Controller plugins are loaded by default, so controller service account will be accessed if
AutomountServiceAccountToken
is true, which cause the bug in #12708 .Modifications
Only load plugins in user‘s workflow namespace.
Verification
local test