Rename gotk-system namespace to flux-system
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
@@ -41,9 +41,9 @@ var createAlertCmd = &cobra.Command{
|
||||
Example: ` # Create an Alert for kustomization events
|
||||
gotk create alert \
|
||||
--event-severity info \
|
||||
--event-source Kustomization/gotk-system \
|
||||
--event-source Kustomization/flux-system \
|
||||
--provider-ref slack \
|
||||
gotk-system
|
||||
flux-system
|
||||
`,
|
||||
RunE: createAlertCmdRun,
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ var installCmd = &cobra.Command{
|
||||
Short: "Install the toolkit components",
|
||||
Long: `The install command deploys the toolkit components in the specified namespace.
|
||||
If a previous version is installed, then an in-place upgrade will be performed.`,
|
||||
Example: ` # Install the latest version in the gotk-system namespace
|
||||
gotk install --version=latest --namespace=gotk-system
|
||||
Example: ` # Install the latest version in the flux-system namespace
|
||||
gotk install --version=latest --namespace=flux-system
|
||||
|
||||
# Dry-run install for a specific version and a series of components
|
||||
gotk install --dry-run --version=v0.0.7 --components="source-controller,kustomize-controller"
|
||||
@@ -46,7 +46,7 @@ If a previous version is installed, then an in-place upgrade will be performed.`
|
||||
gotk install --dry-run --verbose
|
||||
|
||||
# Write install manifests to file
|
||||
gotk install --export > gotk-system.yaml
|
||||
gotk install --export > flux-system.yaml
|
||||
`,
|
||||
RunE: installCmdRun,
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/fluxcd/toolkit/pkg/manifestgen/install"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -28,6 +27,7 @@ import (
|
||||
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
||||
|
||||
gotklog "github.com/fluxcd/toolkit/pkg/log"
|
||||
"github.com/fluxcd/toolkit/pkg/manifestgen/install"
|
||||
)
|
||||
|
||||
var VERSION = "0.0.0-dev.0"
|
||||
@@ -55,7 +55,7 @@ var rootCmd = &cobra.Command{
|
||||
gotk get sources git
|
||||
|
||||
# Trigger a GitRepository source reconciliation
|
||||
gotk reconcile source git gotk-system
|
||||
gotk reconcile source git flux-system
|
||||
|
||||
# Export GitRepository sources in YAML format
|
||||
gotk export source git --all > sources.yaml
|
||||
|
||||
@@ -37,10 +37,10 @@ var uninstallCmd = &cobra.Command{
|
||||
Short: "Uninstall the toolkit components",
|
||||
Long: "The uninstall command removes the namespace, cluster roles, cluster role bindings and CRDs from the cluster.",
|
||||
Example: ` # Dry-run uninstall of all components
|
||||
gotk uninstall --dry-run --namespace=gotk-system
|
||||
gotk uninstall --dry-run --namespace=flux-system
|
||||
|
||||
# Uninstall all components and delete custom resource definitions
|
||||
gotk uninstall --resources --crds --namespace=gotk-system
|
||||
gotk uninstall --resources --crds --namespace=flux-system
|
||||
`,
|
||||
RunE: uninstallCmdRun,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user