Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

注入 sidecar 出现空指针问题 #79

Closed
chuntaojun opened this issue Sep 2, 2022 · 0 comments · Fixed by #80 or #81
Closed

注入 sidecar 出现空指针问题 #79

chuntaojun opened this issue Sep 2, 2022 · 0 comments · Fixed by #80 or #81
Labels
bug Something isn't working

Comments

@chuntaojun
Copy link
Member

Describe the bug

2022-09-01T15:44:45.958088Z	info	inject/inject.go:402	Sidecar injection policy for bookinfo/details-v1-5498c86cf5-***** (actual name not yet known): namespacePolicy:enabled useDefault:true inject:false required:true sidecar.istio.io/proxyMemory:(unset) sidecar.istio.io/userVolume:(unset) sidecar.istio.io/userVolumeMount:(unset) traffic.sidecar.istio.io/includeInboundPorts:(unset) sidecar.istio.io/status:(unset) sidecar.istio.io/bootstrapOverride:(unset) sidecar.istio.io/statsInclusionSuffixes:(unset) readiness.status.sidecar.istio.io/initialDelaySeconds:(unset) traffic.sidecar.istio.io/excludeOutboundIPRanges:(unset) sidecar.istio.io/discoveryAddress:(unset) sidecar.istio.io/rewriteAppHTTPProbers:(unset) sidecar.istio.io/controlPlaneAuthPolicy:(unset) sidecar.istio.io/proxyImage:(unset) sidecar.istio.io/interceptionMode:(unset) sidecar.istio.io/statsInclusionPrefixes:(unset) sidecar.istio.io/enableCoreDump:(unset) traffic.sidecar.istio.io/includeOutboundIPRanges:(unset) sidecar.polarismesh.cn/inject:(unset) sidecar.istio.io/statsInclusionRegexps:(unset) status.sidecar.istio.io/port:(unset) readiness.status.sidecar.istio.io/periodSeconds:(unset) readiness.status.sidecar.istio.io/failureThreshold:(unset) traffic.sidecar.istio.io/excludeInboundPorts:(unset) traffic.sidecar.istio.io/excludeOutboundPorts:(unset) traffic.sidecar.istio.io/kubevirtInterfaces:(unset) sidecar.istio.io/proxyCPU:(unset) 
2022-09-01T15:44:45.959088Z	info	http/server.go:1802	http: panic serving 10.130.97.147:9218: assignment to entry in nil map
goroutine 1522 [running]:
net/http.(*conn).serve.func1()
	/opt/hostedtoolcache/go/1.17.1/x64/src/net/http/server.go:1801 +0xb9
panic({0x171b240, 0x1b75d50})
	/opt/hostedtoolcache/go/1.17.1/x64/src/runtime/panic.go:1047 +0x266
github.com/polarismesh/polaris-controller/pkg/inject/pkg/kube/inject.InjectionData({0xc000420000, 0xf2a}, {0xc000235400, 0xaac}, {0xc000056800, 0x40}, 0xc000162780, 0xc00092d200, 0xc0006c1118, 0xc0006c1020, ...)
	/home/runner/work/polaris-controller/polaris-controller/pkg/inject/pkg/kube/inject/inject.go:466 +0x425
github.com/polarismesh/polaris-controller/pkg/inject/pkg/kube/inject.(*Webhook).injectV1(0xc0004e86c0, 0x10)
	/home/runner/work/polaris-controller/polaris-controller/pkg/inject/pkg/kube/inject/webhook.go:966 +0x891
github.com/polarismesh/polaris-controller/pkg/inject/pkg/kube/inject.(*Webhook).serveInject(0x800, {0x1bad5b0, 0xc000d002a0}, 0xc0009a4a00)
	/home/runner/work/polaris-controller/polaris-controller/pkg/inject/pkg/kube/inject/webhook.go:1050 +0x8df
net/http.HandlerFunc.ServeHTTP(0x16975e0, {0x1bad5b0, 0xc000d002a0}, 0xc000d002a0)
	/opt/hostedtoolcache/go/1.17.1/x64/src/net/http/server.go:2046 +0x2f
net/http.(*ServeMux).ServeHTTP(0xc000fc5cbd, {0x1bad5b0, 0xc000d002a0}, 0xc0009a4a00)
	/opt/hostedtoolcache/go/1.17.1/x64/src/net/http/server.go:2424 +0x149
net/http.serverHandler.ServeHTTP({0x1b9d9d0}, {0x1bad5b0, 0xc000d002a0}, 0xc0009a4a00)
	/opt/hostedtoolcache/go/1.17.1/x64/src/net/http/server.go:2878 +0x43b
net/http.(*conn).serve(0xc000d4c780, {0x1bb8358, 0xc000012b70})
	/opt/hostedtoolcache/go/1.17.1/x64/src/net/http/server.go:1929 +0xb08
created by net/http.(*Server).Serve
	/opt/hostedtoolcache/go/1.17.1/x64/src/net/http/server.go:3033 +0x4e8
2022-09-01T15:44:45.969062Z	info	controller/controller.go:596	Service bookinfo/productpage is polaris type, in queue
2022-09-01T15:44:45.969090Z	info	controller/controller.go:590	Endpoint bookinfo/productpage is polaris, in queue
2022-09-01T15:44:45.974239Z	info	inject/webhook.go:1005

To Reproduce
Steps to reproduce the behavior.

Expected behavior
A clear and concise description of what you expected to happen.

Environment

  • Version: [e.g. v1.0.0]
  • OS: [e.g. CentOS8]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant