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

controllers matrix出现panic: runtime error: slice bounds out of range [:-1] #2

Open
cxwen opened this issue Jun 30, 2020 · 0 comments

Comments

@cxwen
Copy link
Owner

cxwen commented Jun 30, 2020

报错日志

kubectl logs -f matrix-controller-manager-54c59d4fdc-cgpnn -n matrix-system -c manager
2020-06-30T06:28:38.816Z	INFO	controllers.Matrix	check master status	{"matrix": "default/example", "name": "example-km", "phase": "Initializing"}
panic: runtime error: slice bounds out of range [:-1]

goroutine 664 [running]:
github.com/cxwen/matrix/pkg.(*MasterDedploy).CheckMasterRunning.func1(0xc00055c800, 0x16e1640, 0xc000221c20, 0xc000522060, 0xc0002c0040, 0xc0001e6000, 0xc00055f7a9, 0x7, 0xc000522050, 0xa)
	/workspace/pkg/master.go:430 +0x5fd
created by github.com/cxwen/matrix/pkg.(*MasterDedploy).CheckMasterRunning
	/workspace/pkg/master.go:407 +0x1bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant