Skip to content

Commit

Permalink
chore: make reviewable
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Sep 5, 2024
1 parent 974acc3 commit 4e6554b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build
6 changes: 3 additions & 3 deletions pkg/cmd/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func printValidationResults(validationResults []unstructured.Unstructured) error
if err != nil {
return err
}
log.InfoCLI(vrStr)
log.InfoCLI("%s", vrStr)
}
return nil
}
Expand Down Expand Up @@ -947,7 +947,7 @@ func applyValidator(c *cfg.Config, vc *components.ValidatorConfig) error {
values = append(values, pluginValues...)
finalValues := string(values)
log.Debug("applying validator helm chart with values:")
log.Debug(finalValues)
log.Debug("%s", finalValues)

// install validator helm chart

Expand All @@ -962,7 +962,7 @@ func applyValidator(c *cfg.Config, vc *components.ValidatorConfig) error {
if !strings.HasSuffix(strings.TrimSpace(stderr), "already exists") {
return errors.Wrap(err, stderr)
}
log.Debug(stderr)
log.Debug("%s", stderr)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/services/env_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func ensureDockerCACertDir(path string) error {
cmd := exec.Command("sudo", "rm", "-f", path) //#nosec G204
_, stderr, err := exec_utils.Execute(true, cmd)
if err != nil {
return errors.Wrapf(err, stderr)
return errors.Wrapf(err, "%s", stderr)
}
return createDockerCACertDir(path)
}
Expand All @@ -269,7 +269,7 @@ func createDockerCACertDir(path string) error {
cmd := exec.Command("sudo", "mkdir", "-p", path) //#nosec G204
_, stderr, err := exec_utils.Execute(true, cmd)
if err != nil {
return errors.Wrapf(err, stderr)
return errors.Wrapf(err, "%s", stderr)
}
log.InfoCLI("Created Docker OCI CA certificate directory: %s", path)
return nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/validator/rule_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func initRule(rule validationrule.Interface, ruleType, message string, ruleNames
if name != "" {
log.InfoCLI("\nReconfiguring %s rule: %s", ruleType, name)
if message != "" {
log.InfoCLI(message)
log.InfoCLI("%s", message)
}
*ruleNames = append(*ruleNames, name)

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type logWriter struct {
}

func (l *logWriter) Write(p []byte) (n int, err error) {
log.InfoCLI(string(p))
log.InfoCLI("%s", string(p))
return l.buffer.Write(p)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/kube/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func KubectlCommand(params []string, kConfig string) (out, stderr string, err er
log.InfoCLI("\n==== Kubectl Command ==== Create Secret")
} else {
log.InfoCLI("\n==== Kubectl Command ====")
log.InfoCLI(cmd.String())
log.InfoCLI("%s", cmd.String())
}

out, stderr, err = exec_utils.Execute(true, cmd)
Expand Down

0 comments on commit 4e6554b

Please sign in to comment.