• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

splunk / splunk-operator / 22024801941

14 Feb 2026 09:47PM UTC coverage: 84.932% (-1.3%) from 86.191%
22024801941

Pull #1699

circleci

vivekr-splunk
Add 30-second timeout to SDK runtime initialization

This commit adds a timeout to prevent SDK runtime initialization
from hanging indefinitely when PlatformConfig CRDs are not available
or when the Kubernetes API is slow to respond.

Changes:
- internal/controller/standalone_controller.go: Added 30-second
  timeout context to sdkRuntime.Start() call

This addresses the smoke test timeout issue where SDK initialization
might hang when:
1. CRDs are not yet registered in the API server
2. API server is slow to respond to resource queries
3. Client.Get() calls block waiting for CRD discovery

With this timeout, the controller will:
1. Attempt SDK initialization for up to 30 seconds
2. If it times out or fails, fall back to legacy mode
3. Allow the controller to start even if SDK is unavailable

This ensures smoke tests can proceed without hanging.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Pull Request #1699: [SPIKE] Platform SDK Integration for Standalone Controller

152 of 370 new or added lines in 4 files covered. (41.08%)

1 existing line in 1 file now uncovered.

11087 of 13054 relevant lines covered (84.93%)

28.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.48
/internal/controller/standalone_controller.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc