Skip to content

Commit

Permalink
fix: missing feature gate on validator.go for kapp
Browse files Browse the repository at this point in the history
  • Loading branch information
nutellinoit committed May 8, 2024
1 parent 317081b commit e5ea3a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/dependencies/tools/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func (tv *Validator) validateTools(i any, kfdManifest config.KFD) ([]string, []e
continue
}

if (toolName == "kapp") && !distribution.HasFeature(kfdManifest, distribution.FeatureKappSupport) {
continue
}

tool := tv.toolFactory.Create(itool.Name(toolName), toolCfg.Version)
if err := tool.CheckBinVersion(); err != nil {
errs = append(errs, err)
Expand Down

0 comments on commit e5ea3a4

Please sign in to comment.