File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
examples/resources/coder_parameter Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ data "coder_parameter" "example" {
1717
1818data "coder_parameter" "ami" {
1919 name = " Machine Image"
20+ description = <<- EOT
21+ # Provide the machine image
22+ See the [registry](https://container.registry.blah/namespace) for options.
23+ EOT
2024 option {
2125 value = " ami-xxxxxxxx"
2226 name = " Ubuntu"
@@ -26,14 +30,15 @@ data "coder_parameter" "ami" {
2630
2731data "coder_parameter" "is_public_instance" {
2832 name = " Is public instance?"
29- icon = " /icon/docker.svg"
3033 type = " bool"
34+ icon = " /icon/docker.svg"
3135 default = false
3236}
3337
3438data "coder_parameter" "cores" {
3539 name = " CPU Cores"
36- icon = " /icon/"
40+ type = " number"
41+ icon = " /icon/cpu.svg"
3742 default = 3
3843}
3944
@@ -50,7 +55,7 @@ data "coder_parameter" "disk_size" {
5055}
5156
5257data "coder_parameter" "cat_lives" {
53- name = " Cat Live "
58+ name = " Cat Lives "
5459 type = " number"
5560 default = " 9"
5661 validation {
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ func TestParameter(t *testing.T) {
2424data "coder_parameter" "region" {
2525 name = "Region"
2626 type = "string"
27- description = "Some option!"
27+ description = <<-EOT
28+ # Select the machine image
29+ See the [registry](https://container.registry.blah/namespace) for options.
30+ EOT
2831 mutable = true
2932 icon = "/icon/region.svg"
3033 option {
@@ -46,7 +49,7 @@ data "coder_parameter" "region" {
4649 for key , value := range map [string ]interface {}{
4750 "name" : "Region" ,
4851 "type" : "string" ,
49- "description" : "Some option! " ,
52+ "description" : "# Select the machine image \n See the [registry](https://container.registry.blah/namespace) for options. \n " ,
5053 "mutable" : "true" ,
5154 "icon" : "/icon/region.svg" ,
5255 "option.0.name" : "US Central" ,
You can’t perform that action at this time.
0 commit comments