Skip to content

test: Fix hubble-relay image helm path#12076

Merged
joestringer merged 1 commit intomasterfrom
pr/jrajahalme/test-fix-hubble-relay-image-path
Jun 16, 2020
Merged

test: Fix hubble-relay image helm path#12076
joestringer merged 1 commit intomasterfrom
pr/jrajahalme/test-fix-hubble-relay-image-path

Conversation

@jrajahalme
Copy link
Copy Markdown
Member

'hubble-relay.image' was changed from a string to a map of strings by
commit commit bbf5377 ("Fix values scoping for newly implemented
sub-chart hubble-relay"). Fix the test helpers accordingly.

Without this helm would panic when ginkgo option
'-cilium.hubble-relay-image="docker.io/cilium/hubble-relay:latest"' is
passed as the helm command line included both 'hubble-relay.image' and
'hubble-relay.image.tag' like so:

$ helm template install/kubernetes/cilium --namespace=cilium --set hubble-relay.image=docker.io/cilium/hubble-relay:latest --set hubble-relay.image.tag=latest
panic: interface conversion: interface {} is string, not map[string]interface {}

goroutine 1 [running]:
helm.sh/helm/v3/pkg/strvals.(*parser).key(0xc0004c5ac0, 0xc00031a3c0, 0xc00067f800, 0xc)
/private/tmp/helm-20200608-50972-gq0j1j/src/helm.sh/helm/pkg/strvals/parser.go:211 +0xdea

Fixes: #11757
Signed-off-by: Jarno Rajahalme jarno@covalent.io

'hubble-relay.image' was changed from a string to a map of strings by
commit commit bbf5377 ("Fix values scoping for newly implemented
sub-chart hubble-relay"). Fix the test helpers accordingly.

Without this helm would panic when ginkgo option
'-cilium.hubble-relay-image="docker.io/cilium/hubble-relay:latest"' is
passed as the helm command line included both 'hubble-relay.image' and
'hubble-relay.image.tag' like so:

$ helm template install/kubernetes/cilium --namespace=cilium  --set hubble-relay.image=docker.io/cilium/hubble-relay:latest  --set hubble-relay.image.tag=latest
panic: interface conversion: interface {} is string, not map[string]interface {}

goroutine 1 [running]:
helm.sh/helm/v3/pkg/strvals.(*parser).key(0xc0004c5ac0, 0xc00031a3c0, 0xc00067f800, 0xc)
	/private/tmp/helm-20200608-50972-gq0j1j/src/helm.sh/helm/pkg/strvals/parser.go:211 +0xdea

Fixes: bbf5377
Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
@jrajahalme jrajahalme added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.8 labels Jun 15, 2020
@jrajahalme jrajahalme requested a review from a team as a code owner June 15, 2020 15:53
@jrajahalme
Copy link
Copy Markdown
Member Author

test-me-please

@jrajahalme jrajahalme requested a review from seanmwinn June 15, 2020 15:57
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.003%) to 37.065% when pulling 4dbf0fa on pr/jrajahalme/test-fix-hubble-relay-image-path into 17b597d on master.

@jrajahalme jrajahalme added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 16, 2020
@maintainer-s-little-helper maintainer-s-little-helper Bot removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 16, 2020
@joestringer joestringer merged commit 496624b into master Jun 16, 2020
@joestringer joestringer deleted the pr/jrajahalme/test-fix-hubble-relay-image-path branch June 16, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants