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

bug: nil pointer for additionalMetadata #1387

Open
oliverbaehler opened this issue Feb 25, 2025 · 0 comments
Open

bug: nil pointer for additionalMetadata #1387

oliverbaehler opened this issue Feb 25, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@oliverbaehler
Copy link
Collaborator

Bug description

When adding additionalMetadata to replications, there is a nil pointer. I have not yet checked if there's any specific conditions.

How to reproduce

Create a Replication like so:

apiVersion: capsule.clastix.io/v1beta2
kind: GlobalTenantResource
metadata:
  name: renewable-pull-secrets
spec:
  tenantSelector:
    matchLabels:
      kubernetes.io/metadata.name: solar
  resyncPeriod: 60s
  resources:
    - additionalMetadata:
        labels:
          "replicated-by": "capsule" 
      rawItems:
        - apiVersion: networking.k8s.io/v1
          kind: NetworkPolicy
          metadata:
            name: zero-trust
          spec:
            podSelector: {}  # This applies to all pods in the namespace
            policyTypes:
            - Ingress
            - Egress
            ingress:
            - from:
              - podSelector: {}  # Only allow traffic from pods in the same namespace
            egress:
            - to:
              - podSelector: {}  # Only allow traffic to pods in the same namespace

Policies are not created

Logs

{"level":"error","ts":"2025-02-25T15:18:23.681Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"f5146beb-e94a-4381-9017-66b26ea19d11","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:23.722Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"9aecf3d4-61dd-4c69-bda5-f2b9dc3a43c5"}
{"level":"error","ts":"2025-02-25T15:18:23.723Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"9aecf3d4-61dd-4c69-bda5-f2b9dc3a43c5","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc001433140}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc000d16b60, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc001433140}, 0xc000c06900)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc001433140}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc0014330b0?, {0x1e354e8?, 0xc001433140?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:23.723Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"9aecf3d4-61dd-4c69-bda5-f2b9dc3a43c5","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:23.804Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"218d4d75-fa10-43c4-b62d-f7bf120be459"}
{"level":"error","ts":"2025-02-25T15:18:23.805Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"218d4d75-fa10-43c4-b62d-f7bf120be459","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc00150aed0}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc000d17160, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc00150aed0}, 0xc000c07080)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc00150aed0}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc00150ae40?, {0x1e354e8?, 0xc00150aed0?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:23.806Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"218d4d75-fa10-43c4-b62d-f7bf120be459","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:23.966Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"65e4527f-81b1-42c0-b8bb-911a6443e50d"}
{"level":"error","ts":"2025-02-25T15:18:23.968Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"65e4527f-81b1-42c0-b8bb-911a6443e50d","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc00156c030}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc000d17760, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc00156c030}, 0xc000c07680)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc00156c030}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc00151bf20?, {0x1e354e8?, 0xc00156c030?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:23.969Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"65e4527f-81b1-42c0-b8bb-911a6443e50d","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:24.290Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"2636ba77-01dc-475d-a399-cfed139b616f"}
{"level":"error","ts":"2025-02-25T15:18:24.291Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"2636ba77-01dc-475d-a399-cfed139b616f","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc0015bd0e0}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc000d17de0, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc0015bd0e0}, 0xc000c07c80)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc0015bd0e0}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc0015bd050?, {0x1e354e8?, 0xc0015bd0e0?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:24.291Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"2636ba77-01dc-475d-a399-cfed139b616f","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:24.932Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"887890fa-a79f-4d95-b8cc-ad5e68b7d5db"}
{"level":"error","ts":"2025-02-25T15:18:24.934Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"887890fa-a79f-4d95-b8cc-ad5e68b7d5db","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc0015f0210}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc0013b0500, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc0015f0210}, 0xc000c60480)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc0015f0210}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc0015f0180?, {0x1e354e8?, 0xc0015f0210?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:24.934Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"887890fa-a79f-4d95-b8cc-ad5e68b7d5db","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:26.215Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"0f884718-70dd-4ce7-bf03-1d2d1d09a230"}
{"level":"error","ts":"2025-02-25T15:18:26.217Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"0f884718-70dd-4ce7-bf03-1d2d1d09a230","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc001609ce0}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc0013b0e00, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc001609ce0}, 0xc000c60f00)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc001609ce0}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc001609c50?, {0x1e354e8?, 0xc001609ce0?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:26.217Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"0f884718-70dd-4ce7-bf03-1d2d1d09a230","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"info","ts":"2025-02-25T15:18:29.052Z","msg":"start processing","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"fdb853b1-2b4b-4a5f-b3d3-7db0a374a7e0"}
{"level":"error","ts":"2025-02-25T15:18:29.059Z","msg":"Observed a panic","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"fdb853b1-2b4b-4a5f-b3d3-7db0a374a7e0","panic":"assignment to entry in nil map","panicGoValue":"\"assignment to entry in nil map\"","stacktrace":"goroutine 563 [running]:\nk8s.io/apimachinery/pkg/util/runtime.logPanic({0x1e354e8, 0xc001647740}, {0x191fde0, 0x1e13690})\n\tk8s.io/apimachinery@v0.31.1/pkg/util/runtime/runtime.go:107 +0xbc\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile.func1()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:105 +0x112\npanic({0x191fde0?, 0x1e13690?})\n\truntime/panic.go:785 +0x132\ngithub.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection(_, {_, _}, {{{0x17b144c, 0x6}, {0xc0013b1900, 0x1a}}, {{0xc0012a07d0, 0x5}, {0x0, ...}, ...}, ...}, ...)\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125 +0x5d4\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal(0xc000268800, {0x1e354e8, 0xc001647740}, 0xc000c61800)\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162 +0x97e\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile(0xc000268800, {0x1e354e8, 0xc001647740}, {{{0x0?, 0x1b6cc73?}, {0xc0011834e8?, 0x100?}}})\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115 +0x345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile(0xc0016476b0?, {0x1e354e8?, 0xc001647740?}, {{{0x0?, 0x0?}, {0xc0011834e8?, 0x0?}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116 +0xbf\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler(0x1e436a0, {0x1e35520, 0xc0004db860}, {{{0x0, 0x0}, {0xc0011834e8, 0x16}}})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303 +0x3a5\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem(0x1e436a0, {0x1e35520, 0xc0004db860})\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263 +0x20e\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2()\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224 +0x85\ncreated by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2 in goroutine 276\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:220 +0x490\n","stacktrace":"github.com/projectcapsule/capsule/controllers/resources.(*Processor).HandleSection\n\tgithub.com/projectcapsule/capsule/controllers/resources/processor.go:125\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).reconcileNormal\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:162\ngithub.com/projectcapsule/capsule/controllers/resources.(*Global).Reconcile\n\tgithub.com/projectcapsule/capsule/controllers/resources/global.go:115\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:116\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:303\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
{"level":"error","ts":"2025-02-25T15:18:31.176Z","msg":"Reconciler error","controller":"globaltenantresource","controllerGroup":"capsule.clastix.io","controllerKind":"GlobalTenantResource","GlobalTenantResource":{"name":"renewable-pull-secrets"},"namespace":"","name":"renewable-pull-secrets","reconcileID":"fdb853b1-2b4b-4a5f-b3d3-7db0a374a7e0","error":"panic: assignment to entry in nil map [recovered]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:263\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.19.4/pkg/internal/controller/controller.go:224"}
^C
@oliverbaehler oliverbaehler added blocked-needs-validation Issue need triage and validation bug Something isn't working help wanted Extra attention is needed and removed blocked-needs-validation Issue need triage and validation labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant