Skip to content

Commit

Permalink
chore: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Jan 24, 2025
1 parent 2368ba0 commit 6eb1e9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ func (t Test) K8s() error {
}()
// wait for the kind cluster is running correctly
err = sh.RunWithV(ENV, "kubectl", "wait", "--for=condition=Ready", "nodes", "--all", "--timeout=300s")
if err != nil {
return fmt.Errorf("can't wait for the kind cluster: %w", err)
}

err = sh.RunWithV(ENV, "kubectl", "apply", "-f", "./integration/testdata/fixtures/k8s/test_nginx.yaml")
if err != nil {
Expand Down Expand Up @@ -345,7 +348,7 @@ func initk8sLimitedUserEnv() error {
return err
}
}
envs := map[string]string{}
envs := make(map[string]string)
var err error
envs["CA"], err = sh.Output("kubectl", "config", "view", "-o", "jsonpath=\"{.clusters[?(@.name == 'kind-kind-test')].cluster.certificate-authority-data}\"", "--flatten")
if err != nil {
Expand Down

0 comments on commit 6eb1e9c

Please sign in to comment.