Open TommyLike opened 4 years ago
I'm running into this issue as well. As a user of argo-rollouts, I'd like my attempts to create [Cluster]AnalysisTemplate with metric names that are too long to fail at creation time instead of failing later at AnalysisRun run-time. Perhaps the code @TommyLike referenced above can check the Job name length and hash or truncate the provided name in some way?
As a workaround for this issue, I have truncated all my job names to be 20 characters or less, because that's how many characters it was over in my case. I don't know if the length is variable in what is generated here or not by Argo Rollouts, but I haven't had the issue since. I would assume it's only variable if the number of jobs in the analysistemplate is double-digits or greater, as I would expect the UUID to be of fixed length that seems to be prepended to this label.
This issue is stale because it has been open 60 days with no activity.
It is unacceptable for this issue to be stale. It persists still. If you are using labels to find the child job you should break this up and use multiple labels.
What would be the recommended solution here? Simply truncating the name would seem to be the quickest workaround, but then we run the danger of having different jobs getting truncated to the same name. Or this is a not a possible/interesting use case?
facing same issue
Summary
Assume we have created an analysis template as below:
argo rollout will failed to create the wanted job due to the limit of max label value length(63) in kubernetes.
I guess this is a known issue 1, but it's very likely to happen, due to the generation style.
Diagnostics
What version of Argo Rollouts are you running?
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.