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

panic: runtime error: invalid memory address or nil pointer dereference #76

Open
brankom-daon opened this issue May 31, 2023 · 0 comments

Comments

@brankom-daon
Copy link

Hi, I'm trying to deploy aws-secret-operator on EKS 1.24 and I'm getting following error

2023-05-31T09:52:34Z	INFO	controller.awssecret-controller	Starting Controller	{"reconciler group": "mumoshu.github.io", "reconciler kind": "AWSSecret"}
2023-05-31T09:52:34Z	INFO	controller.awssecret-controller	Starting workers	{"reconciler group": "mumoshu.github.io", "reconciler kind": "AWSSecret", "worker count": 1}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x14ad515]

goroutine 562 [running]:
github.com/mumoshu/aws-secret-operator/controllers.(*SyncContext).SecretsManagerSecretToKubernetesStringData(0x1624580, {{0xc0009023f0, 0x17f6017}, {0xc000040450, 0xc0009023e0}})
	/workspace/controllers/secret.go:58 +0x35
github.com/mumoshu/aws-secret-operator/controllers.(*AWSSecretController).newSecretForCR(0xc000c969f0, 0xc000255380)
	/workspace/controllers/awssecret_controller.go:131 +0x10a
github.com/mumoshu/aws-secret-operator/controllers.(*AWSSecretController).Reconcile(0xc000c969f0, {0x1ab2578, 0xc000f06060}, {{{0xc0009023e0, 0x173d660}, {0xc0009023d0, 0x30}}})
	/workspace/controllers/awssecret_controller.go:75 +0x265
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0xc00087e6e0, {0x1ab2578, 0xc000ca5f80}, {{{0xc0009023e0, 0x173d660}, {0xc0009023d0, 0x413834}}})
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114 +0x26f
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc00087e6e0, {0x1ab24d0, 0xc0006bd300}, {0x16863e0, 0xc0003ec580})
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311 +0x33e
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc00087e6e0, {0x1ab24d0, 0xc0006bd300})
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266 +0x205
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227 +0x85
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:223 +0x357

Anyone had a similar issue?

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