From 73af17b0bdbd1d7ddbaffe228094bf7a8db47b19 Mon Sep 17 00:00:00 2001 From: pabateman Date: Mon, 19 Dec 2022 02:24:34 +0600 Subject: [PATCH 1/2] Improve help tips --- cmd/kubectl-nsenter/main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/kubectl-nsenter/main.go b/cmd/kubectl-nsenter/main.go index d2146bc..5b2b18c 100644 --- a/cmd/kubectl-nsenter/main.go +++ b/cmd/kubectl-nsenter/main.go @@ -24,7 +24,14 @@ func main() { HelpName: "kubectl-nsenter", Usage: "kubectl plugin for pod's linux namespaces command execution " + "via direct node ssh connection", - UsageText: "kubectl-nsenter [pod name] [flags] [command]", + UsageText: `kubectl-nsenter [flags] [pod name] [command] + + Example: + + kubectl-nsenter -u node_user sample-pod-0 ip address + + kubectl-nsenter -u node_user -p 2222 postgres-1 tcpdump -nni any port 5432 + `, UseShortOptionHandling: true, EnableBashCompletion: true, HideHelpCommand: true, From 398d4d6ca4173a5b5d7de2066080a134fa022b2e Mon Sep 17 00:00:00 2001 From: pabateman Date: Mon, 19 Dec 2022 02:28:25 +0600 Subject: [PATCH 2/2] Fill changelog and update version --- CHANGELOG.md | 4 ++++ cmd/kubectl-nsenter/main.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d86264c..52d33c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history +## v0.2.1 + +- Improve help tips + ## v0.2.0 - Init containers support diff --git a/cmd/kubectl-nsenter/main.go b/cmd/kubectl-nsenter/main.go index 5b2b18c..dd2bb31 100644 --- a/cmd/kubectl-nsenter/main.go +++ b/cmd/kubectl-nsenter/main.go @@ -13,7 +13,7 @@ import ( func main() { app := &cli.App{ Name: "kubectl-nsenter", - Version: "v0.2.0", + Version: "v0.2.1", Compiled: time.Now(), Authors: []*cli.Author{ {