Skip to content

Commit

Permalink
Mark endpoint-slices flag as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Feb 7, 2024
1 parent 3da71fc commit 9be5904
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/nghttpx-ingress-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ func main() {
`Specify namespace/name of Service whose hostnames/IP addresses are set in Ingress resource instead of addresses of Ingress controller Pods. Takes the form namespace/name.`)

rootCmd.Flags().BoolVar(&endpointSlices, "endpoint-slices", endpointSlices, `(Deprecated) Get endpoints from EndpointSlice resource instead of Endpoints resource. EndpointSlice resource is always used regardless of this flag. Usage of Endpoints resource has been removed.`)
if err := rootCmd.Flags().MarkDeprecated("endpoint-slices", "stop using it"); err != nil {
panic(err)
}

rootCmd.Flags().Float64Var(&reloadRate, "reload-rate", reloadRate,
`Rate (QPS) of reloading nghttpx configuration to deal with frequent backend updates in a single batch.`)
Expand Down

0 comments on commit 9be5904

Please sign in to comment.