Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Conversation

@smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented Jun 25, 2018

SimpleHTTPServer is single threaded and so a long download will cause
liveness checks to fail. This is a more complicated variant that runs
multiple threads.

@stevekuznetsov

Tested manually, verified shutdown is clean, ran a load test against it.

SimpleHTTPServer is single threaded and so a long download will cause
liveness checks to fail. This is a more complicated variant that runs
multiple threads.
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 25, 2018
@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2018
@openshift-merge-robot openshift-merge-robot merged commit 41c0466 into openshift:master Jun 25, 2018
@stevekuznetsov
Copy link
Contributor

I wish I never saw this :O

wking added a commit to wking/console-operator that referenced this pull request Mar 16, 2019
We need to support the ability to download clients (oc) from the
cluster when an install is successful.  With this commit, I'm adding a
new Deployment for serving the binary from the cli image referenced
from the release image.  That way, the provided oc is the appropriate
version for the current cluster version.  I've set 'replicas' to two
to support continued availability during rolling updates.

The Python here-document approach is based on
openshift/ci-operator@95a41a39 (Use a multithreaded python server to
serve RPMs, 2018-06-25, openshift/ci-operator#35).  The script creates
a scratch directory to serve from, and populates it with the oc binary
(via a symlink).  It also creates zip and tar versions, so users can
do things like:

  $ wget https://downloads-openshift-console.apps.wking.devcluster.openshift.com/amd64/linux/oc.zip
  $ unzip oc.zip

instead of:

  $ wget https://downloads-openshift-console.apps.wking.devcluster.openshift.com/amd64/linux/oc
  $ chmod +x oc

if they prefer.  We don't have to clean up the scratch directory in
the script, because it will be reaped as part of container cleanup.

Moving forward, we'll want to replace the cli image with a
cli-downloads image that includes builds for other platforms and
architectures, but I'm punting on that for now.

[1]: openshift/ci-operator@95a41a3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants