-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
resource
template getting duplicate exec-sa-token
volume mounts with automountServiceAccountToken: false
#12848
Comments
Hi @philBrown, The issue is not the workflow of workflows. The issue is being caused by using a apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: workflow-resource
namespace: argo
spec:
automountServiceAccountToken: false
executor:
serviceAccountName: default
entrypoint: resource-create
arguments:
parameters:
- name: message
value: hello
templates:
- name: resource-create
inputs:
parameters:
- name: message
resource:
action: create
manifest: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{inputs.parameters.message}} Currently, the executor service account is always mounted in every container (init,wait,main) when This can be fixed, but I think we should discuss it first. To understand it better, I'll give a few examples:
spec:
serviceAccountName: any
spec:
executor:
serviceAccountName: workflow-executor
serviceAccountName: any
spec:
executor:
serviceAccountName: workflow-executor
serviceAccountName: any
automountServiceAccountToken: false IMO this PR #10945 introduced a regression. Before that change, configuring I'll wait for the input of the maintainers to suggest some changes. |
resource
template getting duplicate exec-sa-token volume mounts with automountServiceAccountToken: false
Thanks for the clarification @eduardodbr I found the error was the same whether or not the child had defined |
We're also running into this issue as well when using Is it possible for this regression in behaviour reverted in a future release? I agree with @eduardodbr in that the issue #10937 was trying to solve could have been solved differently, rather than changing the automountServiceAccountToken behaviour. |
…with automountServiceAccountToken: false. Fixes argoproj#12848 reverts 2f63f6c Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
resource
template getting duplicate exec-sa-token volume mounts with automountServiceAccountToken: false
resource
template getting duplicate exec-sa-token
volume mounts with automountServiceAccountToken: false
Yea @eduardodbr 's description above looks correct to me, so #10937 was not a bug and #10945 is itself a bug/regression then. I've renamed the issue and PR so it reads as incorrect at a glance -- if
It looks like #10945 was backported to 3.4.8+ per #11118
Yes it should be IMO. I've labeled it as a regression and part of a patch series milestone. |
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
…with automountServiceAccountToken: false. Fixes argoproj#12848 Signed-off-by: Minyi Zhong <mzhong@atlassian.com>
Pre-requisites
:latest
What happened/what did you expect to happen?
Running a workflow of workflows with
automountServiceAccountToken: false
results in a repeatedexec-sa-token
volume mount in the child pod spec.When trying to run the child workflow, the pod spec validation fails with
It appears that the code in
workflowpod.go
is running multiple times for the same container in these cases.Version
v3.5.2
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
The text was updated successfully, but these errors were encountered: