From d245ef9b396b2381d5f34214d1ecd598bd9f1fe7 Mon Sep 17 00:00:00 2001 From: Manuel Morejon <manuel@mmorejon.io> Date: Sat, 25 Jul 2020 14:32:33 +0200 Subject: [PATCH 1/3] Remove tk sync example from help command Signed-off-by: Manuel Morejon <manuel@mmorejon.io> --- cmd/tk/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/tk/main.go b/cmd/tk/main.go index b3cf6f82..4552e565 100644 --- a/cmd/tk/main.go +++ b/cmd/tk/main.go @@ -38,7 +38,7 @@ var rootCmd = &cobra.Command{ SilenceErrors: true, Short: "Command line utility for assembling Kubernetes CD pipelines", Long: `Command line utility for assembling Kubernetes CD pipelines the GitOps way.`, - Example: ` # Check prerequisites + Example: ` # Check prerequisites tk check --pre # Install the latest version of the toolkit @@ -53,9 +53,6 @@ var rootCmd = &cobra.Command{ # List GitRepository sources and their status tk get sources git - # Trigger a GitRepository source sync - tk sync source git webapp-latest - # Export GitRepository sources in YAML format tk export source git --all > sources.yaml From 750830c3021ec09bdb1fa360e67094ded0cd347f Mon Sep 17 00:00:00 2001 From: Manuel Morejon <manuel@mmorejon.io> Date: Sun, 26 Jul 2020 00:24:58 +0200 Subject: [PATCH 2/3] Replace tk sync example by tk reconcile --- cmd/tk/main.go | 3 +++ docs/cmd/tk.md | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/tk/main.go b/cmd/tk/main.go index 4552e565..1e5a17ae 100644 --- a/cmd/tk/main.go +++ b/cmd/tk/main.go @@ -53,6 +53,9 @@ var rootCmd = &cobra.Command{ # List GitRepository sources and their status tk get sources git + # Trigger a GitRepository source reconciliation + tk reconcile source git gitops-system + # Export GitRepository sources in YAML format tk export source git --all > sources.yaml diff --git a/docs/cmd/tk.md b/docs/cmd/tk.md index b4dee787..b1fbf202 100644 --- a/docs/cmd/tk.md +++ b/docs/cmd/tk.md @@ -9,7 +9,7 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way. ### Examples ``` - # Check prerequisites + # Check prerequisites tk check --pre # Install the latest version of the toolkit @@ -24,8 +24,8 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way. # List GitRepository sources and their status tk get sources git - # Trigger a GitRepository source sync - tk sync source git webapp-latest + # Trigger a GitRepository source reconciliation + tk reconcile source git gitops-system # Export GitRepository sources in YAML format tk export source git --all > sources.yaml From ffd478491644915a3fdb6e3f22e8d252a041cbea Mon Sep 17 00:00:00 2001 From: Manuel Morejon <manuel@mmorejon.io> Date: Sun, 26 Jul 2020 00:35:40 +0200 Subject: [PATCH 3/3] Replace tab by space --- cmd/tk/main.go | 2 +- docs/cmd/tk.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tk/main.go b/cmd/tk/main.go index 1e5a17ae..1ac64299 100644 --- a/cmd/tk/main.go +++ b/cmd/tk/main.go @@ -53,7 +53,7 @@ var rootCmd = &cobra.Command{ # List GitRepository sources and their status tk get sources git - # Trigger a GitRepository source reconciliation + # Trigger a GitRepository source reconciliation tk reconcile source git gitops-system # Export GitRepository sources in YAML format diff --git a/docs/cmd/tk.md b/docs/cmd/tk.md index b1fbf202..ec88eccb 100644 --- a/docs/cmd/tk.md +++ b/docs/cmd/tk.md @@ -24,7 +24,7 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way. # List GitRepository sources and their status tk get sources git - # Trigger a GitRepository source reconciliation + # Trigger a GitRepository source reconciliation tk reconcile source git gitops-system # Export GitRepository sources in YAML format