Logging: Flows: Creation: Unable to specify container names
Setup
- Rancher version: v2.10
- Rancher UI Extensions:
- Browser type & version: FF, Chrome
Describe the bug User is unable to specify container names when creating a Flow. After entering text for the 'Exclude specific container names' field, the text becomes undefined/null. Also, an error is thrown when attempting to create a Flow with this invalid entry which makes this part of the feature unusable outside of using the default value.
Flow.logging.banzaicloud.io "test1" is invalid: spec.match[0].select.container_names[0]: Invalid value: "null": spec.match[0].select.container_names[0] in body must be of type string: "null"
To Reproduce
- install Logging (Cluster Explorer --> Apps --> Charts --> Logging --> Install)
- Cluster Explorer --> Logging --> Flow --> Create --> Matches tab
- press either 'Add Include Rule' or 'Add Exclude Rule'
- for 'Exclude specific container names' type some value
- hit enter
Result
https://github.com/user-attachments/assets/e3e32673-2af9-41ce-99a0-92e3a850f1d5
Expected Result
https://github.com/user-attachments/assets/e8581d62-f872-4fbf-82a2-73e7fb875bec
Screenshots
Additional context
Found while testing https://github.com/rancher/dashboard/issues/11933
@yonasberhe23 is this happening in 2.9.x at all? This sounds like a regression but I don't know how much activity we have with Flows.
@gaktive @yonasberhe23 I think there's something wrong about this input field in both 2.9 and 2.10. In 2.9 when you type a random container name we allow to select it by either clicking on it from the upward dropdown or by hitting the enter key:
in 2.10 we show "No matching option" on the upward dropdown, but we still allow to add an empty item when you press the enter key:
I honestly don't know what the actual desired behaviour is here.
@momesgin will talk with @yonasberhe23 about behaviours but this may have to a release note for 2.10.0 with a workaround of editing the YAML directly.
User is unable to input container names when creating a Flow.
Tested in:
- Rancher v2.10-212d8b6e92992235d791d8f2aaea8436ab4f6b77-head
- Dashboard master c321e42