Skip to content

Commit

Permalink
Merge pull request #604 from testwill/ioutil
Browse files Browse the repository at this point in the history
chore: remove refs to deprecated io/ioutil
  • Loading branch information
linki authored Jul 23, 2024
2 parents f71ab89 + 9eeb80d commit 3614210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"context"
"fmt"
"io/ioutil"
"io"
"math/rand"
"net/http"
_ "net/http/pprof"
Expand Down Expand Up @@ -70,7 +70,7 @@ func cliEnvVar(name string) string {

func init() {
rand.Seed(time.Now().UTC().UnixNano())
klog.SetOutput(ioutil.Discard)
klog.SetOutput(io.Discard)

kingpin.Flag("labels", "A set of labels to restrict the list of affected pods. Defaults to everything.").Envar(cliEnvVar("LABELS")).StringVar(&labelString)
kingpin.Flag("annotations", "A set of annotations to restrict the list of affected pods. Defaults to everything.").Envar(cliEnvVar("ANNOTATIONS")).StringVar(&annString)
Expand Down

0 comments on commit 3614210

Please sign in to comment.