Skip to content

Commit c7fd089

Browse files
authored
Fix crdPath in automated tests when applying the crd directory (#1890)
Add trailing slash to crdPath
1 parent e082924 commit c7fd089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/ngf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func InstallNGF(cfg InstallationConfig, extraArgs ...string) ([]byte, error) {
7878

7979
// UpgradeNGF upgrades NGF. CRD upgrades assume the chart is local.
8080
func UpgradeNGF(cfg InstallationConfig, extraArgs ...string) ([]byte, error) {
81-
crdPath := filepath.Join(cfg.ChartPath, "crds")
81+
crdPath := filepath.Join(cfg.ChartPath, "crds") + "/"
8282
if output, err := exec.Command("kubectl", "apply", "-f", crdPath).CombinedOutput(); err != nil {
8383
return output, err
8484
}

0 commit comments

Comments
 (0)