mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
388 B
19 lines
388 B
9 years ago
|
"""Constructs a VM."""
|
||
|
import json
|
||
|
|
||
|
import helpers.common
|
||
|
import helpers.extra.common2
|
||
|
|
||
|
|
||
|
def GenerateConfig(_):
|
||
|
"""Generates config of a VM."""
|
||
|
return """
|
||
|
resources:
|
||
|
- name: %s
|
||
|
type: compute.v1.instance
|
||
|
properties:
|
||
|
machineSize: %s
|
||
|
""" % (helpers.common.GenerateMachineName(
|
||
|
json.dumps('myFrontend').strip('"'), 'prod'),
|
||
|
helpers.extra.common2.GenerateMachineSize())
|