Commit Graph

505 Commits

Author SHA1 Message Date
Justin Santa Barbara 1d32f7065f Mark beta2 2017-02-01 12:37:28 -05:00
Justin Santa Barbara b419f2013d Bump to 1.5.0-beta1 2017-01-25 23:45:13 -05:00
Justin Santa Barbara 587c341dd7 Fix boilerplate / gofmt 2017-01-25 09:13:45 -05:00
Justin Santa Barbara 8154ab7bd2 Merge pull request #1581 from justinsb/fix_1057
Record git version of what we're building
2017-01-25 00:16:38 -05:00
Justin Santa Barbara a60d7982e0 Tag alpha4, dns-controller 1.5.1 2017-01-21 15:20:31 -05:00
Justin Santa Barbara b584aebbc3 Record git version of what we're building
If we're running from a different directory (most commonly a checkout
into src/github.com/kubernetes/kops), the git sha would be the sha of
the working directory, but then we always build by name.

Fix by changing to the correct directory first.

Fix #1057
2017-01-20 21:54:26 -05:00
Justin Santa Barbara 082abaacd7 Unset KOPS_STATE_STORE when calling genhelpdocs
Fix #1365
2017-01-17 00:27:58 -05:00
Kris Nova 2dad37aeec Merge pull request #1482 from justinsb/always_include_gitsha
Always include a gitsha in the version
2017-01-15 20:21:57 -07:00
Justin Santa Barbara 6a23c82d63 Always include a gitsha in the version
Fix #1462
2017-01-15 17:14:37 -05:00
Justin Santa Barbara 4de7f2c0c7 Build for apimachinery builders from vendor 2017-01-15 16:02:17 -05:00
Justin Santa Barbara 55f9d8b601 Tag alpha3 2017-01-11 01:05:12 -05:00
Justin Santa Barbara d95a362960 Update makefile for 1.5.0-alpha2 2017-01-09 23:38:12 -05:00
Zach Loafman 2ee209dea5 kops: Always enable CI versioning on gcs-upload-ci target
Follow-on to https://github.com/kubernetes/kops/pull/1380, relies on
https://www.gnu.org/software/make/manual/make.html#Target_002dspecific
to override the target used for CI upload.
2017-01-09 11:04:58 -08:00
Zach Loafman 1051a31fd1 Merge pull request #1380 from justinsb/ci_use_git_version
Recognize CI=1 to makefile, use git sha for VERSION
2017-01-09 10:57:15 -08:00
Justin Santa Barbara 0a56d3d2e1 Raise an error on an invalid s3 path
Fix #902
2017-01-08 14:37:46 -05:00
Justin Santa Barbara 53135fa57e Add conversion tests, and fix some problems
* We were naming our etcd zones inconsistently
* When we wrote to v1alpha2, we would change the etc member names

Fix #1202
2017-01-07 21:54:15 -05:00
Justin Santa Barbara 6f2567d189 Recognize CI=1 to makefile, use git sha for VERSION
This means that end-users can have an easy experience without needing to
upload nodeup/protokube, but CI can still get the git-based unique
version as long as it sets CI=1
2017-01-07 11:00:54 -05:00
Justin Santa Barbara 9314575953 Working on expressing how we expose services like the API 2017-01-04 23:04:30 -05:00
Justin Santa Barbara 29d5a99fc3 Default version to (pre)released version
Otherwise people that build from source need to upload a custom build
2017-01-04 00:40:43 -05:00
Justin Santa Barbara fbbfa98872 Merge pull request #1318 from justinsb/images_over_http
Load protokube from http/https
2017-01-03 22:31:03 -05:00
Justin Santa Barbara 65e109f77f Add comment about deprecation of protokube-push makefile target 2017-01-03 21:08:59 -05:00
Justin Santa Barbara 66d5d55195 Fixes per code review 2016-12-31 16:03:23 -05:00
Justin Santa Barbara 8a27c363d0 Don't docker run interactive 2016-12-31 15:21:27 -05:00
Justin Santa Barbara 5d6d0f5f5d Load protokube from http/https
This helps us treat protokube as being paired with nodeup, and is a step
towards registry-less deployments (and isolated deployments) along with
moving away from our deprecated gcr.io usage.
2016-12-31 15:21:20 -05:00
Justin Santa Barbara e63dab8b9c Verify gofmt as part of build 2016-12-30 16:25:07 -05:00
Chris Love 29301aadba Merge pull request #947 from justinsb/protokube_mounts
Protokube should mount volumes in a consistent order
2016-12-27 16:34:45 -07:00
Zach Loafman 91dc93abec protokube / nodeup: Up kubectl to v1.5.1, bump protokube tag to 1.5.0 2016-12-27 12:39:24 -08:00
Justin Santa Barbara 911826e397 Protokube should mount volumes in a consistent order
And always mounting the main volume first should be a little faster

