-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
README.md
Outdated
`gardenctl logs api | scheduler | controller-manager | etcd-main -c etcd |etcd-main -c backup-restore | vpn-seed | vpn-shoot | machine-controller-manager | prometheus |grafana | alertmanager | cluster-autoscaler` | ||
- Show logs from garden nodes | ||
`gardenctl target -g garden-name` | ||
`gardenctl logs gardener-apiserver | gardener-controller-manager` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove one space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
break | ||
} | ||
|
||
var prefixName string = (args[02]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also check if shoot name exists and please use args[2]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for my understanding, so far the logic for logs tf
will fetch all podName
and podNamespace
from a seed node, then match infra.tf
from List output to found the pod name.
It takes about at least 11M List output data when I testing, depends on the total of shoots host in the seed node.
To check shoot name whether exists, it maybe double the times for the result output. search shoot name from List output ->exist -> search infra.tf
from List output to found the pod name. Let me know any concerns. thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
What this PR does / why we need it:
add:
gardenctl logs
readmefix:
gardenctl logs tf infra
result output nulladd:
gardenctl logs tf infra shoot-name
result output display only from shoot cluster instead of all shoot clustersWhich issue(s) this PR fixes:
Fixes #183
Special notes for your reviewer:
Release note: