• Kubernetes Submit Queue's avatar
    Merge pull request #57756 from mborsz/exec-manifest · de064310
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Add 'exec' in all saltbase manifests using '/bin/sh -c'.
    
    Right now, if docker sends SIGTERM, /bin/sh doesn't pass it to
    underlying process, which breaks graceful process shutdown.
    
    Changing '/bin/sh -c CMD > /var/log/FILE.log' pattern to '/bin/sh -c
    exec CMD > /var/log/FILE.log' still allows to redirect output to log
    file, but also passes all signals to CMD process.
    
    
    
    **What this PR does / why we need it**:
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #57707, Fixes #45959
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    Fix to allow kubernetes components to react to SIGTERM signal and shutdown gracefully.
    ```
    de064310
Name
Last commit
Last update
..
pillar Loading commit data...
reactor Loading commit data...
salt Loading commit data...
BUILD Loading commit data...
README.md Loading commit data...
install.sh Loading commit data...