Hello! Is there a way to enable debug logging on t...
# kubernetes
m
Hello! Is there a way to enable debug logging on the Kubernetes Operator? All I get is this message which does not give me enough information:
Copy code
{"level":"error","ts":"2025-01-17T14:38:01.953+0100","logger":"controller_stack","msg":"Failed to setup Pulumi workspace","Request.Namespace":"pulumi-kubernetes-operator","Request.Name":"eks-prd","Stack.Name":"organization/eks/eks-prd","error":"installing project dependencies: exit status 1","stacktrace":"<http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler|sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler>\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214"}
{"level":"error","ts":"2025-01-17T14:38:01.954+0100","logger":"controller_stack","msg":"Failed to update Stack","Request.Namespace":"pulumi-kubernetes-operator","Request.Name":"eks-prd","Stack.Name":"organization/eks/eks-prd","error":"installing project dependencies: exit status 1","stacktrace":"<http://github.com/pulumi/pulumi-kubernetes-operator/pkg/controller/stack.(*ReconcileStack).Reconcile|github.com/pulumi/pulumi-kubernetes-operator/pkg/controller/stack.(*ReconcileStack).Reconcile>\n\t/home/runner/work/pulumi-kubernetes-operator/pulumi-kubernetes-operator/pkg/controller/stack/stack_controller.go:638\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214"}
s
I don't have a direct answer to your question, but it might be helpful to supply the following info: 1. Which version of the operator: 1.x or 2.x? 2. What language is your stack written in?
m
Hi Josh, using version 1.16.0 with TS