Skip to content

Commit

Permalink
webhook: Fix deployment
Browse files Browse the repository at this point in the history
Set KUBECONFIG

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
  • Loading branch information
bpradipt committed Oct 21, 2024
1 parent c5ab4cd commit 460bae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cloud-api-adaptor/test/provisioner/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,12 @@ func (p *CloudAPIAdaptor) Deploy(ctx context.Context, cfg *envconf.Config, props
cmd = exec.Command("make", "-C", "../webhook", "deploy-cert-manager")
// Run the deployment from the root src dir
cmd.Dir = p.rootSrcDir
cmd.Env = append(os.Environ(), fmt.Sprintf("KUBECONFIG="+cfg.KubeconfigFile()))
stdoutStderr, err = cmd.CombinedOutput()
log.Tracef("%v, output: %s", cmd, stdoutStderr)
if err != nil {
log.Infof("Error in install cert-manager: %s: %s", err, stdoutStderr)

return err
}

Expand Down

0 comments on commit 460bae1

Please sign in to comment.