wu-sheng opened a new pull request, #142:
URL: https://github.com/apache/skywalking-infra-e2e/pull/142
## Summary
- Add shell glob pattern support (`*`, `?`, `[]`) for `paths` in
collect-on-failure config
- Patterns are expanded inside the container/pod via `sh -c 'ls -d
<pattern>'` before copying
- Non-glob paths behave exactly as before (no behavior change for existing
configs)
- Works for both Kind (kubectl exec) and Compose (docker exec) modes
### Example usage
```yaml
cleanup:
collect:
on: failure
output-dir: /tmp/collect
items:
- namespace: default
label-selector: app=oap
paths:
- /skywalking/logs*/ # matches logs, logs-oap, logs-ui, etc.
- /tmp/*.hprof # matches all heap dumps
- /var/log/app-[0-9].log # character class matching
```
## Test plan
- [x] Unit tests for `containsGlob` with various patterns
- [x] Unit tests for `expandPodGlob` / `expandContainerGlob` passthrough (no
glob)
- [x] All existing tests pass
- [x] Lint passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]