aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/Makefile
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-05-26 11:40:36 +0200
committerGary Wu <gary.wu@futurewei.com>2019-06-20 00:27:04 +0000
commitcc752913623586ea27104ef49230629d2c8c7921 (patch)
tree987b94469d40f5aaa95b5a1bdbce5e0e4e197075 /test/security/k8s/Makefile
parentf54cbc192441c82879d63d4d3aee7f7448c45172 (diff)
k8s: Add basic structure for validation tool
This patch introduces CLI utility for checking if Kubernetes cluster follows security recommendations. Provided Makefile simplifies setup process by setting appropriate environment variables for the build. Further information can be found in README. Provided symlink allows proper document rendering on VCS hosting site. Issue-ID: SECCOM-235 Change-Id: I4a1337c9834322ee4fd742a9ccb979b9bc505f75 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/Makefile')
-rw-r--r--test/security/k8s/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/security/k8s/Makefile b/test/security/k8s/Makefile
new file mode 100644
index 000000000..aeb1d9077
--- /dev/null
+++ b/test/security/k8s/Makefile
@@ -0,0 +1,20 @@
+PROJECT = check
+BIN_DIR = bin
+BIN = check
+
+all: run
+
+run: build
+ $(BIN_DIR)/$(BIN)
+
+build: $(BIN)
+
+$(BIN): export GOPATH = $(shell pwd)
+$(BIN):
+ go install $(PROJECT)/cmd/$(BIN)
+
+clean:
+ rm $(BIN_DIR)/$(BIN)
+ rmdir $(BIN_DIR)
+
+.PHONY: all run build clean $(BIN)