Update test framework to install webhook
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
This commit is contained in:
parent
e77eacdcec
commit
76ed08d69b
@ -81,12 +81,19 @@ func RunE2ETests(t *testing.T) {
|
||||
const releaseName = "cm"
|
||||
|
||||
func InstallHelmChart(t *testing.T, releaseName, chartName, namespace, values string, extraArgs ...string) {
|
||||
err := exec.Command("helm", "dep", "update", chartName).Run()
|
||||
if err != nil {
|
||||
t.Errorf("Error updating dependencies for %q: %s", releaseName, err)
|
||||
t.FailNow()
|
||||
return
|
||||
}
|
||||
|
||||
args := []string{"install", chartName, "--namespace", namespace, "--name", releaseName, "--values", values, "--wait"}
|
||||
args = append(args, extraArgs...)
|
||||
cmd := exec.Command("helm", args...)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
err := cmd.Run()
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
t.Errorf("Error installing %q: %s", releaseName, err)
|
||||
t.FailNow()
|
||||
|
||||
6
test/fixtures/cert-manager-values.yaml
vendored
6
test/fixtures/cert-manager-values.yaml
vendored
@ -6,3 +6,9 @@ image:
|
||||
|
||||
extraArgs:
|
||||
- --v=4
|
||||
|
||||
webhook:
|
||||
enabled: true
|
||||
image:
|
||||
tag: build
|
||||
pullPolicy: Never
|
||||
|
||||
Loading…
Reference in New Issue
Block a user