You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Log warning but don't fail - user might provide port via config
138
+
fmt.Printf(" ⚠ Warning: Could not auto-detect Service port: %v\n", err)
139
+
fmt.Println(" You can manually specify --sidecar-port-forward")
140
+
} elseifdetectedPort>0 {
141
+
// Validate port doesn't conflict with sidecar HTTPS port (8443)
142
+
ifdetectedPort==8443 {
143
+
returnfmt.Errorf("detected Service targetPort %d conflicts with sidecar HTTPS port 8443; please use a different port or specify --sidecar-port-forward manually", detectedPort)
144
+
}
145
+
sidecarPortForward=detectedPort
146
+
fmt.Printf(" ✓ Auto-detected Service targetPort: %d (will be forwarded via sidecar)\n", sidecarPortForward)
0 commit comments