mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-19 07:52:52 +08:00
Merge pull request #116916 from mhuxtable/mhuxtable/update-signals-documentation
Fix sample-controller docs after moving to context-based cancellation Kubernetes-commit: ab4ce0e9b8702c47fff1087eb676f77528783473
This commit is contained in:
commit
8d86290f18
12
go.mod
12
go.mod
@ -6,9 +6,9 @@ go 1.20
|
||||
|
||||
require (
|
||||
k8s.io/api v0.0.0-20230327181730-ec59454f24f5
|
||||
k8s.io/apimachinery v0.0.0-20230315054728-8d1258da8f38
|
||||
k8s.io/client-go v0.0.0-20230327182304-04ef61f72b7b
|
||||
k8s.io/code-generator v0.0.0-20230327155628-450bfcd76181
|
||||
k8s.io/apimachinery v0.0.0-20230411235754-c1741f1470ae
|
||||
k8s.io/client-go v0.0.0-20230412040258-8005e0d28ba2
|
||||
k8s.io/code-generator v0.0.0-20230411211632-2d17b8d627fe
|
||||
k8s.io/klog/v2 v2.90.1
|
||||
)
|
||||
|
||||
@ -59,7 +59,7 @@ require (
|
||||
|
||||
replace (
|
||||
k8s.io/api => k8s.io/api v0.0.0-20230327181730-ec59454f24f5
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20230315054728-8d1258da8f38
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20230327182304-04ef61f72b7b
|
||||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20230327155628-450bfcd76181
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20230411235754-c1741f1470ae
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20230412040258-8005e0d28ba2
|
||||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20230411211632-2d17b8d627fe
|
||||
)
|
||||
|
12
go.sum
12
go.sum
@ -474,12 +474,12 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9
|
||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
k8s.io/api v0.0.0-20230327181730-ec59454f24f5 h1:w1YnXoFKIeL9JZfIYRn9CRdkX8/kW10SoxGzGqPZBZs=
|
||||
k8s.io/api v0.0.0-20230327181730-ec59454f24f5/go.mod h1:RAYThv5ELmDNk2Kt+PWiwWtAI1TZyap1JK1QStRzwyw=
|
||||
k8s.io/apimachinery v0.0.0-20230315054728-8d1258da8f38 h1:n1qDRCTPAXwyXYg7eSpWDO9FdW79lwAQ9dAr1vETpn4=
|
||||
k8s.io/apimachinery v0.0.0-20230315054728-8d1258da8f38/go.mod h1:5ikh59fK3AJ287GUvpUsryoMFtH9zj/ARfWCo3AyXTM=
|
||||
k8s.io/client-go v0.0.0-20230327182304-04ef61f72b7b h1:i7ybYFiSOVv9P25DBnXGGve5ZIC4zdhFP0bTqkWJp1c=
|
||||
k8s.io/client-go v0.0.0-20230327182304-04ef61f72b7b/go.mod h1:dBvRRpzMiHmy81Mlb3+3GW9DkCYV6b/bEEwMBTmfzFM=
|
||||
k8s.io/code-generator v0.0.0-20230327155628-450bfcd76181 h1:wUOaOuF+LaBw/y8h4FviQPgdaQvpIaRI7aUOV0tonjs=
|
||||
k8s.io/code-generator v0.0.0-20230327155628-450bfcd76181/go.mod h1:iWtpm0ZMG6Gc4daWfITDSIu+WFhFJArYDhj242zcbnY=
|
||||
k8s.io/apimachinery v0.0.0-20230411235754-c1741f1470ae h1:DAZ4vnjauD5+IAaf5khBE2B2OtQpmjUbqrtUVN76DYI=
|
||||
k8s.io/apimachinery v0.0.0-20230411235754-c1741f1470ae/go.mod h1:5ikh59fK3AJ287GUvpUsryoMFtH9zj/ARfWCo3AyXTM=
|
||||
k8s.io/client-go v0.0.0-20230412040258-8005e0d28ba2 h1:Mxfg52BtCwS9aQ0uqJSBtpQrDvFdbTZve06ttHHOqRk=
|
||||
k8s.io/client-go v0.0.0-20230412040258-8005e0d28ba2/go.mod h1:OxG0CHMCzsv5/3LcNDNXMggbUbsrNzwa/4wfzm234x0=
|
||||
k8s.io/code-generator v0.0.0-20230411211632-2d17b8d627fe h1:j2GQSzGN18GecmT9hEkkzHH0TIms+Wh3J1ib8ZycMak=
|
||||
k8s.io/code-generator v0.0.0-20230411211632-2d17b8d627fe/go.mod h1:iWtpm0ZMG6Gc4daWfITDSIu+WFhFJArYDhj242zcbnY=
|
||||
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d h1:U9tB195lKdzwqicbJvyJeOXV7Klv+wNAWENRnXEGi08=
|
||||
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
|
||||
k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
|
||||
|
@ -24,9 +24,9 @@ import (
|
||||
|
||||
var onlyOneSignalHandler = make(chan struct{})
|
||||
|
||||
// SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned
|
||||
// which is closed on one of these signals. If a second signal is caught, the program
|
||||
// is terminated with exit code 1.
|
||||
// SetupSignalHandler registered for SIGTERM and SIGINT. A context is returned
|
||||
// which is cancelled on one of these signals. If a second signal is caught,
|
||||
// the program is terminated with exit code 1.
|
||||
func SetupSignalHandler() context.Context {
|
||||
close(onlyOneSignalHandler) // panics when called twice
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user