panic: The environment variable "SYSTEM_NAMESPACE" is not set
If this is a process running on Kubernetes, then it should be using the downward
API to initialize this variable via:
env:
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
If this is a Go unit test consuming system.Namespace() then it should add the
following import:
import (
_ "knative.dev/pkg/system/testing"
)
goroutine 1 [running]:
knative.dev/pkg/system.Namespace()
knative.dev/pkg@v0.0.0-20240926013127-c4843b746d24/system/env.go:39 +0x8a
sigs.k8s.io/karpenter/pkg/operator.NewOperator()
sigs.k8s.io/karpenter@v0.36.9/pkg/operator/operator.go:108 +0x78
main.main()
github.com/aws/karpenter-provider-aws/cmd/controller/main.go:33 +0x25
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.