From 845df22a3235289f16c1d5d00e2ec82443a0cfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Serv=C3=A9n=20Mar=C3=ADn?= Date: Thu, 20 May 2021 12:45:02 +0200 Subject: [PATCH] docs,README.md: clean up documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit cleans up some typos in the documentation, clarifies some explanations, fixes a bash script that would not expand a variable, and renames the API documentation generator command from gen-docs to docs-gen to match the output binary name. Signed-off-by: Lucas Servén Marín --- Makefile | 4 ++-- README.md | 4 ++-- cmd/{gen-docs => docs-gen}/main.go | 23 ++++++++----------- docs/api.md | 6 ++--- .../apis/kilo/v1alpha1/openapi_generated.go | 1 - pkg/k8s/apis/kilo/v1alpha1/types.go | 6 ++--- 6 files changed, 19 insertions(+), 25 deletions(-) rename cmd/{gen-docs => docs-gen}/main.go (84%) diff --git a/Makefile b/Makefile index 13b7dcf..3ea06e9 100644 --- a/Makefile +++ b/Makefile @@ -335,8 +335,8 @@ $(LISTER_GEN_BINARY): $(OPENAPI_GEN_BINARY): go build -mod=vendor -o $@ k8s.io/kube-openapi/cmd/openapi-gen -$(DOCS_GEN_BINARY): cmd/gen-docs/main.go - go build -mod=vendor -o $@ ./cmd/gen-docs +$(DOCS_GEN_BINARY): cmd/docs-gen/main.go + go build -mod=vendor -o $@ ./cmd/docs-gen $(GOLINT_BINARY): go build -mod=vendor -o $@ golang.org/x/lint/golint diff --git a/README.md b/README.md index 1195ddf..07e3db8 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ kubectl apply -f https://raw.githubusercontent.com/squat/kilo/main/manifests/kil ## VPN Kilo also enables peers outside of a Kubernetes cluster to connect to the VPN, allowing cluster applications to securely access external services and permitting developers and support to securely debug cluster resources. -In order to declare a peer, start by defining a Kilo peer resource: +In order to declare a peer, start by defining a Kilo Peer resource: ```shell cat <<'EOF' | kubectl apply -f - @@ -151,7 +151,7 @@ for n in $(kubectl --kubeconfig $KUBECONFIG2 get no -o name | cut -d'/' -f2); do kgctl --kubeconfig $KUBECONFIG2 showconf node $n --as-peer -o yaml --allowed-ips $SERVICECIDR2 | kubectl --kubeconfig $KUBECONFIG1 apply -f - done # Create a Service in cluster2 to mirror the Service in cluster1. -cat <<'EOF' | kubectl --kubeconfig $KUBECONFIG2 apply -f - +cat <