Skip to content

Commit

Permalink
add retry logic to receptor logstream on kube
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people committed Nov 28, 2022
1 parent a65ef6c commit 36facda
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 119 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ endif

test: receptor
PATH=${PWD}:${PATH} \
go test ./... -p 1 -parallel=16 $(TESTCMD) -count=1 -race
go test ./... -p 1 -parallel=16 $(TESTCMD) -count=1 -race -v

receptorctl-test: receptorctl/.VERSION
@cd receptorctl && tox -e py3
Expand Down
Loading

0 comments on commit 36facda

Please sign in to comment.