Skip to content

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

@cxwen

Description

@cxwen

报错日志

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions