-
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
feat: support long arguments #12325
feat: support long arguments #12325
Conversation
f219f0d
to
eeb8f19
Compare
Solution seems reasonable. Perhaps this would benefit from some tests? Not sure why this PR has not been reviewed yet. |
I will take a look |
okay, I will add some ut. |
a51e3c0
to
71db1fe
Compare
workflow/controller/workflowpod.go
Outdated
} | ||
|
||
if offloadEnvVarTemplate { | ||
cmName := fmt.Sprintf("%s-configmap", pod.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add logic to check name is not crossing the maximum limit? if yes, we can short the name.
182d7bf
to
2837b32
Compare
2837b32
to
54e8cb2
Compare
workflow/util/configmap_name.go
Outdated
package util | ||
|
||
func GenerateConfigMapName(prefix string) string { | ||
maxPrefixLength := maxK8sResourceNameLength - k8sNamingHashLength |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you comment on how the name will calculate if it is oversized?
Do we have hash on end?
Eg:
<podname>-confimap > maxPrefixLength
I am thinking,
can we have just only the podname?
54e8cb2
to
7cf9029
Compare
Co-authored-by: shuangkun <[email protected]> Co-authored-by: sherwinkoo29 <[email protected]> Co-authored-by: zjgemi <[email protected]> Signed-off-by: shuangkun <[email protected]>
7cf9029
to
c430d14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@shuangkun thanks for your contribution.
Hi, Is there any plan for releasing this? I was hoping to see it in the new release, but unfortunately it was not there 😢 |
This is a "feature" so will be in the next minor release (3.6) rather than a patch release. |
Thank you 🙏 |
@shuangkun Thanks for fix it. I have a small question, how to clear this configmap? Is there any way to clean up? |
It should have an owner reference of the workflow, so get deleted when the workflow is deleted. |
I see. Thank you for your answer, which has solved my doubts. |
offload the envtemplate to configmap when arguments is too long
Fixes #7586
Fixes #12190
Motivation
Modifications
Verification