Skip to content

Commit

Permalink
Fix crdPath in automated tests when applying the crd directory (#1890)
Browse files Browse the repository at this point in the history
Add trailing slash to crdPath
  • Loading branch information
bjee19 authored Apr 29, 2024
1 parent e082924 commit c7fd089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/framework/ngf.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func InstallNGF(cfg InstallationConfig, extraArgs ...string) ([]byte, error) {

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

0 comments on commit c7fd089

Please sign in to comment.