-
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
Unwanted (and invalid) metadata.label when creating wftmpl via argo template create #4058
Comments
When creating the templates with the CLI, it could either create them through an API request to the |
@simster7 there are no environment prefixed with |
The difference is that kubectl apply does a In any case, we strongly believe this to be an environment specific issue. |
I have managed to narrow this down to the service account that is being used when calling I'm trying to figure out how that specific service account was setup to adds metadata.label to workflow definitions. It's a service account that is managed by gitlab (we use the gitlab deployment k8s integration). I've read that you can extend the spec of pods that are created by a service account by editing the SA spec. However there is nothing suspicious in either the SA or the secret that it uses:
The
From all of this I haven't figured out how the labels are added for the @jessesuen I looked into the web hooks, but to me it appears that there are only the web hooks from AWS:
|
Marking as |
Note I filed a bug report on gitlab.com's EE tracker here. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, we have the same error when doing To reproduce it, you can use a Namespace When submitting any template from within a Pod using this service account, you should have the error :
It could be great to truncate the creator label in a correct string before Kubernetes does, or to give us the possibility to deactivate this label. |
This bug was fixed in v2.11 |
@alexec we are having this bug on v2.11.7 |
Would you be interested in submitting a PR? Should be easy to do: |
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Summary
When creating templates via
argo template create
a label is added to the workflowtemplate which is not in the yaml file. Because the label is in an invalid format, the creation of the workflowtemplate fails. Usingkubectl apply -f
does succeed in creating the templates. I have only noticed this issue inside agitlab-runner
process (via a gitlab deploy job). Likely this issue is due to the combination of the gitlab-runner environment andargo template create
.Gitlab sets up a specific k8s environment in the gitlab-runner and (used to) use labels for tracking the k8s resources that are created by gitlab. Likely the label is added to track that these templates were created via a gitlab deployment. Still I find it odd that in the same environment kubectl is able to create the templates, whereas argo is not. It is not clear to me how and where these labels are being added. Is this configured on the client side or is this configured on the server; how could I check (I realize this is a gitlab specific question, not argo related). Any pointers on how to debug this issue further are welcomed.
Diagnostics
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: