Closed r-delgadillo closed 1 year ago
@r-delgadillo Thanks for raising this issue. we will triage and let you know for any further details.
@hsubramanianaks I switched my application to use a Deployment K8 object and it was able to redirect traffic correctly.
@hsubramanianaks This might have something to do with the code handling patching of Statefulset.
The V1Patch
constructor is set with a object of type JsonPatchDocument<V1StatefulSet>
but when we patching Deployments, we are using a string today:
https://github.com/Azure/Bridge-To-Kubernetes/blob/92d8d3fa7de1853df59f53f0e5f9932375d3a3e5/src/library/Connect/KubernetesRemoteEnvironmentManager.cs#L739
More info here: https://github.com/kubernetes-client/csharp/issues/772 Serializing the object to json first might solve this issue.
@Eneuman exactly I was looking at the same place and cause, thanks for the info. I will keep looking into.
@hsubramanianaks provided a .vsix file with the fix. I was able to verify on my local computer that it's not working with the .vsix file installed. We'll use this .vsix file until the official fix is released. Thank you!
@r-delgadillo you said it is not working but it is working, correct? just a typo on the statement. Also, I have replied on the volume mounts questions you had. Thank you for raising this issue. we will move forward with this fix.
@hsubramanianaks Yes you're correct, it was a typo. The fix with the .vsix file IS working. Thank you
@r-delgadillo this is released with version 1.0.20230418.1, closing the issue. Please feel free to reopen if it happens again. Thanks.
Describe the bug I'm attempting to set up Bridge-to-kubernetes (B2K) by using VS Code w/ Bridge To Kubernetes extension. I've successfully configured B2K by running (Bridge to Kubernetes: Configer) but I'm not able to redirect the traffic from my Minikube K8 cluster to my local environment when launching the VS code task.
I'm connected to VS Code by using remote ssh.
Below is the example Task.json configuration:
To Reproduce Steps to reproduce the behavior:
Expected behavior The development computer is connected when the VS Code Status bar turns orange and the Kubernetes extension shows you are connected.
Screenshots VS Code Error:
Desktop (please complete the following information): Remote machine: linux ubuntu amd64 cpu: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz