argo-workflows
argo-workflows copied to clipboard
Add autocomplete for namespace filter
Summary
Add the ability to autocomplete the namespace filter in "Workflow Template" and "Workflow" screens using the already available namespaces in the cluster.
Use Cases
In our specific use case, we build and destroy namespaces dynamically per development or production branch. and use these namespaces a the isolation level for our different workflows. selecting these namespaces in the UI for the first time is a bit cumbersome, as we need to type them in manually.
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
For this feature, I think we should make it opt in for the namespace. I.e. the namespace should be labelled with something like workflows.argoproj.io/ui: Allow
for them to appear in the list automatiaclly. In multi-tentant systems, you will not want users to determine what the other namespaces are.
This will require a new ListNamespaces
endpoint.
For this feature, I think we should make it opt in for the namespace. I.e. the namespace should be labelled with something like
workflows.argoproj.io/ui: Allow
for them to appear in the list automatiaclly. In multi-tentant systems, you will not want users to determine what the other namespaces are.
i would like to start working on this capability in a couple of days. I am wondering about the opt-in labels. shouldn't RBAC and namespace permissions solve that for us in a more standardized way?
The label solution creates a split responsibility, as RBAC is responsible for "where I can run", while the labels are responsible to "where I can I can run".
Thoughts?
For this feature, I think we should make it opt in for the namespace. I.e. the namespace should be labelled with something like
workflows.argoproj.io/ui: Allow
for them to appear in the list automatiaclly. In multi-tentant systems, you will not want users to determine what the other namespaces are.i would like to start working on this capability in a couple of days. I am wondering about the opt-in labels. shouldn't RBAC and namespace permissions solve that for us in a more standardized way?
The label solution creates a split responsibility, as RBAC is responsible for "where I can run", while the labels are responsible to "where I can I can run".
Thoughts?
@thegreymatter are you still interested in working on this? I do like the idea of having a label as a mechanism to control which namespaces are shown. Prevents users from dealing with RBAC settings which could depending on the cluster be quite complicated sometimes, at least in my little experience.
I'd even extend this improvement to make the namespace filter independent for each screen. Example: My workflows run in a namespace "argo-workflows" but my sensors are deployed to "argo-events". So switching from the "Workflows" to the "Sensors" screen I always have to adjust the namespace filter field.
I'd be happy to support here.