Commit Graph

145 Commits (2c9308037350f859c50e4e463d3c59f9935a5923)

Author SHA1 Message Date
Jeff Grafton 274c607f6d Merge pull request #6425 from zmerlynn/less_chatty_push
Be less chatty when we're uploading to GCS
2015-04-03 15:43:41 -07:00
Zach Loafman 18a11c1cb7 Be less chatty when we're uploading to GCS 2015-04-03 14:54:52 -07:00
Zach Loafman 5b6c75f986 And re-tabify that (to make previous easier to review) 2015-04-02 18:40:27 -07:00
Zach Loafman e57171d2cc Parallelize Docker build as well 2015-04-02 18:39:40 -07:00
Zach Loafman 9a6e04dc1f Cleanup output of Docker builds, fix #6389 2015-04-02 18:18:24 -07:00
Zach Loafman 03c7182cac Also build entire tarball phases in parallel 2015-04-02 17:56:45 -07:00
Zach Loafman 04813f0dcd Revert "Revert "Parallelize architectures in both the building and packaging phases of `make release`""
This reverts commit 9f60dde320.
2015-04-02 17:56:44 -07:00
Dawn Chen 9b2f835a01 Merge pull request #6326 from ArtfulCoder/docker_image_creation
Create Docker images for master components
2015-04-02 13:12:17 -07:00
Abhishek Shah b1b779a8d5 docker image creation 2015-04-02 12:39:12 -07:00
Zach Loafman e4b613b514 Infer the URL from the existing git setup. (I don't push via ssh)
Also document using the recursive/ours merge strategy, because
it's almost certainly what we want to do in this case.
2015-04-02 10:15:18 -07:00
Jeff Lowdermilk 45639d9e2d Remove unused variables from build scripts 2015-04-01 12:28:31 -07:00
Dawn Chen 48cd904a20 Makefile for build pause image and push to gcr.io 2015-03-31 15:07:03 -07:00
Eric Paris e9d2c49fd4 Instructions to back-merge release branches into master
This allows us to continue on branched like v0.14.1, v0.14.2, and tag on
that branch.  But it will merge those tags into master so git describe
picks up the changes.
2015-03-30 17:31:15 -04:00
Eric Paris a5732697fd update instructions to make it clear to get review 2015-03-30 15:10:34 -04:00
Eric Paris 329f9a0e99 Do not allow minor release which is not a decendant of the release branch
This does some git magic to make sure you do not tag a branch with
v0.13.3 unless that branch is a decendant of the release-0.13 branch
upstream.

Don't allow v0.13.4 if v0.13.3 doesn't exit

Don't allow v0.13.3 if v0.13.3 already exits
2015-03-27 21:24:10 -04:00
Eric Paris cbefaf5d65 output current_branch name instead of HEAD in help messages 2015-03-27 19:03:42 -04:00
Eric Paris 2b941f4954 anchor version regex
Also create a GIT_MINOR variable for a touch of readability....
2015-03-27 18:54:36 -04:00
Eric Paris 3919a38ad6 make mark-new-release.sh do branching and tell you exactly what to do next
We keep getting tags and branches wonky.  This will land

v0.14.0 as an ancestor of master
v0.14.1 will NOT be an ancestor of master

I can do the later, it only a touch of git gymnastics, not really hard, but
we only occasionably do that today. (0.13.1 is an ancestor of master,
but 0.13.2 is not)
2015-03-27 17:01:56 -05:00
Brendan Burns f089a054c2 Use stable.txt instead of latest.txt and add a script to set that file. 2015-03-26 15:16:59 -07:00
Jeff Grafton 46e8c08fe8 Update kube::log::{error,status} to include timestamp.
Additionally, make the build scripts call these rather than calling
'echo' directly.
2015-03-25 16:02:48 -07:00
Zach Loafman 3458246c10 Publish a gs://kubernetes-release/release/latest.txt when we publish a build
Adds a kube::release::gcs::publish_latest_official that checks the
current contents of this file in GCS, verifies that we're pushing a
newer build, and updates it if so. (i.e. it handles the case of
pushing a 0.13.1 and then later pushing a 0.12.3.) This follows the
pattern of the ci/ build, which Jenkins just updates unconditionally.

I already updated the file for 0.13.1. After this we can update the
get-k8s script, so we don't have to keep updating it.
2015-03-17 13:53:05 -07:00
Victor HU e083fd3d44 Doc on proxy settings
Add doc on how to set proxy while building kubernetes in container.
2015-01-11 00:31:50 +00:00
Zach Loafman a660ecd962 Try to fix 'Release file is expired' complaints
Based on info from:
  http://unix.stackexchange.com/questions/2544/how-to-work-around-apts-release-file-expired-problem-on-a-local-mirror
2015-03-11 10:57:26 -07:00
Zach Loafman 120dba474e Change GCE to use standalone Saltstack config:
Change provisioning to pass all variables to both master and node. Run
Salt in a masterless setup on all nodes ala
http://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html,
which involves ensuring Salt daemon is NOT running after install. Kill
Salt master install. And fix push to actually work in this new flow.

As part of this, the GCE Salt config no longer has access to the Salt
mine, which is primarily obnoxious for two reasons: - The minions
can't use Salt to see the master: this is easily fixed by static
config. - The master can't see the list of all the minions: this is
fixed temporarily by static config in util.sh, but later, by other
means (see
https://github.com/GoogleCloudPlatform/kubernetes/issues/156, which
should eventually remove this direction).

As part of it, flatten all of cluster/gce/templates/* into
configure-vm.sh, using a single, separate piece of YAML to drive the
environment variables, rather than constantly rewriting the startup
script.
2015-03-10 09:04:29 -07:00
Alex Mohr 5ce020817d Update common.sh 2015-03-09 17:46:29 -07:00
Brandon Davis a63338b73b Support other names for GNU tar
The build is only looking for GNU tar as gtar on OSX, which is the name used when installed using brew. Macports installs it as gnutar, so check for that name if gtar is not found.
2015-02-23 17:00:32 -06:00
Sidharta Seethana aea11720fd setting boot2docker env variables for release and clean targets when boot2docker is running 2015-02-20 15:55:39 -08:00
Jeff Lowdermilk 197059b65d Remove kubecfg, cleanup a few stray references. 2015-02-10 16:43:12 -08:00
Brendan Burns 93776b1363 Remove kubecfg from all getting started docs. 2015-02-04 23:20:11 -08:00
Brendan Burns 0ff3aa6db7 Fix the build. 2015-02-03 14:49:30 -08:00
rsokolowski 164c3e5e62 Fix removal of release-staging files while running hack/e2e-test.sh 2015-02-03 23:11:26 +01:00
Brendan Burns ffd3d21dc5 Update the release script to delete cruft before packaging. 2015-02-03 12:57:34 -08:00
Salvatore Dario Minonne 9a0e16a009 Fix dockerfile for etcd.2.0.0 2015-01-30 15:32:13 +01:00
Joe Beda 621e7037ae Merge pull request #3601 from zmerlynn/deferred_addons_phase_1
Deferred creation of SkyDNS, monitoring and logging objects
2015-01-21 13:25:38 -08:00
Zach Loafman a305269e18 Deferred creation of SkyDNS, monitoring and logging objects
This implements phase 1 of the proposal in #3579, moving the creation
of the pods, RCs, and services to the master after the apiserver is
available.

This is such a wide commit because our existing initial config story
is special:

* Add kube-addons service and associated salt configuration:
** We configure /etc/kubernetes/addons to be a directory of objects
that are appropriately configured for the current cluster.
** "/etc/init.d/kube-addons start" slurps up everything in that dir.
(Most of the difficult is the business logic in salt around getting
that directory built at all.)
** We cheat and overlay cluster/addons into saltbase/salt/kube-addons
as config files for the kube-addons meta-service.
* Change .yaml.in files to salt templates
* Rename {setup,teardown}-{monitoring,logging} to
{setup,teardown}-{monitoring,logging}-firewall to properly reflect
their real purpose now (the purpose of these functions is now ONLY to
bring up the firewall rules, and possibly to relay the IP to the user).
* Rework GCE {setup,teardown}-{monitoring,logging}-firewall: Both
functions were improperly configuring global rules, yet used
lifecycles tied to the cluster. Use $NODE_INSTANCE_PREFIX with the
rule. The logging rule needed a $NETWORK specifier. The monitoring
rule tried gcloud describe first, but given the instancing, this feels
like a waste of time now.
* Plumb ENABLE_CLUSTER_MONITORING, ENABLE_CLUSTER_LOGGING,
ELASTICSEARCH_LOGGING_REPLICAS and DNS_REPLICAS down to the master,
since these are needed there now.

(Desperately want just a yaml or json file we can share between
providers that has all this crap. Maybe #3525 is an answer?)

Huge caveats: I've gone pretty firm testing on GCE, including
twiddling the env variables and making sure the objects I expect to
come up, come up. I've tested that it doesn't break GKE bringup
somehow. But I haven't had a chance to test the other providers.
2015-01-21 12:25:50 -08:00
Joe Beda a735e2d160 Switch official builds to go 1.4.
This fixes #2894
2015-01-21 12:13:22 -08:00
Joe Beda d20b9d4567 Merge pull request #3666 from thockin/golang-static
Fix static builds in go1.4
2015-01-21 10:07:41 -08:00
Tim Hockin 0a538132cf Fix static builds in go1.4
https://github.com/golang/go/issues/9344
2015-01-20 21:04:04 -08:00
Alex Robinson 4fdf240415 Merge pull request #3620 from zmerlynn/push_custom_release
Add push-devel-build.sh to upload release artifacts to current GCS project
2015-01-20 14:05:46 -08:00
Zach Loafman 9f02caa668 Add push-devel-build.sh to upload release artifacts to current GCS project
This is essentially a variant of push-ci-build.sh, but pushes it to
the current project. The defaults for gcs::release actually pick a
shorthash of the GCS project, so you end up uploading to something
like: gs://kubernetes-releases-3fda2/devel/v0.8.0-437-g7f147ed/ (where
the last part is the "git describe" of your current commit)
2015-01-20 13:53:38 -08:00
Andrew Seidl 6dee1d7fa4 Fix typos in user-facing strings 2015-01-18 01:32:34 -06:00
Jeff Lowdermlk cb517b3a4a Build win32 client binaries 2015-01-16 16:45:14 -08:00
Zach Loafman c3858ab322 Commit f1fed3b broke gcs::release in this function, breaking
the build.
2015-01-07 11:10:08 -08:00
Zach Loafman fd9d2df6e1 Merge pull request #3238 from zmerlynn/gcs_bucket
Add script to push CI artifacts to gs://kubernetes-release/ci
2015-01-07 10:08:43 -08:00
Joe Beda 4b94829cf2 Make 'make clean' work with Docker not installed.
Fixes #1959.
2015-01-06 11:36:35 -08:00
Zach Loafman e66e30183b Add script to push continuous integration artifacts to gs://kubernetes-release/ci
This pushes artifacts in a similar manner to the official release,
except that instead of release/vFOO, it goes to ci/$(git describe),
e.g.: gs://kubernetes-release/ci/v0.7.0-315-gcae5722

It also pushes a text file to gs://kubernetes-release/ci/latest.txt,
so anyone can do, for instance:

gsutil ls gs://kubernetes-release/ci/$(gsutil cat gs://kubernetes-release/ci/latest.txt)

(In a parallel change, I'm going to flip the jenkins scripts over to
use git describe, since it's shorter and a little more descriptive)
2015-01-05 18:07:27 -08:00
Joe Beda f1fed3bcfc Remove support for building "run containers".
This was untested, broken and largely unused.

Related to #12 and #2455#issuecomment-68803245.
2015-01-05 16:26:28 -08:00
mdshuai 98b1c7c72f Solve apt-get update 404 Not Found Package error 2014-12-23 12:52:46 +08:00
Zach Loafman a4c4746f7c Fix OS X testtar build break
Handle copy in super portable way. Every tar on the planet should
accept this. Oblig XKCD: http://xkcd.com/1168/
2014-12-18 08:23:46 -08:00
Zach Loafman d3aed6c9cd Add kubernetes-test.tar.gz
Add test artifacts to the build. This lets you do:

tar -xzf kubernetes.tar.gz
tar -xzf kubernetes-test.tar.gz
cd kubernetes
go run ./hack/e2e.go -up -test -down

without having a git checkout.
2014-12-17 14:30:30 -08:00