Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry mechanism to handle intermittent connection issues with Kubernetes logging stream #683

Merged

Commits on Nov 28, 2022

  1. add retry logic to receptor logstream on kube

    resume kube job log using kube log timestamp
    
    require fix for kubernetes/kubernetes#77603
    in kubernetes/kubernetes#113481
    
    fix is backported to the following kubernetes version
    - 1.23.14
    - 1.24.8
    - 1.25.4
    
    required fix for ansible/ansible-runner#1161
    
    fix is backported to the following ansible-runner version
    - 2.2.2
    - 2.3.1
    
    added `RECEPTOR_KUBE_SUPPORT_RECONNECT`  with following options:
    
    - “enabled”: this option will use timestamp with the log and enable our new code path
    - “disabled”: this option will not use timestamp and use the original code path
    - “auto”: auto detect if it's appropriate to enable timestamp base on kube version
    
    Co-Authored-By: Shane McDonald <me@shanemcd.com>
    Co-Authored-By: Seth Foster <fosterseth@users.noreply.github.com>
    Signed-off-by: Hao Liu <haoli@redhat.com>
    3 people committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b128f51 View commit details
    Browse the repository at this point in the history