From 1b9c79f65d246981a2456b41034fd1245e17a785 Mon Sep 17 00:00:00 2001 From: zongzw Date: Fri, 7 Apr 2023 15:30:05 +0800 Subject: [PATCH 1/2] fix directory typo. --- build/Dockerfile | 2 +- build/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index ee5952c..2b52209 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,6 +1,6 @@ # docker build -t bigip-kubernetes-gateway:latest -f build/Dockerfile . FROM alpine:3.16.2 -COPY ../cmd/gateway/bigip-kubernetes-gateway-controller-linux / +COPY ../cmd/controller/bigip-kubernetes-gateway-controller-linux / RUN date > /build_date \ No newline at end of file diff --git a/build/Makefile b/build/Makefile index e3426a7..d6e721b 100644 --- a/build/Makefile +++ b/build/Makefile @@ -16,7 +16,7 @@ image_build: binary_build -f build/Dockerfile . binary_build: - cd ../cmd/gateway; \ + cd ../cmd/controller; \ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \ go build -ldflags '-s -w --extldflags "-static -fpic"' -o bigip-kubernetes-gateway-controller-linux; \ # CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 \ From 944eae1d237bbe60b182ae8893fec08c9c9620e7 Mon Sep 17 00:00:00 2001 From: zongzw Date: Fri, 7 Apr 2023 17:14:19 +0800 Subject: [PATCH 2/2] fix document typo. --- examples/beforehand-validation/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/beforehand-validation/README.md b/examples/beforehand-validation/README.md index 8398949..61ce6ce 100644 --- a/examples/beforehand-validation/README.md +++ b/examples/beforehand-validation/README.md @@ -19,15 +19,13 @@ When '--validates' is used at controller starts, the controller will check the r * If the `Gateway` doesn't exist, `HTTPRoute` upsert(update & insert) request would be denied. * If there are still `HTTPRoute`s referring to `Gateway`, the `Gateway`'s deletion request would be denied. - * + * *httproute.rules.backendRefs* When this option is appended, the reference between `HTTPRoute` and `Service` would be checked. - If there are no `Service` existing, `HTTPRoute` upsert request would be denied. - - If there + * If there are no `Service` existing, `HTTPRoute` upsert request would be denied. * *gateway.gatewayClassName*