Skip to content

Commit

Permalink
Fix "context deadline exceeded" error
Browse files Browse the repository at this point in the history
Turns out the helm.NewClient now requires a timeout, otherwise it fails immediately with the above error.
  • Loading branch information
databus23 committed Apr 12, 2018
1 parent 5769a24 commit 870756c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main() {
diff.release = args[0]
diff.chart = args[1]
if diff.client == nil {
diff.client = helm.NewClient(helm.Host(os.Getenv("TILLER_HOST")))
diff.client = helm.NewClient(helm.Host(os.Getenv("TILLER_HOST")), helm.ConnectTimeout(int64(30)))
}
return diff.run()
},
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "diff"
# Version is the version of Helm plus the number of official builds for this
# plugin
version: "2.8.2+1"
version: "2.8.2+2"
usage: "Preview helm upgrade changes as a diff"
description: "Preview helm upgrade changes as a diff"
useTunnel: true
Expand Down

0 comments on commit 870756c

Please sign in to comment.