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

storagedComponent when Storaged.Service is nil,got panic #173

Closed
lifetruth-liu opened this issue Jan 13, 2023 · 2 comments
Closed

storagedComponent when Storaged.Service is nil,got panic #173

lifetruth-liu opened this issue Jan 13, 2023 · 2 comments

Comments

@lifetruth-liu
Copy link

func (c *storagedComponent) GetServiceSpec() *ServiceSpec {

...
func (c *storagedComponent) GetServiceSpec() *ServiceSpec {
	if c.nc.Spec.Storaged.Service != nil {
		return nil
	}
	return c.nc.Spec.Storaged.Service.DeepCopy()
}
...
@MegaByte875
Copy link
Contributor

@lifetruth-liu Thanks a lot, I will fix the bug asap.

@MegaByte875 MegaByte875 mentioned this issue Feb 13, 2023
3 tasks
@MegaByte875
Copy link
Contributor

I will close the issue, please re-open it if you have other questions.

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

2 participants