Skip to content

Commit

Permalink
create ephemeral app without listen events
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Oct 18, 2024
1 parent a8602c9 commit 06a344e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oc/od/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4699,6 +4699,7 @@ def create(self, myDesktop, app, authinfo, userinfo={}, userargs=None, **kwargs
appinstancestatus = oc.od.appinstancestatus.ODAppInstanceStatus( id=app_container_name, type=self.type, wm_class=app.get('launch') )
appinstancestatus.message = "Application" # default message

"""
# field_selector=f'involvedObject.name={pod_name}'
# timeout_seconds=oc.od.settings.desktop['K8S_CREATE_POD_TIMEOUT_SECONDS'],
# send_initial_events=False,
Expand Down Expand Up @@ -4796,9 +4797,9 @@ def create(self, myDesktop, app, authinfo, userinfo={}, userargs=None, **kwargs
else:
self.logger.debug(f"stop because {event_object.reason}")
w.stop()

self.logger.debug(f"w.stream kubeapi.list_namespaced_event done")

"""

pod = self.orchestrator.kubeapi.read_namespaced_pod(namespace=self.orchestrator.namespace,name=pod_name)
if isinstance( pod, V1Pod ) and \
Expand Down

0 comments on commit 06a344e

Please sign in to comment.