Skip to content

Commit

Permalink
Merge pull request #33331 from BenTheElder/set-loglevel-v
Browse files Browse the repository at this point in the history
migrate off of deprecated KIND flags
  • Loading branch information
k8s-ci-robot authored Aug 17, 2024
2 parents f659c26 + 04db5ad commit 9d8af80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions experiment/kind-conformance-image-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ install_kind() {
# build kubernetes / node image, e2e binaries
build() {
# build the node image w/ kubernetes
kind build node-image --kube-root="${PWD}"
kind build node-image "${PWD}"

# ensure kubectl is in path
local maybe_kubectl
Expand Down Expand Up @@ -94,7 +94,7 @@ EOF
--image=kindest/node:latest \
--retain \
--wait=1m \
--loglevel=debug \
-v=3 \
"--config=${ARTIFACTS}/kind-config.yaml"
}

Expand Down
3 changes: 2 additions & 1 deletion kubetest/kind/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (d *Deployer) Build() error {
buildNodeImage = kindNodeImageLatest
}

args := []string{"build", "node-image", "--type=" + buildType, flagLogLevel, "--kube-root=" + d.importPathK8s}
args := []string{"build", "node-image", "--type=" + buildType, flagLogLevel}
if buildNodeImage != "" {
args = append(args, "--image="+buildNodeImage)
// override user-specified node image
Expand All @@ -246,6 +246,7 @@ func (d *Deployer) Build() error {
}

// Build the node image (including kubernetes)
args = append(args, d.importPathK8s)
cmd := exec.Command("kind", args...)
if err := d.control.FinishRunning(cmd); err != nil {
return err
Expand Down

0 comments on commit 9d8af80

Please sign in to comment.