Example #1
0
 def update_mesos_instance(self, access_token: str, project_id: str,
                           cluster_id: str, ns: str, data: Dict,
                           kind: str) -> Dict:
     """更新 mesos 应用"""
     client = MesosClient(access_token, project_id, cluster_id, None)
     if kind == MesosResourceName.deployment.value:
         return client.update_deployment(ns, data)
     return client.update_application(ns, data)
 def update_application(self, client: MesosClient,
                        params: Union[Dict]) -> Dict:
     return client.update_application(self.instance_data.namespace,
                                      self.instance_data.manifest,
                                      params=params)