-
Notifications
You must be signed in to change notification settings - Fork 9
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
refactor(kubernetes): manage log streaming at pod-level #303
Commits on Apr 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c9ece53 - Browse repository at this point
Copy the full SHA c9ece53View commit details -
feat(k8s): Use PodTracker in WaitContainer
Replaces manual Pods Watch API call with a "container is terminated" signal in a containerTracker. That signal is controlled by the PodTracker based on Add/Update/Delete pod events from the PodInformer (which does its own watch/list API calls internally).
Configuration menu - View commit details
-
Copy full SHA for acbe508 - Browse repository at this point
Copy the full SHA acbe508View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f84d3e - Browse repository at this point
Copy the full SHA 9f84d3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e2d3bb - Browse repository at this point
Copy the full SHA 5e2d3bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e25ffe - Browse repository at this point
Copy the full SHA 6e25ffeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67387f4 - Browse repository at this point
Copy the full SHA 67387f4View commit details -
refactor: podTracker.Containers should have containerTracker refs
the containerTracker has locks in it, so we don't want to copy it. We want to get references to it.
Configuration menu - View commit details
-
Copy full SHA for 98f3add - Browse repository at this point
Copy the full SHA 98f3addView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fc8717 - Browse repository at this point
Copy the full SHA 8fc8717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c4f885 - Browse repository at this point
Copy the full SHA 7c4f885View commit details
Commits on Apr 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6df6625 - Browse repository at this point
Copy the full SHA 6df6625View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22e073f - Browse repository at this point
Copy the full SHA 22e073fView commit details
Commits on Apr 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3adeb9f - Browse repository at this point
Copy the full SHA 3adeb9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b46d906 - Browse repository at this point
Copy the full SHA b46d906View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f5b86a - Browse repository at this point
Copy the full SHA 9f5b86aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b383384 - Browse repository at this point
Copy the full SHA b383384View commit details -
Configuration menu - View commit details
-
Copy full SHA for 515aeb3 - Browse repository at this point
Copy the full SHA 515aeb3View commit details -
refactor(tests): fix WaitContainer test with more direct mock
Instead of figuring out how to mock a podInformer resync (which the Informer was not designed to allow), we just call the HandlePodUpdate method and trust that the informer works with the API correctly (so no need to test that).
Configuration menu - View commit details
-
Copy full SHA for 46921ee - Browse repository at this point
Copy the full SHA 46921eeView commit details -
enhance(k8s): expose executor.max_log_size to kubernetes runtime
The k8s runtime needs to cache the logs before the executor requests them. So, expose the maxLogSize so that the cached logs can be truncated near that size.
Configuration menu - View commit details
-
Copy full SHA for 615b23f - Browse repository at this point
Copy the full SHA 615b23fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a723fc8 - Browse repository at this point
Copy the full SHA a723fc8View commit details -
enhance(k8s): add k8s Namespace and pod Name to podTracker
this is needed for log streaming
Configuration menu - View commit details
-
Copy full SHA for e8f822a - Browse repository at this point
Copy the full SHA e8f822aView commit details -
refactor(k8s): start streaming logs before steps start
We need to make sure to capture all of the logs.
Configuration menu - View commit details
-
Copy full SHA for f374395 - Browse repository at this point
Copy the full SHA f374395View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c49248 - Browse repository at this point
Copy the full SHA 7c49248View commit details -
refactor(k8s): stream logs via Reader instead of Scanner
This is how stern does it, and it lets us detect the end of the stream.
Configuration menu - View commit details
-
Copy full SHA for 8c253f1 - Browse repository at this point
Copy the full SHA 8c253f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d66110 - Browse repository at this point
Copy the full SHA 0d66110View commit details -
Configuration menu - View commit details
-
Copy full SHA for b57a353 - Browse repository at this point
Copy the full SHA b57a353View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8d1683 - Browse repository at this point
Copy the full SHA b8d1683View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42b554e - Browse repository at this point
Copy the full SHA 42b554eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c82ddfc - Browse repository at this point
Copy the full SHA c82ddfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78a8252 - Browse repository at this point
Copy the full SHA 78a8252View commit details -
Configuration menu - View commit details
-
Copy full SHA for 348fe3d - Browse repository at this point
Copy the full SHA 348fe3dView commit details -
bugfix: work around k8s fake client GetLogs bug
bug in default ObjectReactor: github.com/kubernetes/client-go/issues/873
Configuration menu - View commit details
-
Copy full SHA for 49b0163 - Browse repository at this point
Copy the full SHA 49b0163View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cc5696 - Browse repository at this point
Copy the full SHA 2cc5696View commit details -
tests: refactor k8s runtime AssembleBuild test to use subtests
Also clean up test to call to call out what was an implicit use of podTracker and make its use make sense for the test.
Configuration menu - View commit details
-
Copy full SHA for 5d26b47 - Browse repository at this point
Copy the full SHA 5d26b47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4103334 - Browse repository at this point
Copy the full SHA 4103334View commit details