File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,12 @@ func New() *schema.Provider {
400
400
ForceNew : true ,
401
401
Required : true ,
402
402
},
403
+ "hide" : {
404
+ Type : schema .TypeBool ,
405
+ Description : "Hide the resource from the UI." ,
406
+ ForceNew : true ,
407
+ Optional : true ,
408
+ },
403
409
"item" : {
404
410
Type : schema .TypeList ,
405
411
Description : "Each \" item\" block defines a single metadata item consisting of a key/value pair." ,
Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ func TestMetadata(t *testing.T) {
263
263
}
264
264
resource "coder_metadata" "agent" {
265
265
resource_id = coder_agent.dev.id
266
+ hide = true
266
267
item {
267
268
key = "foo"
268
269
value = "bar"
@@ -295,6 +296,7 @@ func TestMetadata(t *testing.T) {
295
296
t .Logf ("metadata attributes: %#v" , metadata .Primary .Attributes )
296
297
for key , expected := range map [string ]string {
297
298
"resource_id" : agent .Primary .Attributes ["id" ],
299
+ "hide" : "true" ,
298
300
"item.#" : "5" ,
299
301
"item.0.key" : "foo" ,
300
302
"item.0.value" : "bar" ,
You can’t perform that action at this time.
0 commit comments