Skip to content

Commit dacf620

Browse files
amrkk123q2w
andauthored
fix: Adding alternate defaults for tables (#28)
Co-authored-by: abhishek kumar tiwari <[email protected]>
1 parent e2a5c82 commit dacf620

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Functional examples are included in the
3131
| Name | Description | Type | Default | Required |
3232
|------|-------------|------|---------|:--------:|
3333
| deletion\_protection | Whether or not to allow Terraform to destroy the instance | `bool` | `true` | no |
34-
| display\_name | The human-readable display name of the Bigtable instance. Defaults to the instance name | `string` | n/a | yes |
34+
| display\_name | The human-readable display name of the Bigtable instance. Defaults to the instance name | `string` | `null` | no |
3535
| labels | labels associated to the Bigtable instance. | `map(string)` | `{}` | no |
3636
| name | The unique name of the Bigtable instance. | `string` | n/a | yes |
3737
| project\_id | The ID of the project in which the resource belongs | `string` | n/a | yes |

metadata.display.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ spec:
3333
display_name:
3434
name: display_name
3535
title: Display Name
36+
level: 1
3637
labels:
3738
name: labels
3839
title: Labels
@@ -48,6 +49,13 @@ spec:
4849
tables:
4950
name: tables
5051
title: Tables
52+
level: 1
53+
altDefaults:
54+
- type: ALTERNATE_TYPE_DC
55+
value:
56+
table1:
57+
table_name: table-1
5158
zones:
5259
name: zones
5360
title: Zones
61+
level: 1

metadata.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ spec:
4747
- name: display_name
4848
description: The human-readable display name of the Bigtable instance. Defaults to the instance name
4949
varType: string
50-
required: true
5150
- name: deletion_protection
5251
description: Whether or not to allow Terraform to destroy the instance
5352
varType: bool

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ variable "name" {
3131
variable "display_name" {
3232
description = "The human-readable display name of the Bigtable instance. Defaults to the instance name"
3333
type = string
34+
default = null
3435
}
3536

3637
variable "deletion_protection" {

0 commit comments

Comments
 (0)