Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 841d883

Browse files
authored
Merge pull request #387 from feiskyer/info
Add pod name in PodInfo response
2 parents a7bcffb + 0f51275 commit 841d883

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

daemon/info.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ func (daemon *Daemon) GetPodInfo(podName string) (types.PodInfo, error) {
160160

161161
return types.PodInfo{
162162
PodID: pod.Id,
163+
PodName: pod.Spec.Name,
163164
Kind: "Pod",
164165
CreatedAt: pod.CreatedAt,
165166
ApiVersion: utils.APIVERSION,

types/types.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/types.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ message PodInfo {
116116
int64 createdAt = 5;
117117
PodSpec spec = 6;
118118
PodStatus status = 7;
119+
string podName = 8;
119120
}
120121

121122
message ImageInfo {

0 commit comments

Comments
 (0)