Skip to content

Commit c6fd96b

Browse files
committed
Update swagger descriptions
1 parent bf3a5f5 commit c6fd96b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/cmd/server/api/v1/swagger_doc.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ var map_ImagePolicyConfig = map[string]string{
305305
"disableScheduledImport": "DisableScheduledImport allows scheduled background import of images to be disabled.",
306306
"scheduledImageImportMinimumIntervalSeconds": "ScheduledImageImportMinimumIntervalSeconds is the minimum number of seconds that can elapse between when image streams scheduled for background import are checked against the upstream repository. The default value is 15 minutes.",
307307
"maxScheduledImageImportsPerMinute": "MaxScheduledImageImportsPerMinute is the maximum number of scheduled image streams that will be imported in the background per minute. The default value is 60. Set to -1 for unlimited.",
308+
"allowedRegistriesForImport": "AllowedRegistriesForImport is a white list of registries that we allow to import the images from. When a new master config is being generated, several public registries like docker.io, Red Hat registry, gcr.io, Amazon ECS, quay.io are allowed by default. If you want to import images from your private Docker Registry, you have to add it into the list. If not specified in master config all registries are allowed by default (legacy behavior).",
308309
}
309310

310311
func (ImagePolicyConfig) SwaggerDoc() map[string]string {
@@ -701,6 +702,16 @@ func (RFC2307Config) SwaggerDoc() map[string]string {
701702
return map_RFC2307Config
702703
}
703704

705+
var map_RegistryLocation = map[string]string{
706+
"": "RegistryLocation contains a location of the registry specified by the registry domain name. The domain name might include wildcards, like '*' or '??'.",
707+
"domainName": "DomainName specifies a domain name for the registry",
708+
"insecure": "Insecure indicates whether the registry is secure (https) or insecure (http) By default (if not specified) the registry is assumed as secure.",
709+
}
710+
711+
func (RegistryLocation) SwaggerDoc() map[string]string {
712+
return map_RegistryLocation
713+
}
714+
704715
var map_RemoteConnectionInfo = map[string]string{
705716
"": "RemoteConnectionInfo holds information necessary for establishing a remote connection",
706717
"url": "URL is the remote URL to connect to",

0 commit comments

Comments
 (0)