Skip to content

Commit

Permalink
terminate gcsfuse in sidecar container if native sidecar is used
Browse files Browse the repository at this point in the history
  • Loading branch information
songjiaxun committed Mar 4, 2024
1 parent ee04f73 commit cd03ed4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/sidecar_mounter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ func main() {
<-c // blocking the process
klog.Info("received SIGTERM signal, waiting for all the gcsfuse processes exit...")

// After the Kubernetes native sidecar container feature is adopted,
// we should propagate the SIGTERM signal to gcsfuse processes here.
// cancel()
if isNativeSidecar {
cancel()
}

mounter.WaitGroup.Wait()

klog.Info("exiting sidecar mounter...")
Expand Down

0 comments on commit cd03ed4

Please sign in to comment.