mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
30 lines
1.6 KiB
Go
30 lines
1.6 KiB
Go
package utils
|
|
|
|
// cdi-file-host pod/service relative values
|
|
const (
|
|
//RegistryHostName provides a deploymnet and service name for registry
|
|
RegistryHostName = "cdi-docker-registry-host"
|
|
// FileHostName provides a deployment and service name for tests
|
|
FileHostName = "cdi-file-host"
|
|
// FileHostS3Bucket provides an S3 bucket name for tests (e.g. http://<serviceIP:port>/FileHostS3Bucket/image)
|
|
FileHostS3Bucket = "images"
|
|
// AccessKeyValue provides a username to use for http and S3 (see hack/build/docker/cdi-func-test-file-host-http/htpasswd)
|
|
AccessKeyValue = "admin"
|
|
// SecretKeyValue provides a password to use for http and S3 (see hack/build/docker/cdi-func-test-file-host-http/htpasswd)
|
|
SecretKeyValue = "password"
|
|
// HttpAuthPort provides a cdi-file-host service auth port for tests
|
|
HTTPAuthPort = 81
|
|
// HttpNoAuthPort provides a cdi-file-host service no-auth port for tests, requires AccessKeyValue and SecretKeyValue
|
|
HTTPNoAuthPort = 80
|
|
// HTTPRateLimitPort provides a cdi-file-host service rate limit port for tests, speed is limited to 25k/s to allow for testing slow connection behavior. No auth.
|
|
HTTPRateLimitPort = 82
|
|
// S3Port provides a cdi-file-host service S3 port, requires AccessKey and SecretKeyValue
|
|
S3Port = 9000
|
|
// HTTPSPort is the https port of cdi-file-host
|
|
HTTPSNoAuthPort = 443
|
|
// RegistryCertConfigMap is the ConfigMap where the cert for the docker registry is stored
|
|
RegistryCertConfigMap = "cdi-docker-registry-host-certs"
|
|
// FileHostCertConfigMap is the ConfigMap where the cert fir the file host is stored
|
|
FileHostCertConfigMap = "cdi-file-host-certs"
|
|
)
|