k8s fixes #2274
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2274/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #1702
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1702
Original created: 2025-10-05T16:42:18Z
Original updated: 2025-10-05T17:16:54Z
Original head: carverauto/serviceradar:updates/poller_k8s_fix
Original base: main
Original merged: 2025-10-05T17:04:11Z by @mfreeman451
PR Type
Bug fix, Enhancement
Description
Fix TLS server name configuration for external checkers
Improve Kubernetes deployment configurations and resource allocation
Add comprehensive service aliases for demo environment
Enhance health checks and DNS policy settings
Diagram Walkthrough
File Walkthrough
external_checker.go
Fix TLS ServerName configuration for external checkerspkg/agent/external_checker.go
serviceradar-agent.yaml
Improve agent DNS policy and resource allocationk8s/demo/base/serviceradar-agent.yaml
dnsPolicy: ClusterFirstWithHostNetfor proper DNS resolutionserviceradar-poller.yaml
Enhance poller deployment with better health checksk8s/demo/base/serviceradar-poller.yaml
service-aliases.demo.yaml
Expand service aliases with comprehensive mappingk8s/demo/prod/service-aliases.demo.yaml
type: ExternalNameto all serviceskustomization.yaml
Simplify kustomization configurationk8s/demo/prod/kustomization.yaml
patchesStrategicMergesectionImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1702#issuecomment-3369174728
Original created: 2025-10-05T16:43:10Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1702#issuecomment-3369175289
Original created: 2025-10-05T16:44:07Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Kustomize configuration appears to be broken
The
kustomization.yamlfile incorrectly removesservice-aliases.demo.yamlfrompatchesStrategicMergebut fails to add it to theresourceslist. This omissionwill prevent the new service aliases from being applied by Kustomize.
Examples:
k8s/demo/prod/kustomization.yaml [7-10]
k8s/demo/prod/service-aliases.demo.yaml [1-117]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 10
__
Why: This suggestion correctly identifies a critical bug in the Kustomize configuration that would cause the deployment of all new service aliases to fail, directly contradicting a primary goal of the PR.
Implement deep copy for security configuration
The shallow copy of the
securityconfiguration is insufficient and may lead tounintended mutations. Implement a deep copy, particularly for the
TLSfield, toensure the original configuration remains unchanged.
pkg/agent/external_checker.go [105-120]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies a potential bug where a shallow copy of the
securityconfiguration could lead to unintended side effects if nested pointer fields, likeTLS, are modified by downstream functions.