Giter Site home page Giter Site logo

bluebosh / helm-update-config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from burdiyan/helm-update-config

1.0 1.0 3.0 5.27 MB

Helm plugin that allows to update config values of existing release.

License: MIT License

Makefile 1.30% Shell 33.09% Go 65.61%

helm-update-config's People

Contributors

burdiyan avatar edwardstudy avatar mattcui avatar zhangtbj avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

helm-update-config's Issues

Using plugin with TLS results in portforward error

I've noticed the following error message when updating a release using TLS:

$ helm update-config "cf.20191121.041748" --set-value env.FLUENTD_LOGDNA_INGESTER_DOMAIN="" --set-value env.FLUENTD_LOGDNA_API_KEY="" --tls-ca-cert=ca.pem --tls-cert=cert.pem --tls-key=key.pem --tls
E1121 18:17:59.275670   26143 portforward.go:303] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:57864->127.0.0.1:57868: write tcp4 127.0.0.1:57864->127.0.0.1:57868: write: broken pipe
Info: update successfully

The operation does indeed complete successfully. I've seen this portforward error before in my own Golang Helm Client implementations. Does anyone have more information about this? Could the error be potentially suppressed if it does not affect functionality?

update-config -f yaml --set-value returned "panic" when the same multi-layer value is set

This seems a bug from go package strvals. To simplify the issue, I wrote test code for this package:

import	"k8s.io/helm/pkg/strvals"

	m1 := make(map[string]interface{}) 
	m2 := make (map[string]map[string]int)

	m2["key2"]["key1"] = 1
	m2["key2"]["key12"] = 12
	m1["m2"] = m2
	m1["age"] = "12"
        m1["name"] = "simon"
	testStr := string("m2.key2.key1=200")

	fmt.Println("testStr:",testStr)
	fmt.Println("map1:", m1)

	strvals.ParseInto(testStr,m1)
	fmt.Println("after parse:", m1)

Output is

testStr: m2.key2.key1=200
map1: map[age:12 name:simon m2:map[key2:map[key1:1 key12:12]]]
panic: interface conversion: interface {} is map[string]map[string]int, not map[string]interface {}

goroutine 1 [running]:
k8s.io/helm/pkg/strvals.(*parser).key(0xc0000b2860, 0xc00009b950, 0x120917d, 0x14568a0)
	/Users/liujing/go/src/k8s.io/helm/pkg/strvals/parser.go:211 +0xedf
k8s.io/helm/pkg/strvals.(*parser).parse(0xc0000b2860, 0xc00009b950, 0x0)
	/Users/liujing/go/src/k8s.io/helm/pkg/strvals/parser.go:133 +0x38
k8s.io/helm/pkg/strvals.ParseInto(0x149e4ca, 0x10, 0xc00009b950, 0x4a, 0x0)
	/Users/liujing/go/src/k8s.io/helm/pkg/strvals/parser.go:85 +0xbe
cobratest/cmd.funcMapInterface()
	/Users/liujing/go/src/cobratest/cmd/hello.go:416 +0x9b9
cobratest/cmd.glob..func2(0x17f1e00, 0x1817fa8, 0x0, 0x0)
	/Users/liujing/go/src/cobratest/cmd/hello.go:52 +0x62
github.com/spf13/cobra.(*Command).execute(0x17f1e00, 0x1817fa8, 0x0, 0x0, 0x17f1e00, 0x1817fa8)
	/Users/liujing/go/src/github.com/spf13/cobra/command.go:766 +0x2cc
github.com/spf13/cobra.(*Command).ExecuteC(0x17f2060, 0xc000131f88, 0x1007220, 0xc000086058)
	/Users/liujing/go/src/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0x17f2060, 0x0, 0x0)
	/Users/liujing/go/src/github.com/spf13/cobra/command.go:800 +0x2b
cobratest/cmd.Execute()
	/Users/liujing/go/src/cobratest/cmd/root.go:66 +0x2d
main.main()
	/Users/liujing/go/src/cobratest/main.go:20 +0x20
exit status 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.