Пример #1
0
 def __init__(self,
              provider,
              name,
              namespace,
              image,
              replicas,
              json_override_params={}):
     ContainersResourceBase.__init__(self, provider, name, namespace)
     self.image = image
     self.replicas = replicas
     self._json_override_params = json_override_params
Пример #2
0
 def __init__(self, provider, name):
     ContainersResourceBase.__init__(self, provider, name, None)
Пример #3
0
 def __init__(self, provider, name, registry, namespace):
     ContainersResourceBase.__init__(self, provider, name, namespace)
     self.registry = registry
     full_host = registry.split('/')[0]
     self.host, self.port = full_host.split(':') if ':' in full_host else (
         full_host, '')
Пример #4
0
 def __init__(self, provider, name, image_id):
     ContainersResourceBase.__init__(self, provider, name, None)
     self.id = image_id
Пример #5
0
 def __init__(self, provider, name, image_id, image_project_name=None):
     ContainersResourceBase.__init__(self, provider, name, None)
     self.id = image_id
     self.image_project_name = image_project_name