mirror of
https://github.com/ko-build/ko.git
synced 2025-07-12 23:50:31 +02:00
Use signal.NotifyContext and cmd.Context (#482)
This commit is contained in:
@ -70,9 +70,7 @@ func addCreate(topLevel *cobra.Command) {
|
||||
if !isKubectlAvailable() {
|
||||
return errors.New("error: kubectl is not available. kubectl must be installed to use ko create")
|
||||
}
|
||||
|
||||
// Cancel on signals.
|
||||
ctx := createCancellableContext()
|
||||
ctx := cmd.Context()
|
||||
|
||||
bo.InsecureRegistry = po.InsecureRegistry
|
||||
builder, err := makeBuilder(ctx, bo)
|
||||
|
Reference in New Issue
Block a user