Skip to content

Commit

Permalink
Fix the prerequisite validation
Browse files Browse the repository at this point in the history
Previously it was checking for the presense of golang instead of kubectl
  • Loading branch information
nikhilsbhat committed Mar 9, 2024
1 parent 407b5c7 commit 95eeaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func (drift *Drift) ValidatePrerequisite() bool {
success := true

if goPath := exec.Command("go"); goPath.Err != nil {
if goPath := exec.Command("kubectl"); goPath.Err != nil {
if !errors.Is(goPath.Err, exec.ErrDot) {
drift.log.Infof("%v", goPath.Err.Error())
drift.log.Info("helm-drift requires 'kubectl' to identify drifts")
Expand Down

0 comments on commit 95eeaac

Please sign in to comment.