问题
Since the templates can store values themselves (in addition to receiving values from the configuration yaml file), is a schema required when we create a template?
If not, is the use of the schema just to enforce which values are required, and the type of values that need to be provided to the template?
EDIT
I'm referring to template schemas, not resource properties schema: https://cloud.google.com/deployment-manager/docs/configuration/templates/using-schemas
回答1:
Google Deployment Manager does not require that you specify a schema, but you can create one for specific use cases. I use Deployment Manager often, and I just use the standard YAML syntax for my deployments.
For those interested in learning more:
Cloud Deployment Manager: Using Schemas
来源:https://stackoverflow.com/questions/53640486/do-gcp-deployment-manager-templates-require-a-schema-file