GoogleCloudPlatform / GoogleCloudPlatform/deploymentmanager-samples
Wrong type in examples/v2/cloudsql/cloudsql.jinja.schema
Open
- Dominant language
- Jinja
- Stars
- 951
- Forks
- 700
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
in examples/v2/cloudsql/cloudsql.jinja.schema line 59, authorizedNetworks is wrongly defined as array of strings instead of objects. Passing CIDR strings does not work:
wrong:
authorizedNetworks:
- "1.2.3.4/32"
correct:
authorizedNetworks:
- name: "test-vm"
value: "1.2.3.4/32"
Hence, the schema should be:
authorizedNetworks:
type: array
description: An array of allowed CIDR blocks
items:
type: **object**
Kind regards,
André.
Contributor guide
Assessment
This issue has not been assessed yet.