mirror of https://github.com/k3s-io/k3s
Minor doc/comment fixes that came up while reading through some code.
parent
d098456b6d
commit
d8dab5dfb9
|
@ -161,6 +161,9 @@ go run e2e.go --build
|
||||||
# Create a fresh cluster. Deletes a cluster first, if it exists
|
# Create a fresh cluster. Deletes a cluster first, if it exists
|
||||||
go run e2e.go --up
|
go run e2e.go --up
|
||||||
|
|
||||||
|
# Create a fresh cluster at a specific release version.
|
||||||
|
go run e2e.go --up --version=0.7.0
|
||||||
|
|
||||||
# Test if a cluster is up.
|
# Test if a cluster is up.
|
||||||
go run e2e.go --isup
|
go run e2e.go --isup
|
||||||
|
|
||||||
|
|
|
@ -51,12 +51,12 @@ func HandleCrash() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Forever loops forever running f every d. Catches any panics, and keeps going.
|
// Forever loops forever running f every period. Catches any panics, and keeps going.
|
||||||
func Forever(f func(), period time.Duration) {
|
func Forever(f func(), period time.Duration) {
|
||||||
Until(f, period, nil)
|
Until(f, period, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Until loops until stop channel is closed, running f every d.
|
// Until loops until stop channel is closed, running f every period.
|
||||||
// Catches any panics, and keeps going. f may not be invoked if
|
// Catches any panics, and keeps going. f may not be invoked if
|
||||||
// stop channel is already closed.
|
// stop channel is already closed.
|
||||||
func Until(f func(), period time.Duration, stopCh <-chan struct{}) {
|
func Until(f func(), period time.Duration, stopCh <-chan struct{}) {
|
||||||
|
|
Loading…
Reference in New Issue