mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Add helm update deps step to CI (#1381)
* Update testing to install deps * Add dep update step * Addressed review comments
This commit is contained in:
committed by
Adnan Abdulhussein
parent
0009a23933
commit
8fe482e143
@@ -20,6 +20,9 @@ kubectl -n kube-system create sa tiller
|
||||
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
|
||||
linux-amd64/helm init --service-account tiller --upgrade
|
||||
|
||||
linux-amd64/helm repo add stable https://kubernetes-charts.storage.googleapis.com/
|
||||
linux-amd64/helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
|
||||
|
||||
# Run test framework
|
||||
pushd .
|
||||
cd $GOPATH
|
||||
|
||||
@@ -232,6 +232,14 @@ func doMain() int {
|
||||
return execErr
|
||||
})
|
||||
|
||||
xmlWrap(fmt.Sprintf("Helm Dep Build %s", path.Base(chartPath)), func() error {
|
||||
o, execErr := output(exec.Command(helmPath, "dep", "build", chartPath))
|
||||
if execErr != nil {
|
||||
return fmt.Errorf("%s Command output: %s", execErr, string(o[:]))
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
xmlWrap(fmt.Sprintf("Helm Install %s", path.Base(chartPath)), func() error {
|
||||
o, execErr := output(exec.Command(helmPath, "install", chartPath, "--namespace", ns, "--name", rel, "--wait"))
|
||||
if execErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user