-
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
UI: links
for label containing dot not working
#11741
Comments
If this is a UI-only error, this function may need updating to handle this. Is it slashes specifically that fail, or the fact that the label has dots in it? |
my guess is that it doesn't know how to reference label key with dot because it might be searching for a key of 'workflows' |
Yes, that's what I was referring to. On more detailed investigation, it's definitely the dot. It's used as a delimiter. The slash shouldn't matter since it uses bracket notation. This would need a more complicated regex to solve. Either the user input would have to be in bracket notation or could specifically check for labels and annotations and stop delimiting if those are reached. Bracket notation would be more consistent with |
i tried bracket notation but still no luck |
Correct, it is not currently supported. That was just one option / proposal I wrote if a fix were to be implemented. |
Oh right, figured I'd mention that the workaround would be to not use a dot in the label. |
maybe #13752 will help |
links
for label containing dot not working
Signed-off-by: Alan Clucas <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
it seems like with the merged PR there would still be an issue getting labels/annotations from ex:
wouldn't work because the logic is only limited to |
Pre-requisites
:latest
What happened/what you expected to happen?
using links: in wfcontroller configmap:
for a label key not containing slash it works, ie this works:
label=s3-folder%3D${workflow.metadata.labels.s3-folder}
for a label key containing dot slash it returns null in the generated link url:
label=workflows.argoproj.io%2Fworkflow-template%3D${workflow.metadata.labels.workflows.argoproj.io/workflow-template}
below also returns null
label=workflows.argoproj.io%2Fworkflow-template%3D${workflow.metadata.labels.workflows.argoproj.io%2Fworkflow-template}
Version
3.4.8
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.
n/a
Logs from the workflow controller
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: