Skip to content

Commit

Permalink
test: Go all in on Hubble
Browse files Browse the repository at this point in the history
- Enable hubble/hubble-cli/hubble-relay in the end-to-end testing
  by default.
- Set `global.registry` properly by splitting the image into 2 parts.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
  • Loading branch information
michi-covalent committed May 6, 2020
1 parent a7f8fc8 commit bd463c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/helpers/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ var (
// missing LRU support. On 4.19 and net-next we enable it with
// kubeProxyReplacement=strict.
"global.sessionAffinity.enabled": "false",

// Go all in on Hubble.
"global.hubble.cli.enabled": "true",
"global.hubble.enabled": "true",
"global.hubble.listenAddress": ":4244",
"global.hubble.relay.enabled": "true",
}

flannelHelmOverrides = map[string]string{
Expand Down Expand Up @@ -184,7 +190,7 @@ func init() {
defaultHelmOptions["global.tag"] = version
// This always works because SplitContainerURL would not return
// isFullyQualified == true otherwise
parts := strings.SplitN(image, "/", 1)
parts := strings.SplitN(image, "/", 2)
defaultHelmOptions["global.registry"] = registry + "/" + parts[0]
}
}
Expand Down

0 comments on commit bd463c3

Please sign in to comment.