Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect user app pod log #495

Merged
merged 4 commits into from
May 21, 2024
Merged

Collect user app pod log #495

merged 4 commits into from
May 21, 2024

Conversation

robertchoi80
Copy link
Contributor

@robertchoi80 robertchoi80 commented May 20, 2024

앱서빙을 통해 배포된 사용자 앱의 podLog 및 pod 상태를 UI에서 조회 가능하도록 백엔드에서 수집합니다
우선은 버튼 클릭시마다 1회성으로 로그를 가져와서 보여주도록 구현하였으며, 장기적으로는 web socket 등을 통해 스트림 형태로 로그가 계속 업데이트되어 보여질 수 있는 형태로 진화가 필요합니다.

https://github.com/openinfradev/tks-issues/issues/1110

}

var out domain.GetAppServeAppLogResponse
// if err := serializer.Map(r.Context(), podLog, &out.PodLog); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ktkfree 님~ 이 부분은 구조체가 아닌 string 값을 복사할 때 아래 에러가 발생하여, map 함수 대신 그냥 단순히 대입하도록 하였는데, 혹시 문제가 될까요? 정상 동작하는건 확인하였습니다.
reflect: call of reflect.Value.NumField on string Value

@ktkfree ktkfree merged commit 7e653b4 into develop May 21, 2024
6 checks passed
@ktkfree ktkfree deleted the tks-issues-1110 branch May 21, 2024 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants