GoogleCloudPlatform / GoogleCloudPlatform/deploymentmanager-samples

Wrong type in examples/v2/cloudsql/cloudsql.jinja.schema

Open
#501 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.