Skip to content

Commit fb69418

Browse files
authored
Merge pull request #25 from cytopia/release-0.12
Fixes #24 '%' sign as variable default value
2 parents 586621a + 5e4235e commit fb69418

11 files changed

+27
-7
lines changed

data/docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if [ "${#}" -ge "1" ]; then
123123
# Create temporary README.md
124124
mkdir -p /tmp
125125
grep -B 100000000 -F "${DELIM_START}" "${WORKDIR}/${MY_FILE}" > /tmp/README.md
126-
printf "${DOCS}\n\n" >> /tmp/README.md
126+
printf "%s\n\n" "${DOCS}" >> /tmp/README.md
127127
grep -A 100000000 -F "${DELIM_CLOSE}" "${WORKDIR}/${MY_FILE}" >> /tmp/README.md
128128

129129
# Adjust permissions of temporary file

tests/0.12/TEST-0.1.0.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Stuff before terraform-docs
7171
| monitoring_role_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | `` | no |
7272
| monitoring_role_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | `rds-monitoring-role` | no |
7373
| multi_az | Specifies if the RDS instance is multi-AZ | `false` | no |
74-
| name | The DB name to create. If omitted, no database is created initially | `` | no |
7574
| name | Name of security group | - | yes |
75+
| name | The DB name to create. If omitted, no database is created initially | `` | no |
7676
| network | The network | `<map>` | no |
7777
| number_of_computed_egress_rules | Number of computed egress rules to create by name | `0` | no |
7878
| number_of_computed_egress_with_cidr_blocks | Number of computed egress rules to create where 'cidr_blocks' is used | `0` | no |
@@ -87,6 +87,7 @@ Stuff before terraform-docs
8787
| option_group_description | The description of the option group | `` | no |
8888
| option_group_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | `` | no |
8989
| options | A list of Options to apply. | `<list>` | no |
90+
| override_special | | `%` | no |
9091
| parameter_group_description | Description of the DB parameter group to create | `` | no |
9192
| parameter_group_name | Name of the DB parameter group to associate or create | `` | no |
9293
| parameters | A list of DB parameters (map) to apply | `<list>` | no |

tests/0.12/TEST-0.1.1.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Stuff before terraform-docs
7171
| monitoring_role_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `` | no |
7272
| monitoring_role_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `rds-monitoring-role` | no |
7373
| multi_az | Specifies if the RDS instance is multi-AZ | bool | `false` | no |
74-
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7574
| name | Name of security group | string | - | yes |
75+
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7676
| network | The network | object | `<map>` | no |
7777
| number_of_computed_egress_rules | Number of computed egress rules to create by name | number | `0` | no |
7878
| number_of_computed_egress_with_cidr_blocks | Number of computed egress rules to create where 'cidr_blocks' is used | number | `0` | no |
@@ -87,6 +87,7 @@ Stuff before terraform-docs
8787
| option_group_description | The description of the option group | string | `` | no |
8888
| option_group_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `` | no |
8989
| options | A list of Options to apply. | any | `<list>` | no |
90+
| override_special | | string | `%` | no |
9091
| parameter_group_description | Description of the DB parameter group to create | string | `` | no |
9192
| parameter_group_name | Name of the DB parameter group to associate or create | string | `` | no |
9293
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `<list>` | no |

tests/0.12/TEST-0.2.0.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Stuff before terraform-docs
7171
| monitoring_role_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `` | no |
7272
| monitoring_role_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `rds-monitoring-role` | no |
7373
| multi_az | Specifies if the RDS instance is multi-AZ | bool | `false` | no |
74-
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7574
| name | Name of security group | string | - | yes |
75+
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7676
| network | The network | object | `<map>` | no |
7777
| number_of_computed_egress_rules | Number of computed egress rules to create by name | number | `0` | no |
7878
| number_of_computed_egress_with_cidr_blocks | Number of computed egress rules to create where 'cidr_blocks' is used | number | `0` | no |
@@ -87,6 +87,7 @@ Stuff before terraform-docs
8787
| option_group_description | The description of the option group | string | `` | no |
8888
| option_group_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `` | no |
8989
| options | A list of Options to apply. | any | `<list>` | no |
90+
| override_special | | string | `%` | no |
9091
| parameter_group_description | Description of the DB parameter group to create | string | `` | no |
9192
| parameter_group_name | Name of the DB parameter group to associate or create | string | `` | no |
9293
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `<list>` | no |

tests/0.12/TEST-0.3.0.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Stuff before terraform-docs
7171
| monitoring_role_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `` | no |
7272
| monitoring_role_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `rds-monitoring-role` | no |
7373
| multi_az | Specifies if the RDS instance is multi-AZ | bool | `false` | no |
74-
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7574
| name | Name of security group | string | - | yes |
75+
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7676
| network | The network | object | `<map>` | no |
7777
| number_of_computed_egress_rules | Number of computed egress rules to create by name | number | `0` | no |
7878
| number_of_computed_egress_with_cidr_blocks | Number of computed egress rules to create where 'cidr_blocks' is used | number | `0` | no |
@@ -87,6 +87,7 @@ Stuff before terraform-docs
8787
| option_group_description | The description of the option group | string | `` | no |
8888
| option_group_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `` | no |
8989
| options | A list of Options to apply. | any | `<list>` | no |
90+
| override_special | | string | `%` | no |
9091
| parameter_group_description | Description of the DB parameter group to create | string | `` | no |
9192
| parameter_group_name | Name of the DB parameter group to associate or create | string | `` | no |
9293
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `<list>` | no |

