Skip to content

Commit 935698a

Browse files
committed
refactor: remove not needed comments and context
1 parent 7941a94 commit 935698a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

cmd/kar-controllers/app/options/options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
6666
fs.StringVar(&s.QuotaRestURL, "quotaURL", s.QuotaRestURL, "URL for ReST quota management. Default is none.")
6767
fs.IntVar(&s.SecurePort, "secure-port", 6443, "The port on which to serve secured, authenticated access for metrics.")
6868
fs.IntVar(&s.HealthProbeListenPort, "healthProbeListenPort", 8081, "Listen port for health probes. Defaults to ':8081'")
69-
// using port 9090 for metrics as 8082 is used by `custom-metrics-apiserver`
7069
fs.IntVar(&s.MetricsListenPort, "metricsListenPort", 9090, "Listen port for metrics. Defaults to ':9090'")
7170
fs.Int64Var(&s.DispatchResourceReservationTimeout, "dispatchResourceReservationTimeout", s.DispatchResourceReservationTimeout, "Resource reservation timeout for pods to be created once AppWrapper is dispatched, in millisecond. Defaults to '300000', 5 minutes")
7271
}

cmd/kar-controllers/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ func main() {
5858
os.Exit(1)
5959
}
6060

61-
<-ctx.Done()
6261
fmt.Println("Shutting down gracefully")
6362

6463
}

0 commit comments

Comments
 (0)