Skip to content

feat(logship): skip providers without a log backend quietly - #182

Merged
InftyAI-Agent merged 3 commits into
InftyAI:mainfrom
kerthcet:logship-unsupported-providers
Dec 2, 2026
Merged

InftyAI-Agent merged 3 commits into
InftyAI:mainfrom
kerthcet:logship-unsupported-providers

Conversation

@kerthcet

@kerthcet kerthcet commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

What

Multi-region clusters printed no log provider for "kubernetes" and NOT shipping this instance as ERRORs on every Pod event and every 10-minute resync. Real failures got lost in them.

  • cmd/fleet.go: a hand-kept unsupported list (runpod, coreweave, lambda, kubernetes, aws). Pods on those providers are skipped with one non-ERROR line per instance. Forget clears the entry, so a new instance on the same Pod is reported again.
  • An unknown provider name still prints an ERROR every time. A provider added to Nebula later appears in neither register nor unsupported, so it stays loud until someone decides how logship handles it.
  • Provider names come from Nebula's pkg/provider, so logship has no copy of them. The Dockerfile now also copies pkg/provider/ and pkg/util/, the only Nebula packages that import pulls in.
  • README: a table of which providers are shipped.

Testing

go vet ./... and go test ./... in components/logship; docker build -f components/logship/Dockerfile . succeeds. New test: one line per instance, no ERROR, and a second line after Forget.

🤖 Generated with Claude Code

Pods on runpod, coreweave, lambda, kubernetes and aws used to log two
ERROR lines on every event and resync. They now get one line per
instance. An unknown provider name still errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 18:30
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the change to reduce logship noise from known unsupported providers.

No open issues 🎉

What changed in this PR

Reduces logship noise in multi-provider clusters by quietly skipping providers known to lack a log backend while preserving errors for unknown providers.

Changes:

  • Logs known unsupported providers once per instance, resetting tracking on Forget.
  • Adds tests for quiet skipping and reset behavior.
  • Documents provider support.
File Description
components/​logship/​README.md Documents supported providers and logging behavior.
components/​logship/​internal/​provider/​provider.go Defines known unsupported provider names.
components/​logship/​cmd/​main.go Wires the informational logger into the fleet.
components/​logship/​cmd/​fleet.go Skips unsupported providers with deduplicated logging.
components/​logship/​cmd/​fleet_test.go Tests quiet skipping, deduplication, and reset behavior.

Review effort: Balanced

Drops logship's copy of the names, so it cannot drift from what the
placement controller writes. The image now copies pkg/provider and
pkg/util, the only Nebula packages it pulls in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 18:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the changes that reduce logship noise from known unsupported providers.

No open issues 🎉

Review effort: Balanced

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 19:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for this change.

No open issues 🎉

Review effort: Balanced

@kerthcet

kerthcet commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

/lgtm
/kind cleanup

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Dec 2, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: PR has both lgtm and approved labels

@InftyAI-Agent
InftyAI-Agent merged commit 6cf385a into InftyAI:main Dec 2, 2026
24 of 25 checks passed
@kerthcet
kerthcet deleted the logship-unsupported-providers branch December 2, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants