Skip to content

Commit

Permalink
consolidate kindnetd sources in image directory
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Sep 12, 2019
1 parent ef586c6 commit e9a25bf
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hack/ci/build-all.sh
Expand Up @@ -27,6 +27,6 @@ hack/release/build/cross.sh
hack/go_container.sh go test -v ./...

# build and test kindnetd
cd ./cmd/kindnetd
"${REPO_ROOT}/hack/go_container.sh" go build -v -o /out/kindnetd .
cd "${REPO_ROOT}/images/kindnetd"
"${REPO_ROOT}/hack/go_container.sh" go build -v -o /out/kindnetd ./cmd/kindnetd
"${REPO_ROOT}/hack/go_container.sh" go test -v ./...
2 changes: 1 addition & 1 deletion hack/verify/lint.sh
Expand Up @@ -38,5 +38,5 @@ ENABLE=$(sed 's/ /,/g' <<< "${LINTS[@]}")
# first for the repo in general
GO111MODULE=on bin/golangci-lint --disable-all --enable="${ENABLE}" run ./pkg/... ./cmd/... .
# ... and then for kindnetd, which is only on linux
SOURCE_DIR="${REPO_ROOT}/cmd/kindnetd" GOOS="linux" "${REPO_ROOT}/hack/go_container.sh" \
SOURCE_DIR="${REPO_ROOT}/images/kindnetd" GOOS="linux" "${REPO_ROOT}/hack/go_container.sh" \
/out/golangci-lint-linux --disable-all --enable="${ENABLE}" run ./...
4 changes: 2 additions & 2 deletions images/kindnetd/build.sh
Expand Up @@ -24,10 +24,10 @@ cd "${REPO_ROOT}"
# build the binary
export GOARCH="${GOARCH:-amd64}"
export GOOS="linux"
export SOURCE_DIR="${REPO_ROOT}/cmd/kindnetd"
export SOURCE_DIR="${REPO_ROOT}/images/kindnetd"
# NOTE: use a per-arch OUT_DIR so we send less in the docker build context
export OUT_DIR="${REPO_ROOT}/bin/kindnetd/${GOARCH}"
hack/go_container.sh go build -v -o /out/kindnetd
hack/go_container.sh go build -v -o /out/kindnetd ./cmd/kindnetd

# TODO: verisoning
# build image
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/kindnetd/go.mod → images/kindnetd/go.mod
@@ -1,4 +1,4 @@
module sigs.k8s.io/kind/cmd/kindnetd
module sigs.k8s.io/kind/images/kindnetd

go 1.13

Expand Down
File renamed without changes.

0 comments on commit e9a25bf

Please sign in to comment.