DataWorkz-NL / KubeETL

ETL controller for Kubernetes
Apache License 2.0
4 stars 0 forks source link

Panic on DataSet reconciler when running the examples #59

Closed Blokje5 closed 2 years ago

Blokje5 commented 2 years ago

To run the examples: Create a Kind Cluster Build the docker image of KubeETL Load the docker image kind load docker-image ghcr.io/dataworkz-nl:main Follow the installation guide (both argo workflows and kubeetl) Follow the examples.

E0527 15:24:19.164198       1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 258 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic(0x1775340, 0x25bdde0)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/runtime/runtime.go:74 +0x95
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/runtime/runtime.go:48 +0x86
panic(0x1775340, 0x25bdde0)
        /usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/dataworkz/kubeetl/controllers.(*DataSetReconciler).Reconcile(0xc0005a3470, 0x1b750b8, 0xc0008da0f0, 0xc000627729, 0x7, 0xc0006276f0, 0x10, 0xc0008da0f0, 0xc000030000, 0x1805640, ...)
        /workspace/controllers/dataset_controller.go:40 +0xbc
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0004efc20, 0x1b75010, 0xc0005616c0, 0x17c8f60, 0xc00074e2c0)
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.1/pkg/internal/controller/controller.go:297 +0x30d
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0004efc20, 0x1b75010, 0xc0005616c0, 0x2000000000000)
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.1/pkg/internal/controller/controller.go:252 +0x205
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2(0x1b75010, 0xc0005616c0)
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.1/pkg/internal/controller/controller.go:215 +0x4a
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1()
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185 +0x37
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc000706f50)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155 +0x5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000947f50, 0x1b3ffa0, 0xc0008da060, 0xc000561601, 0xc000794960)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156 +0x9b
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000706f50, 0x3b9aca00, 0x0, 0xc000312501, 0xc000794960)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133 +0x98
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext(0x1b75010, 0xc0005616c0, 0xc00031b440, 0x3b9aca00, 0x0, 0x1)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185 +0xa6
k8s.io/apimachinery/pkg/util/wait.UntilWithContext(0x1b75010, 0xc0005616c0, 0xc00031b440, 0x3b9aca00)
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99 +0x57
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.1/pkg/internal/controller/controller.go:212 +0x40d
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x1612e1c]