You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`docker` (Block List, Min: 1, Max: 1) docker contains the configuration of the docker repository (see [below for nested schema](#nestedblock--docker))
34
34
-`name` (String) A unique identifier for this repository
35
-
-`storage` (Block List, Min: 1, Max: 1) The storage configuration of the repository (see [below for nested schema](#nestedblock--storage))
35
+
-`storage` (Block List, Min: 1, Max: 1) The storage configuration of the repository docker hosted (see [below for nested schema](#nestedblock--storage))
36
36
37
37
### Optional
38
38
@@ -69,6 +69,7 @@ Required:
69
69
70
70
Optional:
71
71
72
+
-`latest_policy` (Boolean) Whether to allow redeploying the 'latest' tag but defer to the Deployment Policy for all other tags. Only usable with write_policy "ALLOW_ONCE"
72
73
-`write_policy` (String) Controls if deployments of and updates to assets are allowed
Description: "Whether to validate uploaded content's MIME type appropriate for the repository format",
98
+
Required: true,
99
+
Type: schema.TypeBool,
100
+
},
101
+
"write_policy": {
102
+
Description: "Controls if deployments of and updates to assets are allowed",
103
+
Default: "ALLOW",
104
+
Optional: true,
105
+
Type: schema.TypeString,
106
+
ValidateFunc: validation.StringInSlice([]string{
107
+
"ALLOW",
108
+
"ALLOW_ONCE",
109
+
"DENY",
110
+
}, false),
111
+
},
112
+
"latest_policy": {
113
+
Description: "Whether to allow redeploying the 'latest' tag but defer to the Deployment Policy for all other tags. Only usable with write_policy \"ALLOW_ONCE\"",
114
+
Optional: true,
115
+
Type: schema.TypeBool,
116
+
},
117
+
},
118
+
},
119
+
}
120
+
DataSourceDockerHostedStorage=&schema.Schema{
121
+
Description: "The storage configuration of the repository docker hosted",
122
+
Type: schema.TypeList,
123
+
Computed: true,
124
+
Elem: &schema.Resource{
125
+
Schema: map[string]*schema.Schema{
126
+
"blob_store_name": {
127
+
Description: "Blob store used to store repository contents",
128
+
Computed: true,
129
+
Type: schema.TypeString,
130
+
},
131
+
"strict_content_type_validation": {
132
+
Description: "Whether to validate uploaded content's MIME type appropriate for the repository format",
133
+
Computed: true,
134
+
Type: schema.TypeBool,
135
+
},
136
+
"write_policy": {
137
+
Description: "Controls if deployments of and updates to assets are allowed",
138
+
Computed: true,
139
+
Type: schema.TypeString,
140
+
},
141
+
"latest_policy": {
142
+
Description: "Whether to allow redeploying the 'latest' tag but defer to the Deployment Policy for all other tags. Only usable with write_policy \"ALLOW_ONCE\"",
0 commit comments