You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/cmd/deploy.go

25 lines
497 B

package main
import (
"errors"
dep "github.com/deis/helm-dm/deploy"
"github.com/deis/helm-dm/format"
)
func deploy(cfg *dep.Deployment, dry bool) error {
if dry {
format.Error("Not implemented: --dry-run")
}
if cfg.Filename == "" {
return errors.New("A filename must be specified. For a tar archive, this is the name of the root template in the archive.")
}
if err := cfg.Commit(); err != nil {
format.Error("Failed to commit deployment: %s", err)
return err
}
return nil
}