workload tail
supports --recent
and --pod
#67
Labels
enhancement
New feature or request
MIGRATED-MIGRATED
Migrated to private repo
needs-design
needs-triage
Description of problem
The apps plugin relies on stern logging library to tail the logs for all pod resources created as a result of a
tanzu apps workload create/update/apply...
The log output can be quite verbose and we currently provide the ability to filter the logs by
--component
(e.g. values:run
orbuild
).This is helpful, but the logs even for a single pod can be lengthy and the stern library provides some additional filtering features we may want to take advantage of and expose to end-users.
The cf-cli enabled grabbing the most recent 100 log lines via
cf logs my-app --recent
.--recent
was used with a high degree of frequency.We should look into whether/how we might provide a similar feature in the apps plugin.
Additionally - the current
--component
flag isn't intuitively named.We should deprecate
--component
and provide a new--pod
flag to allow user to filter the logs to those only from the pod specified.--pod
can be specified multiple times.If no
--pod
value is provided, all pod logs should be included.Proposed solution
tanzu apps workload tail my-app --recent
tanzu apps workload tail my-app --recent --pod my-app-build-3-build-pod
my-app-build-3-build-pod
, ordered by timestamp ascending.tanzu apps workload tail my-app --recent --pod my-app-build-3-build-pod --pod my-app-config-writer-xgx4q-pod
my-app-build-3-build-pod
andmy-app-config-writer-xgx4q-pod
, ordered by timestamp ascending.tanzu apps workload tail -h
--pod string pod to tail logs from (flag can be used multiple times)
--recent provide the most recent 100 log lines
The text was updated successfully, but these errors were encountered: