@@ -16,8 +16,8 @@ import (
1616 "golang.org/x/net/html"
1717 "helm.sh/helm/v3/pkg/action"
1818 "helm.sh/helm/v3/pkg/chart/loader"
19-
2019 "helm.sh/helm/v3/pkg/cli"
20+
2121 "helm.sh/helm/v3/pkg/kube"
2222 "k8s.io/apimachinery/pkg/util/yaml"
2323)
@@ -273,20 +273,16 @@ func (f *Framework) deploy() {
273273 )
274274 f .GomegaT .Expect (err ).ShouldNot (HaveOccurred (), "init helm action config" )
275275
276- chartPathOptions := action.ChartPathOptions {
277- RepoURL : "https://charts.api7.ai" ,
278- }
276+ install := action .NewInstall ( actionConfig )
277+ install . Namespace = f . kubectlOpts . Namespace
278+ install . ReleaseName = "api7ee3"
279279
280- chartPath , err := chartPathOptions . LocateChart ("api7ee3" , cli .New ())
280+ chartPath , err := install . ChartPathOptions . LocateChart ("api7/ api7ee3" , cli .New ())
281281 f .GomegaT .Expect (err ).ShouldNot (HaveOccurred (), "locate helm chart" )
282282
283283 chart , err := loader .Load (chartPath )
284284 f .GomegaT .Expect (err ).ShouldNot (HaveOccurred (), "load helm chart" )
285285
286- install := action .NewInstall (actionConfig )
287- install .Namespace = f .kubectlOpts .Namespace
288- install .ReleaseName = "api7ee3"
289-
290286 buf := bytes .NewBuffer (nil )
291287 _ = valuesTemplate .Execute (buf , map [string ]any {
292288 "DB" : _db ,
0 commit comments