Skip to content

Commit ef3071a

Browse files
committed
chore: add description to the fields in resource
1 parent 8e03ac4 commit ef3071a

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

sysdig/resource_sysdig_secure_vulnerability_rule_bundle.go

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,42 @@ import (
1717

1818
func vulnerabilityRuleSchemaImageConfigLabel() *schema.Schema {
1919
return &schema.Schema{
20-
Type: schema.TypeSet,
21-
Optional: true,
22-
MaxItems: 1,
20+
Type: schema.TypeSet,
21+
Optional: true,
22+
MaxItems: 1,
23+
Description: "Defines label-based matching rules for image configuration.",
2324
Elem: &schema.Resource{
2425
Schema: map[string]*schema.Schema{
2526
"id": {
26-
Type: schema.TypeString,
27-
Computed: true,
27+
Type: schema.TypeString,
28+
Computed: true,
29+
Description: "Internal identifier for the label rule block.",
2830
},
2931
"label_must_exist": {
30-
Type: schema.TypeString,
31-
Optional: true,
32+
Type: schema.TypeString,
33+
Optional: true,
34+
Description: "A label key that must exist in the image configuration for the rule to match.",
3235
},
3336
"label_must_not_exist": {
34-
Type: schema.TypeString,
35-
Optional: true,
37+
Type: schema.TypeString,
38+
Optional: true,
39+
Description: "A label key that must not exist in the image configuration for the rule to match.",
3640
},
3741
"label_must_exist_and_contain_value": {
38-
Type: schema.TypeList,
39-
Optional: true,
42+
Type: schema.TypeList,
43+
Optional: true,
44+
Description: "List of label-value pairs that must exist in the image configuration for the rule to match.",
4045
Elem: &schema.Resource{
4146
Schema: map[string]*schema.Schema{
4247
"required_label": {
43-
Type: schema.TypeString,
44-
Required: true,
48+
Type: schema.TypeString,
49+
Required: true,
50+
Description: "Label key that must exist in the image configuration.",
4551
},
4652
"required_value": {
47-
Type: schema.TypeString,
48-
Required: true,
53+
Type: schema.TypeString,
54+
Required: true,
55+
Description: "Expected value for the given label key.",
4956
},
5057
},
5158
},

0 commit comments

Comments
 (0)