Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
Merge pull request #80 from mesosphere/k8s_v4_rebase
Browse files Browse the repository at this point in the history
rebase to kubernetes v0.4.x
  • Loading branch information
jdef committed Nov 28, 2014
2 parents 63b389c + 36ce60d commit ec12c0c
Show file tree
Hide file tree
Showing 15 changed files with 1,114 additions and 387 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ _testmain.go

*.exe
*.test

.kube-version
124 changes: 66 additions & 58 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 24 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,26 @@ mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
fail := ${MAKE} --no-print-directory --quiet -f $(current_dir)/Makefile error

KUBE_GO_PACKAGE ?= github.com/GoogleCloudPlatform/kubernetes

K8S_CMD := \
github.com/GoogleCloudPlatform/kubernetes/cmd/controller-manager \
github.com/GoogleCloudPlatform/kubernetes/cmd/kubecfg \
github.com/GoogleCloudPlatform/kubernetes/cmd/proxy
${KUBE_GO_PACKAGE}/cmd/kubecfg \
${KUBE_GO_PACKAGE}/cmd/proxy
FRAMEWORK_CMD := \
github.com/mesosphere/kubernetes-mesos/kubernetes-mesos \
github.com/mesosphere/kubernetes-mesos/controller-manager \
github.com/mesosphere/kubernetes-mesos/kubernetes-mesos \
github.com/mesosphere/kubernetes-mesos/kubernetes-executor
FRAMEWORK_LIB := \
github.com/mesosphere/kubernetes-mesos/scheduler \
github.com/mesosphere/kubernetes-mesos/service \
github.com/mesosphere/kubernetes-mesos/master \
github.com/mesosphere/kubernetes-mesos/executor \
github.com/mesosphere/kubernetes-mesos/queue

KUBE_GIT_VERSION_FILE := $(current_dir)/.kube-version

SHELL := /bin/bash

# a list of upstream projects for which we test the availability of patches
PATCH_SCRIPT := $(current_dir)/hack/patches/apply.sh

Expand All @@ -28,7 +35,7 @@ DESTDIR ?= /target
# default build tags
TAGS ?=

.PHONY: all error require-godep framework require-vendor proxy install info bootstrap require-gopath format test patch
.PHONY: all error require-godep framework require-vendor proxy install info bootstrap require-gopath format test patch version

ifneq ($(WITH_MESOS_DIR),)

Expand All @@ -50,6 +57,9 @@ WITH_MESOS_CGO_FLAGS := \

endif

export SHELL
export KUBE_GO_PACKAGE

all: patch proxy framework

error:
Expand All @@ -62,8 +72,8 @@ require-godep: require-gopath
require-gopath:
@test -n "$(GOPATH)" || ${fail} MSG="GOPATH undefined, aborting"

proxy: require-godep
go install $(K8S_CMD)
proxy: require-godep $(KUBE_GIT_VERSION_FILE)
go install -ldflags "$$(cat $(KUBE_GIT_VERSION_FILE))" $(K8S_CMD)

require-vendor:

Expand Down Expand Up @@ -96,5 +106,12 @@ bootstrap: require-godep
patch: $(PATCH_SCRIPT)
$(PATCH_SCRIPT)

version: $(KUBE_GIT_VERSION_FILE)

$(KUBE_GIT_VERSION_FILE): require-gopath
@(pkg="$(GOPATH)"; cd "$${pkg%%:*}/src/$(KUBE_GO_PACKAGE)" && \
source $(current_dir)/hack/kube-version.sh && \
KUBE_GO_PACKAGE=$(KUBE_GO_PACKAGE) kube::version::ldflags) >$@

$(PATCH_SCRIPT):
test -x $@ || chmod +x $@
Loading

0 comments on commit ec12c0c

Please sign in to comment.