tests/0.12/TEST-0.4.0.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ Stuff before terraform-docs
7171
| monitoring_role_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `` | no |
7272
| monitoring_role_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `rds-monitoring-role` | no |
7373
| multi_az | Specifies if the RDS instance is multi-AZ | bool | `false` | no |
74-
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7574
| name | Name of security group | string | - | yes |
75+
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7676
| network | The network | object | `{ "subnets": [ { "cidr_block": "10.0.0.0/16", "id": "vpc-123456" } ], "vpc": [ { "cidr_block": "10.0.0.0/16", "id": "vpc-123456" } ] }` | no |
7777
| number_of_computed_egress_rules | Number of computed egress rules to create by name | number | `0` | no |
7878
| number_of_computed_egress_with_cidr_blocks | Number of computed egress rules to create where 'cidr_blocks' is used | number | `0` | no |
@@ -87,6 +87,7 @@ Stuff before terraform-docs
8787
| option_group_description | The description of the option group | string | `` | no |
8888
| option_group_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `` | no |
8989
| options | A list of Options to apply. | any | `[]` | no |
90+
| override_special | - | string | `%` | no |
9091
| parameter_group_description | Description of the DB parameter group to create | string | `` | no |
9192
| parameter_group_name | Name of the DB parameter group to associate or create | string | `` | no |
9293
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `[]` | no |

tests/0.12/TEST-0.4.5.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ Stuff before terraform-docs
7070
| monitoring_role_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `` | no |
7171
| monitoring_role_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `rds-monitoring-role` | no |
7272
| multi_az | Specifies if the RDS instance is multi-AZ | bool | `false` | no |
73-
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7473
| name | Name of security group | string | - | yes |
74+
| name | The DB name to create. If omitted, no database is created initially | string | `` | no |
7575
| network | The network | object | `{ "subnets": [ { "cidr_block": "10.0.0.0/16", "id": "vpc-123456" } ], "vpc": [ { "cidr_block": "10.0.0.0/16", "id": "vpc-123456" } ] }` | no |
7676
| number_of_computed_egress_rules | Number of computed egress rules to create by name | number | `0` | no |
7777
| number_of_computed_egress_with_cidr_blocks | Number of computed egress rules to create where 'cidr_blocks' is used | number | `0` | no |
@@ -86,6 +86,7 @@ Stuff before terraform-docs
8686
| option_group_description | The description of the option group | string | `` | no |
8787
| option_group_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `` | no |
8888
| options | A list of Options to apply. | any | `[]` | no |
89+
| override_special | - | string | `%` | no |
8990
| parameter_group_description | Description of the DB parameter group to create | string | `` | no |
9091
| parameter_group_name | Name of the DB parameter group to associate or create | string | `` | no |
9192
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `[]` | no |

tests/0.12/TEST-0.5.0.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Stuff before terraform-docs
9090
| option\_group\_description | The description of the option group | string | `` | no |
9191
| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `` | no |
9292
| options | A list of Options to apply. | any | `[]` | no |
93+
| override\_special | - | string | `%` | no |
9394
| parameter\_group\_description | Description of the DB parameter group to create | string | `` | no |
9495
| parameter\_group\_name | Name of the DB parameter group to associate or create | string | `` | no |
9596
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `[]` | no |

tests/0.12/TEST-0.6.0.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Stuff before terraform-docs
9090
| option\_group\_description | The description of the option group | string | `""` | no |
9191
| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option_group creation | string | `""` | no |
9292
| options | A list of Options to apply. | any | `[]` | no |
93+
| override\_special | | string | `"%"` | no |
9394
| parameter\_group\_description | Description of the DB parameter group to create | string | `""` | no |
9495
| parameter\_group\_name | Name of the DB parameter group to associate or create | string | `""` | no |
9596
| parameters | A list of DB parameters (map) to apply | list(map(string)) | `[]` | no |

tests/0.12/TEST-latest.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Stuff before terraform-docs
9090
| option\_group\_description | The description of the option group | string | `""` | no |
9191
| option\_group\_name | Name of the DB option group to associate. Setting this automatically disables option\_group creation | string | `""` | no |
9292
| options | A list of Options to apply. | any | `[]` | no |
93+
| override\_special | | string | `"%"` | no |
9394
| parameter\_group\_description | Description of the DB parameter group to create | string | `""` | no |
9495
| parameter\_group\_name | Name of the DB parameter group to associate or create | string | `""` | no |
9596
| parameters | A list of DB parameters \(map\) to apply | list(map(string)) | `[]` | no |

tests/0.12/main.tf

+11
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ output "environment" {
5151
}
5252
}
5353

54+
###################################################################################################
55+
#
56+
# "%" in default value (https://github.com/cytopia/docker-terraform-docs/issues/24)
57+
#
58+
###################################################################################################
59+
60+
variable "override_special" {
61+
default = "%"
62+
type = string
63+
}
64+
5465

5566
###################################################################################################
5667
#

0 commit comments

Comments
 (0)