Skip to content

Commit 870756c

Browse files
committed
Fix "context deadline exceeded" error
Turns out the helm.NewClient now requires a timeout, otherwise it fails immediately with the above error.
1 parent 5769a24 commit 870756c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func main() {
6262
diff.release = args[0]
6363
diff.chart = args[1]
6464
if diff.client == nil {
65-
diff.client = helm.NewClient(helm.Host(os.Getenv("TILLER_HOST")))
65+
diff.client = helm.NewClient(helm.Host(os.Getenv("TILLER_HOST")), helm.ConnectTimeout(int64(30)))
6666
}
6767
return diff.run()
6868
},

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "diff"
22
# Version is the version of Helm plus the number of official builds for this
33
# plugin
4-
version: "2.8.2+1"
4+
version: "2.8.2+2"
55
usage: "Preview helm upgrade changes as a diff"
66
description: "Preview helm upgrade changes as a diff"
77
useTunnel: true

0 commit comments

Comments
 (0)