Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add detail to Metatron metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed Nov 22, 2018
1 parent 45c17a2 commit 16fae5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions executor/metatron/metatron.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ type TitusMetadata struct {
TaskID string `json:"instanceId"`
LaunchTime int64 `json:"launchTime"`
IPAddress string `json:"ipAddress"`
Detail string `json:"detail,omitempty"`
}

// PassportRequest contains the fields
Expand Down
1 change: 1 addition & 0 deletions executor/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ func mkGetMetatronConfigFunc(mts *metatron.TrustStore) func(ctx context.Context,
titusMetadata := metatron.TitusMetadata{
App: c.TitusInfo.GetAppName(),
Stack: c.TitusInfo.GetJobGroupStack(),
Detail: c.TitusInfo.GetJobGroupDetail(),
ImageName: c.TitusInfo.GetImageName(),
ImageVersion: c.TitusInfo.GetVersion(),
ImageDigest: c.TitusInfo.GetImageDigest(),
Expand Down

0 comments on commit 16fae5b

Please sign in to comment.