Skip to content

Commit 62ca730

Browse files
author
Alan Christie
committed
fix: Env values now strings
1 parent 10b6ab7 commit 62ca730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

operator/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ def create(spec: Dict[str, Any], name: str, namespace: str, **_: Any) -> Dict[st
318318
c_env.append({"name": "JUPYTER_ENABLE_LAB", "value": "true"})
319319

320320
# Add a Project UUID environment variable
321-
c_env.append({"name": "DM_PROJECT_ID", "value": project_id})
322-
# Add the instance owner (expected to have been extracted from a variable)
323-
c_env.append({"name": "DM_INSTANCE_OWNER", "value": instance_owner})
321+
c_env.append({"name": "DM_PROJECT_ID", "value": str(project_id)})
322+
# Add the instance owner (expected to have been extracted from a label)
323+
c_env.append({"name": "DM_INSTANCE_OWNER", "value": str(instance_owner)})
324324

325325
kopf.adopt(deployment_body)
326326
apps_api = kubernetes.client.AppsV1Api()

0 commit comments

Comments
 (0)