Skip to content

Instantly share code, notes, and snippets.

@guilhem
Created July 15, 2022 14:12
Show Gist options
  • Save guilhem/8185e0fa9f043434984e9adb93ac8231 to your computer and use it in GitHub Desktop.
Save guilhem/8185e0fa9f043434984e9adb93ac8231 to your computer and use it in GitHub Desktop.
kyverno 1.7.2-rc1 with --disableMetrics=true
I0715 14:09:41.134709 1 controller.go:231] PolicyController "msg"="policy created" "kind"="ClusterPolicy" "name"="block-updates-deletes" "uid"="230551e2-901c-4209-ae4b-1c26b9e05af2"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x2088154]
goroutine 4790 [running]:
github.com/kyverno/kyverno/pkg/metrics/policychanges.registerPolicyChangesMetric(0x0, {0x27cfba3, 0x7}, {0x27cf965, 0x7}, {0x27ca52f, 0x5}, {0x0, 0x32da7b0}, {0xc000dea4c8, ...}, ...)
/src/pkg/metrics/policychanges/policyChanges.go:23 +0xb4
github.com/kyverno/kyverno/pkg/metrics/policychanges.RegisterPolicy(0xc00010c060, {0x3334698, 0xc000318a00}, {0x27cf9ff, 0x7})
/src/pkg/metrics/policychanges/policyChanges.go:48 +0xa8
github.com/kyverno/kyverno/pkg/policy.(*PolicyController).registerPolicyChangesMetricAddPolicy(0x440bc5, {{0x32da7b0, 0xc000a390e0}, 0x0}, {0x3334698, 0xc000318a00})
/src/pkg/policy/metrics.go:40 +0x79
created by github.com/kyverno/kyverno/pkg/policy.(*PolicyController).addPolicy
/src/pkg/policy/policy_controller.go:184 +0x348
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment