diff --git a/go/deploy-cli/main.go b/go/deploy-cli/main.go deleted file mode 100644 index 2666162c0..000000000 --- a/go/deploy-cli/main.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "os" - - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/argocd" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/certManager" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/dex" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/helmConfig" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/init" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/node" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/openstack" - _ "github.com/rackerlabs/understack/go/deploy-cli/cmd/other" -) - -func main() { - err := cmd.Execute() - if err != nil { - os.Exit(1) - } -} diff --git a/go/deploy-cli/.editorconfig b/go/understack/.editorconfig similarity index 100% rename from go/deploy-cli/.editorconfig rename to go/understack/.editorconfig diff --git a/go/deploy-cli/.gitignore b/go/understack/.gitignore similarity index 100% rename from go/deploy-cli/.gitignore rename to go/understack/.gitignore diff --git a/go/deploy-cli/.goreleaser.yaml b/go/understack/.goreleaser.yaml similarity index 98% rename from go/deploy-cli/.goreleaser.yaml rename to go/understack/.goreleaser.yaml index 59608abfa..2f5a376a5 100644 --- a/go/deploy-cli/.goreleaser.yaml +++ b/go/understack/.goreleaser.yaml @@ -18,7 +18,7 @@ builds: - CGO_ENABLED=0 goos: ["linux", "darwin", "windows"] goarch: ["386", "amd64", "arm64"] - binary: deploy-cli + binary: understack ldflags: - -s -w -X "main.version={{.Version}}" diff --git a/go/deploy-cli/README.md b/go/understack/README.md similarity index 87% rename from go/deploy-cli/README.md rename to go/understack/README.md index 298155283..102aacb8e 100644 --- a/go/deploy-cli/README.md +++ b/go/understack/README.md @@ -1,9 +1,8 @@ -# undercloud-deploy-cli +# understack -Undercloud Deploy cli helps quickly generate undercloud-deploy config files. +UnderStack CLI helps quickly generate a deployment repository. - -## How to use. +## How to use > Please make sure that you have kubeseal binary installed your system https://github.com/bitnami-labs/sealed-secrets diff --git a/go/deploy-cli/cmd/argocd/secrets.go b/go/understack/cmd/argocd/secrets.go similarity index 96% rename from go/deploy-cli/cmd/argocd/secrets.go rename to go/understack/cmd/argocd/secrets.go index ae856cee1..ca038c2da 100644 --- a/go/deploy-cli/cmd/argocd/secrets.go +++ b/go/understack/cmd/argocd/secrets.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/charmbracelet/log" "github.com/gookit/goutil/envutil" diff --git a/go/deploy-cli/cmd/argocd/templates/argoCluster.tmpl b/go/understack/cmd/argocd/templates/argoCluster.tmpl similarity index 100% rename from go/deploy-cli/cmd/argocd/templates/argoCluster.tmpl rename to go/understack/cmd/argocd/templates/argoCluster.tmpl diff --git a/go/deploy-cli/cmd/argocd/templates/argoSecretDeployRepo.tmpl b/go/understack/cmd/argocd/templates/argoSecretDeployRepo.tmpl similarity index 100% rename from go/deploy-cli/cmd/argocd/templates/argoSecretDeployRepo.tmpl rename to go/understack/cmd/argocd/templates/argoSecretDeployRepo.tmpl diff --git a/go/deploy-cli/cmd/certManager/secrets.go b/go/understack/cmd/certManager/secrets.go similarity index 92% rename from go/deploy-cli/cmd/certManager/secrets.go rename to go/understack/cmd/certManager/secrets.go index 44248d632..18e545e9f 100644 --- a/go/deploy-cli/cmd/certManager/secrets.go +++ b/go/understack/cmd/certManager/secrets.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/charmbracelet/log" "github.com/gookit/goutil/envutil" diff --git a/go/deploy-cli/cmd/certManager/templates/clusterIssuer.tmpl b/go/understack/cmd/certManager/templates/clusterIssuer.tmpl similarity index 100% rename from go/deploy-cli/cmd/certManager/templates/clusterIssuer.tmpl rename to go/understack/cmd/certManager/templates/clusterIssuer.tmpl diff --git a/go/deploy-cli/cmd/dex/secrets.go b/go/understack/cmd/dex/secrets.go similarity index 93% rename from go/deploy-cli/cmd/dex/secrets.go rename to go/understack/cmd/dex/secrets.go index af01433de..e8c04ae02 100644 --- a/go/deploy-cli/cmd/dex/secrets.go +++ b/go/understack/cmd/dex/secrets.go @@ -4,8 +4,8 @@ import ( "fmt" "path/filepath" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/charmbracelet/log" "github.com/gookit/goutil/envutil" diff --git a/go/deploy-cli/cmd/helmConfig/helmConfig.go b/go/understack/cmd/helmConfig/helmConfig.go similarity index 98% rename from go/deploy-cli/cmd/helmConfig/helmConfig.go rename to go/understack/cmd/helmConfig/helmConfig.go index cfa2b3900..d9461cdd7 100644 --- a/go/deploy-cli/cmd/helmConfig/helmConfig.go +++ b/go/understack/cmd/helmConfig/helmConfig.go @@ -5,8 +5,8 @@ import ( "os" "path/filepath" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/gookit/goutil/envutil" "github.com/gookit/goutil/fsutil" diff --git a/go/deploy-cli/cmd/init/init.go b/go/understack/cmd/init/init.go similarity index 77% rename from go/deploy-cli/cmd/init/init.go rename to go/understack/cmd/init/init.go index faf597f8b..3fb1b33f4 100644 --- a/go/deploy-cli/cmd/init/init.go +++ b/go/understack/cmd/init/init.go @@ -5,14 +5,14 @@ import ( "os" "os/exec" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/argocd" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/certManager" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/dex" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/helmConfig" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/node" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/openstack" - "github.com/rackerlabs/understack/go/deploy-cli/cmd/other" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/cmd/argocd" + "github.com/rackerlabs/understack/go/understack/cmd/certManager" + "github.com/rackerlabs/understack/go/understack/cmd/dex" + "github.com/rackerlabs/understack/go/understack/cmd/helmConfig" + "github.com/rackerlabs/understack/go/understack/cmd/node" + "github.com/rackerlabs/understack/go/understack/cmd/openstack" + "github.com/rackerlabs/understack/go/understack/cmd/other" "github.com/charmbracelet/log" "github.com/gookit/goutil/envutil" diff --git a/go/deploy-cli/cmd/node/node.go b/go/understack/cmd/node/node.go similarity index 92% rename from go/deploy-cli/cmd/node/node.go rename to go/understack/cmd/node/node.go index 44fc23e61..83d3183d8 100644 --- a/go/deploy-cli/cmd/node/node.go +++ b/go/understack/cmd/node/node.go @@ -4,8 +4,8 @@ import ( "context" "os" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/charmbracelet/log" diff --git a/go/deploy-cli/cmd/openstack/secrets.go b/go/understack/cmd/openstack/secrets.go similarity index 90% rename from go/deploy-cli/cmd/openstack/secrets.go rename to go/understack/cmd/openstack/secrets.go index d0ef845e2..4f907c144 100644 --- a/go/deploy-cli/cmd/openstack/secrets.go +++ b/go/understack/cmd/openstack/secrets.go @@ -1,8 +1,8 @@ package openstack import ( - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/charmbracelet/log" diff --git a/go/deploy-cli/cmd/other/openstack.go b/go/understack/cmd/other/openstack.go similarity index 100% rename from go/deploy-cli/cmd/other/openstack.go rename to go/understack/cmd/other/openstack.go diff --git a/go/deploy-cli/cmd/other/other.go b/go/understack/cmd/other/other.go similarity index 97% rename from go/deploy-cli/cmd/other/other.go rename to go/understack/cmd/other/other.go index b9b9a84aa..a9b55f3a1 100644 --- a/go/deploy-cli/cmd/other/other.go +++ b/go/understack/cmd/other/other.go @@ -4,8 +4,8 @@ import ( "os" "path/filepath" - "github.com/rackerlabs/understack/go/deploy-cli/cmd" - "github.com/rackerlabs/understack/go/deploy-cli/helpers" + "github.com/rackerlabs/understack/go/understack/cmd" + "github.com/rackerlabs/understack/go/understack/helpers" "github.com/charmbracelet/log" "github.com/gookit/goutil/envutil" diff --git a/go/deploy-cli/cmd/root.go b/go/understack/cmd/root.go similarity index 100% rename from go/deploy-cli/cmd/root.go rename to go/understack/cmd/root.go diff --git a/go/deploy-cli/go.mod b/go/understack/go.mod similarity index 98% rename from go/deploy-cli/go.mod rename to go/understack/go.mod index 37ec26984..077cdb714 100644 --- a/go/deploy-cli/go.mod +++ b/go/understack/go.mod @@ -1,4 +1,4 @@ -module github.com/rackerlabs/understack/go/deploy-cli +module github.com/rackerlabs/understack/go/understack go 1.23.6 diff --git a/go/deploy-cli/go.sum b/go/understack/go.sum similarity index 100% rename from go/deploy-cli/go.sum rename to go/understack/go.sum diff --git a/go/deploy-cli/helpers/helpers.go b/go/understack/helpers/helpers.go similarity index 100% rename from go/deploy-cli/helpers/helpers.go rename to go/understack/helpers/helpers.go diff --git a/go/deploy-cli/helpers/kube.go b/go/understack/helpers/kube.go similarity index 100% rename from go/deploy-cli/helpers/kube.go rename to go/understack/helpers/kube.go diff --git a/go/deploy-cli/helpers/kubeseal.go b/go/understack/helpers/kubeseal.go similarity index 100% rename from go/deploy-cli/helpers/kubeseal.go rename to go/understack/helpers/kubeseal.go diff --git a/go/deploy-cli/helpers/kustomization.go b/go/understack/helpers/kustomization.go similarity index 100% rename from go/deploy-cli/helpers/kustomization.go rename to go/understack/helpers/kustomization.go diff --git a/go/deploy-cli/helpers/random.go b/go/understack/helpers/random.go similarity index 100% rename from go/deploy-cli/helpers/random.go rename to go/understack/helpers/random.go diff --git a/go/deploy-cli/helpers/template.go b/go/understack/helpers/template.go similarity index 100% rename from go/deploy-cli/helpers/template.go rename to go/understack/helpers/template.go diff --git a/go/understack/main.go b/go/understack/main.go new file mode 100644 index 000000000..3a41f4061 --- /dev/null +++ b/go/understack/main.go @@ -0,0 +1,22 @@ +package main + +import ( + "os" + + "github.com/rackerlabs/understack/go/understack/cmd" + _ "github.com/rackerlabs/understack/go/understack/cmd/argocd" + _ "github.com/rackerlabs/understack/go/understack/cmd/certManager" + _ "github.com/rackerlabs/understack/go/understack/cmd/dex" + _ "github.com/rackerlabs/understack/go/understack/cmd/helmConfig" + _ "github.com/rackerlabs/understack/go/understack/cmd/init" + _ "github.com/rackerlabs/understack/go/understack/cmd/node" + _ "github.com/rackerlabs/understack/go/understack/cmd/openstack" + _ "github.com/rackerlabs/understack/go/understack/cmd/other" +) + +func main() { + err := cmd.Execute() + if err != nil { + os.Exit(1) + } +}