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

splunk / splunk-operator / 22020349453

14 Feb 2026 04:07PM UTC coverage: 84.927% (-1.3%) from 86.191%
22020349453

Pull #1699

circleci

vivekr-splunk
Make Platform SDK initialization optional with graceful fallback

This commit fixes smoke test timeouts by making Platform SDK
initialization optional. If SDK runtime initialization fails
(e.g., PlatformConfig CRDs not installed), the controller now
falls back to legacy mode instead of failing to start.

Changes:
- internal/controller/standalone_controller.go: Modified
  SetupWithManager to handle SDK initialization failures gracefully
  by setting SDKRuntime to nil (triggers legacy mode)

This ensures backward compatibility with environments that don't
have Platform SDK CRDs installed, such as existing smoke tests.

Previously, the smoke tests were timing out after 4 hours because:
1. SDK runtime initialization would fail if CRDs weren't present
2. The controller setup would fail entirely
3. Pods couldn't start, tests waited forever for Ready state

Now the controller will:
1. Attempt to initialize SDK runtime
2. If it fails, log a warning and use legacy mode (sdkRuntime=nil)
3. Fall back to legacy StatefulSet creation path
4. Allow smoke tests to proceed normally

Fixes timeout issues in:
- smoke-tests (managermc)
- smoke-tests (basic)
- smoke-tests (appframeworksS1)
- smoke-tests (managersecret)

🤖 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

148 of 366 new or added lines in 4 files covered. (40.44%)

1 existing line in 1 file now uncovered.

11083 of 13050 relevant lines covered (84.93%)

28.62 hits per line

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

90.1
/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