Skip to content

Commit

Permalink
Source runtime version (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
alonkeyval authored Sep 25, 2024
1 parent 33d30af commit f1692bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/endpoints/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ import (
)

type SourceLanguage struct {
ContainerName string `json:"container_name"`
Language string `json:"language"`
ContainerName string `json:"container_name"`
Language string `json:"language"`
RuntimeVersion string `json:"runtime_version,omitempty"`
}

type InstrumentedApplicationDetails struct {
Expand Down Expand Up @@ -393,8 +394,9 @@ func k8sInstrumentedAppToThinSource(app *v1alpha1.InstrumentedApplication) ThinS

for _, language := range app.Spec.RuntimeDetails {
source.IaDetails.Languages = append(source.IaDetails.Languages, SourceLanguage{
ContainerName: language.ContainerName,
Language: string(language.Language),
ContainerName: language.ContainerName,
Language: string(language.Language),
RuntimeVersion: language.RuntimeVersion,
})
}
return source
Expand Down

0 comments on commit f1692bd

Please sign in to comment.