diff --git a/cmd/tide/apply.go b/cmd/tide/apply.go index 93ca42f..9c6a9b7 100644 --- a/cmd/tide/apply.go +++ b/cmd/tide/apply.go @@ -8,7 +8,7 @@ import ( ) const applyDesc = ` -This command applys a chart archive. +This command applies a chart archive. The apply argument must be either a relative path to a chart directory or the name of a diff --git a/cmd/tide/engine.go b/cmd/tide/engine.go index 9c9a0ee..43235a2 100644 --- a/cmd/tide/engine.go +++ b/cmd/tide/engine.go @@ -29,12 +29,8 @@ func readManifest(installArg string) (string, error) { overrides := map[string]interface{}{ "Release": map[string]interface{}{ - "Name": "name", - "Time": "ts", - "Namespace": "s.env.Namespace", - "Service": "Tide", + "Service": "Tide", }, - "Chart": "req.Chart.Metadata", } files, err := env.EngineYard.Default().Render(chpb, vals, overrides) diff --git a/cmd/tide/tide.go b/cmd/tide/tide.go index 571e816..35beac4 100644 --- a/cmd/tide/tide.go +++ b/cmd/tide/tide.go @@ -1,16 +1,9 @@ package main import ( - "fmt" - "os" - "strings" - "github.com/spf13/cobra" ) -var stdout = os.Stdout -var helmHome string - // flagVerbose is a signal that the user wants additional output. var flagVerbose bool @@ -20,15 +13,7 @@ Tide is a standalone CLI tool to render Kubernetes packages with the Helm format It is a stateless tool, which uses the current directory to render the templates and either outputs them for further usage (e.g. pipeline with kubectl or other -scripting methods) or installs them directly to Kubernetes. - -Common actions from this point on include: - -- tide search: search for charts -- tide fetch: download a chart to your local directory to view -- tide install: upload the chart to Kubernetes -- tide list: list releases of charts -` +scripting methods) or installs them directly to Kubernetes.` // RootCommand is the top-level command for Helm. var RootCommand = &cobra.Command{ @@ -44,14 +29,3 @@ func init() { func main() { RootCommand.Execute() } - -func checkArgsLength(expectedNum, actualNum int, requiredArgs ...string) error { - if actualNum != expectedNum { - arg := "arguments" - if expectedNum == 1 { - arg = "argument" - } - return fmt.Errorf("This command needs %v %s: %s", expectedNum, arg, strings.Join(requiredArgs, ", ")) - } - return nil -}