🐛 fix: resolve Build and Deploy KC workflow failure#18015
🐛 fix: resolve Build and Deploy KC workflow failure#18015kubestellar-hive[bot] wants to merge 1 commit into
Conversation
Add missing helper functions to gitops package and maxK8sNameLen constant to validation.go to fix undefined symbol compilation errors. - Created pkg/api/handlers/gitops/helpers.go with isDemoMode, errNoClusterAccess, handleK8sError, writeSSEEvent, and streamDemoSSE functions - Added maxK8sNameLen constant (253) to pkg/api/handlers/validation.go These functions were being called by operators.go but were not available in the gitops package. Following the established pattern from other sub-packages (workloads, missions, benchmarks), each sub-package maintains its own copy of common helper functions. Fixes #18009 Signed-off-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Scanner Bot <scanner@kubestellar.io>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole canceled.
|
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
|
Closing: merge conflicts. Will open a fresh fix. |
Fixes #18009
Summary
Fixed compilation errors in the Build and Deploy KC workflow caused by undefined symbols in the gitops package.
Changes
Root Cause
The operators.go file in the gitops package was calling functions that were not available in its package scope. Following the established pattern from other sub-packages (workloads, missions, benchmarks), each sub-package maintains its own copy of common helper functions.
Testing
CI build will validate the fix.