omrikiei / ktunnel

A cli that exposes your local resources to kubernetes
GNU General Public License v3.0
975 stars 75 forks source link

ktunnel inject fails #115

Open gocruncher opened 1 year ago

gocruncher commented 1 year ago

ktunnel inject deployment singlespace-deployment -n sa-dev 8080
INFO[0000] Injecting tunnel sidecar to sa-dev/singlespace-deployment WARN[0001] docker.io/omrieival/ktunnel:v1.5.3 already injected to the deplyoment INFO[0001] ProgressDeadlineInSeconds is currently 600s. It may take this long to detect a deployment failure. INFO[0001] Waiting for deployment to be ready
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2023b53]

goroutine 9 [running]: github.com/omrikiei/ktunnel/pkg/k8s.deploymentStatus(0xc00019cf00) /home/runner/work/ktunnel/ktunnel/pkg/k8s/common.go:404 +0x693 github.com/omrikiei/ktunnel/pkg/k8s.watchForReady.func1() /home/runner/work/ktunnel/ktunnel/pkg/k8s/common.go:377 +0x385 created by github.com/omrikiei/ktunnel/pkg/k8s.watchForReady /home/runner/work/ktunnel/ktunnel/pkg/k8s/common.go:331 +0x72

What is wrong

omrikiei commented 1 year ago

looks like there's an ungraceful error handling, was there already an injected sidecar of ktunnel to this deployment? is expose a viable alternative?