Fix #934
2016-12-26 11:47:17 -05:00
Justin Santa Barbara 064abd0d18 Fix e2e: nodeup-dist can continue to build in docker 2016-12-22 02:38:14 -05:00
Vince Montalbano ba9f296b0d working crossbuild 2016-12-21 10:35:01 -06:00
Vince Montalbano 74edc094f0 Ability to cross-compile nodeup 2016-12-20 21:07:04 -06:00
Chris Love 47f6a167d3 Merge pull request #1216 from justinsb/docs_api_machinery_v1
Initial doc for API machinery
2016-12-20 11:14:36 -07:00
Justin Santa Barbara 39a1ecaec4 Initial doc for API machinery
Fix #1164
2016-12-20 10:56:27 -05:00
Justin Santa Barbara 846b7601db Configure DockerVersion in Docker Spec
And automatically choose 1.12.3 for k8s >= 1.5, 1.11.2 for < 1.5

Fix #849
2016-12-20 00:34:40 -05:00
Justin Santa Barbara fed68310fa Schema v1alpha2
* Zones are now subnets
* Utility subnet is no longer part of Zone
* Bastion InstanceGroup type added instead
* Etcd clusters defined in terms of InstanceGroups, not zones
* AdminAccess split into SSHAccess & APIAccess
* Dropped unused Multizone flag
2016-12-18 21:56:57 -05:00
Justin Santa Barbara afd0c25abe First model -> tf test 2016-12-11 17:11:10 -05:00
chrislovecnm 8f37300cbf cleaning up go versions in ci and Makefile 2016-12-04 13:13:32 -07:00
Justin Santa Barbara ae397518e3 Add verify-boilerplate target 2016-12-03 18:45:16 -05:00
chrislovecnm f39a8a6ef8 adding hack/verify-boilerplate.sh to make ci target 2016-12-03 14:45:01 -07:00
Aman 0cc6bc11f1
Add test command for dns-controller in Makefile 2016-11-30 18:41:53 +05:30
Kris Childress 72c5868966 Merge pull request #707 from DualSpark/node-validation
New feature - node validation
2016-11-29 16:47:44 -07:00
Zach Loafman 3cf2c87908 gcs-upload: Use a no-clobber copy instead 2016-11-29 09:16:42 -08:00
Zach Loafman 1263cdfa59 gcs-upload: Fix cache-control on other files as well 2016-11-29 08:33:47 -08:00
chrislovecnm 8a1934ae8b unit tests with fakes
updating docs
2016-11-28 18:17:53 -07:00
Justin Santa Barbara 35cd96f359 Apply gofmt to pkg directory
It was omitted from the makefile `make gofmt`
2016-11-28 02:11:47 -05:00
Zach Loafman 1f657990b3 Disable kubelet from starting until after volume mounts
* Change protokube to do `systemctl start kubelet` every sync round
** .. which takes a change to the systemd unit for protokube to mount in D-Bus
* Don't start kubelet in nodeup
2016-11-23 11:30:19 -08:00
Justin Santa Barbara 8c6d4def8d Add examples to CI
Issue #888
2016-11-14 09:05:42 -05:00
Justin Santa Barbara 9ae1cd308b Apply gofmt to federation directory 2016-11-13 21:12:39 -05:00
Billy Shambrook 8e979ca434 add genhelpdocs cmd to generate cli markdown docs 2016-11-05 18:41:47 +00:00
Chris Love 635f7d989d Merge pull request #698 from justinsb/update_golang
Update golang version to 1.7.1
2016-10-18 23:01:04 -06:00
Justin Santa Barbara fc4a92bc66 Update golang version to 1.7.1
It's not ideal, because golang 1.7.1 is so new, but it fixes some pretty
serious issues with MacOS Sierra, which end users are now getting
prompted to install.
2016-10-19 00:14:02 -04:00
Justin Santa Barbara 6ec5da2827 Add unit test for deleting untagged route table 2016-10-18 22:16:05 -04:00
Zach Loafman b1d6b875a8 build: Fix Cache-Control headers on latest file so it's picked up faster 2016-10-18 15:55:01 -07:00
Zach Loafman 09e4bff6c9 kops build: Log gcloud info instead of gcloud auth
Testing a theory for #664
2016-10-17 14:50:05 -07:00
Zach Loafman baacd7cbbb kops build: `gcloud auth list` prior to upload, for diagnostics
c.f. #664
2016-10-17 14:11:32 -07:00
Chris Love 6ceeb25d10 Merge pull request #654 from justinsb/govet_fixes
govet fixes; add govet makefile target
2016-10-15 21:00:36 -06:00
Justin Santa Barbara d3f69496e4 Merge pull request #649 from DualSpark/testing-improvements
Fixing code headers
2016-10-15 21:34:58 -04:00
chrislovecnm 8fa2aac99f fixing more headers 2016-10-15 19:20:56 -06:00
Justin Santa Barbara ede4f6381b Add govet to ci makefile target 2016-10-15 21:14:01 -04:00
Chris Love 715c332292 Merge pull request #656 from justinsb/doc_dependencies
Add doc for our approach to dependencies
2016-10-15 11:44:28 -06:00
Justin Santa Barbara d7a2b0ba39 Add doc for our approach to dependencies 2016-10-15 13:26:41 -04:00
Justin Santa Barbara 3f54852497 govet fixes; add govet makefile target 2016-10-15 13:25:31 -04:00
JuJu227 ec261734e6 go build '-o'(object creatation option breaks whenever you path traversal(/...). By removing the path traversal, you are able to successfully build the output file. 2016-10-14 11:21:32 -04:00
Justin Santa Barbara 58a8daf63e Experimental support for federation
Highly experimental right now, and has exposed some upstream issues (I
believe), but adding so that people can start playing.
2016-10-11 10:29:46 -04:00
Justin Santa Barbara 4bca0a37d1 Merge pull request #610 from justinsb/centos
Preliminary support for CentOS7 / RHEL7
2016-10-07 14:28:37 -04:00
Justin Santa Barbara d965f14e4b Add apply to example 2016-10-07 02:27:41 -04:00
Justin Santa Barbara a6b53875d8 Merge pull request #593 from justinsb/fix_584
Configure dns-controller with ID of hosted zones
2016-10-07 01:07:39 -04:00
Justin Santa Barbara d86390c172 CentOS7 initial experimental support 2016-10-06 23:23:30 -04:00
Justin Santa Barbara b2cd870977 Fix paths for nodeup in dev makefile targets 2016-10-06 17:13:02 -04:00
Justin Santa Barbara a529ffbb65 Configure dns-controller with ID of hosted zones
Fix #584
2016-10-06 13:12:27 -04:00
Justin Santa Barbara 146babbd27 Disable ingress DNS integration for 1.4.0
There are still some problems with the default nginx controller
2016-10-01 17:25:11 -04:00
Justin Santa Barbara 655a61588e Switch all the final switches for release 1.4
Also apply the 1.4 schema changes.
2016-10-01 13:50:19 -04:00
Justin Santa Barbara 7f26c8b9e1 Protokube: master tainting and channel creation 2016-10-01 00:16:28 -04:00
Justin Santa Barbara 732fd7c07b Simple addon management tool 2016-09-25 18:27:15 -04:00
Justin Santa Barbara 36d36408ea Add travis CI support 2016-09-25 12:21:43 -04:00
Justin Santa Barbara 40c2c443be Fix godep prefix 2016-09-24 13:24:03 -04:00
Justin Santa Barbara b80844156e Exclude files from go-bindata
This also lets us specify the whole models directory, but we ignore *.go

Fix #443
2016-09-24 13:14:29 -04:00
Justin Santa Barbara 9c6f064667 Use --delete when copying deps from _vendor -> vendor
Otherwise removed files upstream aren't removed
2016-09-24 13:07:59 -04:00
Zach Loafman f4d7b8de11 build: Prefer publishing https:// 2016-09-21 12:35:46 -07:00
Zach Loafman 8d540c4eb4 Build: Publish latest-ci.txt as well 2016-09-21 11:19:21 -07:00
Zach Loafman acb39a18c7 Build: Actually change to 1.6, docker build with curdir instead of GOPATH 2016-09-20 15:53:19 -07:00
Zach Loafman 642c68c842 Build changes: Static compile, add 1.7, add crossbuild-in-docker, etc.
* Adds support for statically building
* Adds crossbuild-in-docker
* Reworks nodeup-in-docker to just use golang image (saves time vs rebuilding image)
* Adds build rule for GCS upload
* Adds go1.7 build check
2016-09-20 14:22:01 -07:00
Justin Santa Barbara f077f47f14 Fix makefile backcompat targets, broken by gobindata 2016-09-15 09:35:56 -04:00
Justin Santa Barbara 421abdf48f Some more makefile tweaks 2016-09-08 02:02:28 -04:00
Justin Santa Barbara ef1f64f308 Start cleaning up API: optional fields should be pointers 2016-09-08 00:49:40 -04:00
Justin Santa Barbara 758bb90a7f Makefile tweaks to support binary release 2016-09-07 23:59:06 -04:00
Justin Santa Barbara 6aa4cd63d8 Merge pull request #406 from justinsb/crossbuild
Simple crossbuild support
2016-09-07 23:09:27 -04:00
Justin Santa Barbara 87f283c7d2 Improve speed of docker image build, by scoping context dir 2016-09-07 23:07:13 -04:00
Justin Santa Barbara d3ab070b0d Use go-bindata to embed our models
This allows us to have single-file deployment
2016-09-07 11:56:03 -04:00
Justin Santa Barbara d63eef50fb Simple crossbuild support 2016-09-07 00:51:04 -04:00
Justin Santa Barbara ef7dddf2af Style nits for makefile 2016-08-27 15:18:05 -04:00
chrislovecnm a243eb3f07 updates to Makefile for nodeup build in docker 2016-08-23 12:37:19 -06:00
Justin Santa Barbara 2bc5a3cd61 Add makefile target for go16 as well
We should have a target for all our supported versions
2016-08-16 09:57:30 -04:00
Justin Santa Barbara fbd703647a Create test-build command for go 1.7 2016-08-16 02:04:11 -04:00
Justin Santa Barbara 4b7adf6884 Use submodules instead of glide
Manual management of dependencies still seems easier, sadly.
2016-07-26 11:23:24 -04:00
Justin Santa Barbara bdb8e77079 Import code for new DNS controller
It uses the dnsprovider code in the k8s repo, and it looks for
annotations on pods, ingress, nodes & services.
2016-07-24 23:42:49 -04:00
Justin Santa Barbara 9a741043bc Fix build with golang 1.5
Replace big.Int Text(10) with String()

Also create a makefile target to test building with golang 1.5:
check-builds-in-go15

Fixes #163
2016-07-22 22:49:54 -04:00
Justin Santa Barbara 31892fb08d Refactor tests for cleaner separation 2016-07-22 10:19:01 -04:00
Michel Alexandre Salim 10f2753394 Support the use case where GOPATH is a colon-separated list of paths
Previously Makefile targets assume that ${GOPATH} contains a single path;
however, this is not the case esp. for Go Version Manager users.

Support this use case by defining ${GOPATH_1ST} to be the first path in
${GOPATH}, and using ${GOPATH_1ST} in the targets.
2016-07-15 13:17:03 +07:00
Justin Santa Barbara d77d6f4859 Add version command that prints compiled version
Fix #128
2016-07-12 22:30:12 -04:00
Justin Santa Barbara c956bdada5 Update & get tests working again
They're still hitting the AWS APIs, have terrible coverage and are slow.
But it's a start!
2016-07-06 00:33:07 -04:00
Justin Santa Barbara 2cf46731aa Makefile improvements
Fix some paths; don't try to push to production buckets.

Reorganize protokube into the main Makefile
2016-07-05 11:54:41 -04:00
Justin Santa Barbara 15594eb1ac Fix makefile gofmt code path 2016-07-01 10:02:04 -04:00
Justin Santa Barbara d8b661777b Merge cloudup tool into `kops create cluster` 2016-06-30 10:25:50 -04:00
Justin Santa Barbara d427858477 Rename to kops
The upup tool is now called kops, and we have moved repos
2016-06-30 09:25:25 -04:00