-
Bug
-
Resolution: Done
-
Major
-
DWO 0.21.0
-
None
-
False
-
None
-
False
-
-
Description of problem:
When configuring Dev Spaces to disable automatic workspace Service Account creation, the DevWorkspace Controller can crash if the manually created Service Account cannot be found by the operator.
Workaround: Add label controller.devfile.io/devworkspace_id: "true" to any manually created workspace Service Accounts.
Prerequisites (if any, like setup, operators/versions):
- Install Dev Spaces
Steps to Reproduce
- Configure CheCluster to disable automatic service account creation by setting .config.workspace.serviceAccount.disableCreation: true
- Start a workspace
- Controller pod restarts with
{{{"level":"info","ts":"2023-06-29T23:41:33Z","msg":"Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference","controller":"devworkspace","controllerGroup":"workspace.devfile.io","controllerKind":"DevWorkspace","DevWorkspace":
{"name":"plain-devworkspace","namespace":"openshift-operators"},"namespace":"openshift-operators","name":"plain-devworkspace","reconcileID":"79d7c3d5-7edd-4833-bcac-173058865601"}
}}
h3. Reproducibility (Always/Intermittent/Only Once): Always
Acceptance criteria:
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):