Skip to content

Commit de44433

Browse files
author
OpenShift Bot
authored
Merge pull request #12092 from legionus/registry-add-oss-storage-driver
Merged by openshift-bot
2 parents 0158f35 + 02d5805 commit de44433

File tree

37 files changed

+5193
-1
lines changed

37 files changed

+5193
-1
lines changed

Godeps/Godeps.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hack/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ readonly OS_IMAGE_COMPILE_TARGETS=(
3434
cmd/gitserver
3535
"${OS_SDN_COMPILE_TARGETS_LINUX[@]}"
3636
)
37-
readonly OS_IMAGE_COMPILE_GOFLAGS="-tags include_gcs"
37+
readonly OS_IMAGE_COMPILE_GOFLAGS="-tags 'include_gcs include_oss'"
3838
readonly OS_SCRATCH_IMAGE_COMPILE_TARGETS=(
3939
examples/hello-openshift
4040
examples/deployment

pkg/cmd/dockerregistry/dockerregistry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
_ "github.com/docker/distribution/registry/storage/driver/gcs"
3333
_ "github.com/docker/distribution/registry/storage/driver/inmemory"
3434
_ "github.com/docker/distribution/registry/storage/driver/middleware/cloudfront"
35+
_ "github.com/docker/distribution/registry/storage/driver/oss"
3536
_ "github.com/docker/distribution/registry/storage/driver/s3-aws"
3637
_ "github.com/docker/distribution/registry/storage/driver/swift"
3738

test/end-to-end/core.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ os::cmd::expect_success "docker pull ${DOCKER_REGISTRY}/cache/mysql:pullthrough"
151151
os::log::info "Docker registry start with GCS"
152152
os::cmd::expect_failure_and_text "docker run -e REGISTRY_STORAGE=\"gcs: {}\" openshift/origin-docker-registry:${TAG}" "No bucket parameter provided"
153153

154+
os::log::info "Docker registry start with OSS"
155+
os::cmd::expect_failure_and_text "docker run -e REGISTRY_STORAGE=\"oss: {}\" openshift/origin-docker-registry:${TAG}" "No accesskeyid parameter provided"
156+
154157
os::log::info "Docker pull from istag"
155158
os::cmd::expect_success "oc import-image --confirm --from=hello-world:latest -n test hello-world:pullthrough"
156159
os::cmd::expect_success "docker pull ${DOCKER_REGISTRY}/test/hello-world:pullthrough"

vendor/github.com/denverdino/aliyungo/LICENSE.txt

Lines changed: 191 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)