Reputation: 1865
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
Upvotes: 1
Views: 469
Reputation: 218
I know it is old, but it's wrong. Question was about templates, not configs. If you create a template (.jinja) and import it from config (.yaml) during deployment using gcloud, it DOES require a .jinja.schema file for each imported .jinja.
Schemas are used by gcloud during packaging of your deployment, they are not required if you use plain yaml (no imports=no schema), they are also not required if you deploy directly using API.
Upvotes: 0
Reputation: 81386
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
Upvotes: 2