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

fix panic on GetHostFromConfigEndpoint #227

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

kobzonega
Copy link
Contributor

@kobzonega kobzonega commented Jun 28, 2024

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • fix panic on GetHostFromConfigEndpoint

Other information

panic: interface conversion: interface {} is []interface {}, not []schema.Host [recovered]
	panic: interface conversion: interface {} is []interface {}, not []schema.Host

goroutine 689 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:119 +0x1fa
panic({0x1b4f8c0, 0xc003a9d800})
	/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/ydb-platform/ydb-kubernetes-operator/api/v1alpha1.(*Storage).GetHostFromConfigEndpoint(0xc000bbe2c0)
	/workspace/api/v1alpha1/storage_webhook.go:69 +0x177

@kobzonega kobzonega changed the title fix panic on GetHostFromConfigEndpoint #2 fix panic on GetHostFromConfigEndpoint Jun 28, 2024
@kobzonega kobzonega merged commit 5c82a99 into master Jun 28, 2024
7 checks passed
@kobzonega kobzonega deleted the fix-panic-on-GetHostFromConfigEndpoint branch June 28, 2024 17:43
kobzonega added a commit to kobzonega/ydb-kubernetes-operator that referenced this pull request Jul 15, 2024
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

Successfully merging this pull request may close these issues.

1 participant