@@ -17,35 +17,42 @@ import (
1717
1818func  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