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

splunk / splunk-operator / 22009355726

14 Feb 2026 02:16AM UTC coverage: 84.92% (-1.3%) from 86.191%
22009355726

Pull #1699

circleci

vivekr-splunk
Fix unit test failures in Platform SDK integration

This commit fixes 4 failing unit tests after the Platform SDK integration:

1. Fixed 3 SecretAdapter tests (TestSecretAdapter_SDKMode,
   TestSecretAdapter_SDKMode_SecretNotReady,
   TestSecretAdapter_SDKMode_SecretVersioning) by adding PlatformConfig
   CRD scheme registration. The tests were failing with:
   "no kind is registered for the type v4.PlatformConfig in scheme"

2. Fixed TestApplyStandalone panic by adding nil check for sdkRuntime
   in getStandaloneStatefulSet. When sdkRuntime is nil (legacy tests),
   the function now falls back to getStandaloneStatefulSetLegacy which
   uses the pre-SDK implementation.

Changes:
- pkg/splunk/enterprise/secret_adapter_test.go: Import platformv4 and
  register PlatformConfig scheme in all SDK-mode tests
- pkg/splunk/enterprise/standalone.go: Add nil check and legacy
  fallback path in getStandaloneStatefulSet, add
  getStandaloneStatefulSetLegacy function for backward compatibility

All enterprise package tests now pass successfully.

🤖 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

142 of 360 new or added lines in 4 files covered. (39.44%)

1 existing line in 1 file now uncovered.

11077 of 13044 relevant lines covered (84.92%)

28.64 hits per line

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

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