You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unsure if this is a bug or by design or whether to label this as an enhancement or bug but since archived workflow menu item was removed, I'd like to add a workflow-list link that shows only archived workflows for the current selected namespace. I am unable to achieve this because namespace is not rendered by argo when using {metadata.namespace} at the workflow-list scope. It would be nice to enhance workflow-list rendering to include the current selected namespace. When I use ${metadata.namespace} it does not get rendered and shows as {metadata.namespace} in the UI.
Unsure if this is a bug or by design or whether to label this as an enhancement or bug
I am unable to achieve this because namespace is not rendered by argo when using {metadata.namespace} at the workflow-list scop
The custom links feature for the workflows-list scope doesn't support ${metadata.namespace}, nor any variables for that matter, that's why the example doesn't show any variables. I labeled this as an enhancement as such.
The variable ${metadata.namespace} specifically refers to a k8s resource. For all the other examples, the scope is a page that refers to a specific k8s resource: the workflow scope is for the Workflow Details page which refers to a specific Workflow.
In the Workflows List page, there isn't a specific k8s resource being referred to. We could potentially use the k8s List resource that gets returned from a list call, but that doesn't necessarily have a namespace since you can list at cluster level.
I ran into this situation just today. Is it possible that a namespace variable could be populated from the client state?
app-router.tsx @ v3.5.10 makes it seem easy to construct a URL to /workflows page. Note how workflowsUrl and namespaceSuffix are defined.
Perhaps only the query params of the workflow-list scoped link should be merged with client state? To be clean a new type that is not as strict as v1alpha1.Link would probably be desired. A well typed implementation kind of scope creeps 🙃
Just throwing out ideas in case someone chooses to tackle this.
Pre-requisites
:latest
What happened/what did you expect to happen?
Unsure if this is a bug or by design or whether to label this as an enhancement or bug but since archived workflow menu item was removed, I'd like to add a workflow-list link that shows only archived workflows for the current selected namespace. I am unable to achieve this because namespace is not rendered by argo when using
{metadata.namespace}
at the workflow-list scope. It would be nice to enhance workflow-list rendering to include the current selected namespace. When I use${metadata.namespace}
it does not get rendered and shows as{metadata.namespace}
in the UI.The link I have configured for this:
What I see in the UI:
What I expect to see is the currently selected namespace used when clicking on the "Archived Workflows" link
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.
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: