Skip to content

Commit

Permalink
Merge pull request #633 from louis-murray/helm-wait
Browse files Browse the repository at this point in the history
Add functionality to toggle the `--wait` flag on helm install/upgrade
  • Loading branch information
dgageot authored Jun 5, 2018
2 parents fb63e19 + b4f4c69 commit 68d9a15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/helm-deployment/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deploy:
- name: skaffold-helm
chartPath: skaffold-helm
namespace: skaffold
#wait: true
#valuesFilePath: helm-skaffold-values.yaml
values:
image: skaffold-helm
Expand Down
3 changes: 3 additions & 0 deletions pkg/skaffold/deploy/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (h *HelmDeployer) deployRelease(out io.Writer, r v1alpha2.HelmRelease, buil
setOpts = append(setOpts, fmt.Sprintf("%s=%s", k, v))
}
}
if r.Wait {
args = append(args, "--wait")
}
args = append(args, setOpts...)

return h.helm(out, args...)
Expand Down
1 change: 1 addition & 0 deletions pkg/skaffold/schema/v1alpha2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ type HelmRelease struct {
Namespace string `yaml:"namespace"`
Version string `yaml:"version"`
SetValues map[string]string `yaml:"setValues"`
Wait bool `yaml:"wait"`
}

// Artifact represents items that need to be built, along with the context in which
Expand Down

0 comments on commit 68d9a15

Please sign in to comment.