Skip to content

Commit be539f0

Browse files
committed
*: rename default config file, add k8s-tester build script
Signed-off-by: Gyuho Lee <[email protected]>
1 parent 3e51193 commit be539f0

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

hack/build.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ for arch in ${ARCHS}; do
5050
done
5151
done
5252

53+
WHAT="k8s-tester"
54+
PACKAGE_NAME='github.com/aws/aws-k8s-tester/k8s-tester'
55+
pushd ./k8s-tester
56+
for arch in ${ARCHS}; do
57+
for os in ${TARGETS}; do
58+
for bin in ${WHAT}; do
59+
echo "=== Building arch=${arch}, os=${os}, target=${bin} ==="
60+
CGO_ENABLED=0 \
61+
GOARCH=${arch} \
62+
GOOS=${os} \
63+
go build \
64+
-v \
65+
-ldflags "-s -w \
66+
-X ${PACKAGE_NAME}/version.GitCommit=${GIT_COMMIT} \
67+
-X ${PACKAGE_NAME}/version.ReleaseVersion=${RELEASE_VERSION} \
68+
-X ${PACKAGE_NAME}/version.BuildTime=${BUILD_TIME}" \
69+
-o ../bin/${bin}-${RELEASE_VERSION}-${os}-${arch} \
70+
./cmd/${bin}
71+
done
72+
done
73+
done
74+
popd
75+
5376
echo ""
5477
echo "Success! Your shiny new binaries are ready."
5578
echo "find ./bin -type f"

k8s-tester/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (cfg *Config) validateConfig() error {
264264
return err
265265
}
266266
}
267-
cfg.ConfigPath = filepath.Join(rootDir, cfg.ClusterName+".yaml")
267+
cfg.ConfigPath = filepath.Join(rootDir, cfg.ClusterName+".k8s-tester.yaml")
268268
var p string
269269
p, err = filepath.Abs(cfg.ConfigPath)
270270
if err != nil {

0 commit comments

Comments
 (0)