Repository navigation
feat(csmcp): support in-cluster CSM control plane log inspection - #1003
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new parser and timeline mapper for CSM CP (Control Plane) logs, including pod identifier parsing, connection state tracking, and Google Cloud log extraction with comprehensive unit tests. The feedback advises replacing discouraged hex color notations with style.Color raw RGB values in log_type.go and timeline_type.go to align with KHI's display-p3 color space.
| LogTypeCSMCP = style.MustRegisterLogType( | ||
| "csmcp", | ||
| "CSM CP Logs", | ||
| style.MustForceConvertSRGBHex("#4285F4"), |
There was a problem hiding this comment.
Hex color notations are discouraged in KHI because it uses the display-p3 color space. Please use style.Color with raw RGB values instead.
| style.MustForceConvertSRGBHex("#4285F4"), | |
| style.Color{R: 66.0 / 255.0, G: 133.0 / 255.0, B: 244.0 / 255.0, A: 1.0}, |
References
- Discourage using hex notations (such as style.MustForceConvertSRGBHex) to represent colors in KHI, as it uses the display-p3 color space. Use style.Color with raw values instead.
| 0.6, | ||
| style.ColorWhite, | ||
| style.ColorBlack, | ||
| style.MustForceConvertSRGBHex("#ff8500"), |
There was a problem hiding this comment.
Hex color notations are discouraged in KHI because it uses the display-p3 color space. Please use style.Color with raw RGB values instead.
| style.MustForceConvertSRGBHex("#ff8500"), | |
| style.Color{R: 255.0 / 255.0, G: 133.0 / 255.0, B: 0.0 / 255.0, A: 1.0}, |
References
- Discourage using hex notations (such as style.MustForceConvertSRGBHex) to represent colors in KHI, as it uses the display-p3 color space. Use style.Color with raw values instead.
| 0.6, | ||
| style.ColorWhite, | ||
| style.ColorBlack, | ||
| style.MustForceConvertSRGBHex("#ff8500"), |
There was a problem hiding this comment.
Hex color notations are discouraged in KHI because it uses the display-p3 color space. Please use style.Color with raw RGB values instead.
| style.MustForceConvertSRGBHex("#ff8500"), | |
| style.Color{R: 255.0 / 255.0, G: 133.0 / 255.0, B: 0.0 / 255.0, A: 1.0}, |
References
- Discourage using hex notations (such as style.MustForceConvertSRGBHex) to represent colors in KHI, as it uses the display-p3 color space. Use style.Color with raw values instead.
d3e1975 to
9309e9b
Compare
fb33292
Summary
Adds inspection tasks and timeline models for in-cluster CSM control plane (Istiod) logs.
Changes
pkg/task/inspection/commonlogcsmcp:ParsePodIdentifierto extract client Pod names, namespaces, and connection IDs from Istiod log messages.MapPodAndConnectionTimelinesto track xDS connection lifecycles (connect / terminate) and map events onto the respective Pod's timeline (CSM CP,connection-<id>).pkg/task/inspection/googlecloudlogcsmcp:IstiodLogFilterTaskto filterdiscoverycontainer logs fromistiodpods.