Do GCP Deployment Manager templates require a schema file?

流过昼夜 提交于 2021-02-19 07:41:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!