(context)
return vm_instance.GenerateComputeVM(context)
Generates an instance of container instance with the passed manifest.
Generates an instance of container instance with the passed manifest.
Generates an instance of container instance with the passed manifest .
def GenerateContainerInstance(context):
  """Generates an instance of container instance with the passed manifest."""
  prop = context.properties
  metadata = prop.setdefault(METADATA, dict())
  items = metadata.setdefault('items', list())
  if common.IsComputeLink(prop[C_IMAGE]):
    prop[default.SRCIMAGE] = prop[C_IMAGE]
  else:
    prop[SRCIMAGE] = common.GlobalComputeLink(
        'cos-cloud', 'images', prop[C_IMAGE])
  items.append(
      {
          'key': 'google-container-manifest',
          'value': '%s' % container_helper.GenerateManifest(context)
      })
  return vm_instance.GenerateComputeVM(context)
def GenerateContainerInstance ( context ) : prop = context . properties metadata = prop . setdefault ( METADATA , dict ( ) ) items = metadata . setdefault ( 'items' , list ( ) ) if common . IsComputeLink ( prop [ C_IMAGE ] ) : prop [ default . SRCIMAGE ] = prop [ C_IMAGE ] else : prop [ SRCIMAGE ] = common . GlobalComputeLink ( 'cos-cloud' , 'images' , prop [ C_IMAGE ] ) items . append ( { 'key' : 'google-container-manifest' , 'value' : '%s' % container_helper . GenerateManifest ( context ) } ) return vm_instance . GenerateComputeVM ( context )