File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ services:
3
3
- docker
4
4
language : go
5
5
go :
6
- - 1.7 .x
6
+ - 1.8 .x
7
7
install :
8
8
- make get-deps
9
9
script :
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ VENDOR_DIR = vendor
27
27
ROOT_DIR = $(abspath $(dir $(lastword $(MAKEFILE_LIST ) ) ) )
28
28
29
29
# kubeadm-dind-cluster supports k8s versions:
30
- # "v1.4 ", "v1.5 " and "v1.6 ".
31
- DIND_CLUSTER_VERSION ?= v1.5
30
+ # "v1.6 ", "v1.7 " and "v1.8 ".
31
+ DIND_CLUSTER_VERSION ?= v1.8
32
32
33
33
ENV_PREPARE_MARKER = .env-prepare.complete
34
34
BUILD_IMAGE_MARKER = .build-image.complete
@@ -37,7 +37,7 @@ BUILD_IMAGE_MARKER = .build-image.complete
37
37
ifeq ($(DOCKER_BUILD ) , yes)
38
38
_DOCKER_GOPATH = /go
39
39
_DOCKER_WORKDIR = $(_DOCKER_GOPATH)/src/github.com/Mirantis/k8s-netchecker-agent/
40
- _DOCKER_IMAGE = golang:1.7
40
+ _DOCKER_IMAGE = golang:1.8
41
41
DOCKER_DEPS = apt-get update; apt-get install -y libpcap-dev;
42
42
DOCKER_EXEC = docker run --rm -it -v "$(ROOT_DIR):$(_DOCKER_WORKDIR)" \
43
43
-w "$(_DOCKER_WORKDIR)" $(_DOCKER_IMAGE)
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ HELM_DEBUG=${HELM_DEBUG:-"--debug"}
27
27
NETCHECKER_REPO=${NETCHECKER_REPO:- }
28
28
KUBECTL_DIR=" ${KUBECTL_DIR:- ${HOME} / .kubeadm-dind-cluster} "
29
29
PATH=" ${KUBECTL_DIR} :${PATH} "
30
+ NS=${NS:- netchecker}
31
+ REAL_NS=" --namespace=${1:- $NS } "
30
32
31
33
32
34
function wait-for-tiller-pod-ready() {
@@ -88,13 +90,13 @@ function lint-helm {
88
90
function deploy-helm {
89
91
if [ " ${NETCHECKER_REPO} " == " k8s-netchecker-server" ]; then
90
92
pushd " ../${NETCHECKER_REPO} " & > /dev/null
91
- helm " ${HELM_DEBUG} " install ./" ${HELM_SERVER_PATH} " /
93
+ helm " ${HELM_DEBUG} " install ${REAL_NS} ./" ${HELM_SERVER_PATH} " /
92
94
popd & > /dev/null
93
- helm " ${HELM_DEBUG} " install ./" ${HELM_AGENT_PATH} " /
95
+ helm " ${HELM_DEBUG} " install ${REAL_NS} ./" ${HELM_AGENT_PATH} " /
94
96
else
95
- helm " ${HELM_DEBUG} " install ./" ${HELM_SERVER_PATH} " /
97
+ helm " ${HELM_DEBUG} " install ${REAL_NS} ./" ${HELM_SERVER_PATH} " /
96
98
pushd " ../${NETCHECKER_REPO} " & > /dev/null
97
- helm " ${HELM_DEBUG} " install ./" ${HELM_AGENT_PATH} " /
99
+ helm " ${HELM_DEBUG} " install ${REAL_NS} ./" ${HELM_AGENT_PATH} " /
98
100
popd & > /dev/null
99
101
fi
100
102
helm " ${HELM_DEBUG} " list
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ set -o nounset
22
22
NUM_NODES=${NUM_NODES:- 3}
23
23
KUBEADM_SCRIPT_URL=${KUBEADM_SCRIPT_URL:- https:// cdn.rawgit.com/ Mirantis/ kubeadm-dind-cluster/ master/ fixed/ dind-cluster}
24
24
# kubeadm-dind-cluster supports k8s versions:
25
- # "v1.4 ", "v1.5 " and "v1.6 ".
26
- DIND_CLUSTER_VERSION=${DIND_CLUSTER_VERSION:- v1.5 }
25
+ # "v1.6 ", "v1.7 " and "v1.8 ".
26
+ DIND_CLUSTER_VERSION=${DIND_CLUSTER_VERSION:- v1.8 }
27
27
28
28
29
29
function kubeadm-dind-cluster {
You can’t perform that action at this time.
0 commit comments