-
Notifications
You must be signed in to change notification settings - Fork 48
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
Deduplicate code for checking k8scluster enablement #1689
Deduplicate code for checking k8scluster enablement #1689
Conversation
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.
@sykim-etri 감사합니다! LGTM.
마이너한 사항에 대한 리뷰 의견을 추가하였습니다.
src/core/mcis/k8scluster.go
Outdated
@@ -1932,6 +1844,69 @@ func convertSpiderNodeGroupStatusToTbK8sNodeGroupStatus(spNodeGroupStatus Spider | |||
return TbK8sNodeGroupInactive | |||
} | |||
|
|||
func CheckK8sClusterEnablement(connectionName string) error { |
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.
대문자로 시작하는 함수이므로, 린트를 위해서 주석 추가 부탁드립니다.
(이왕이면, 나머지 소문자로 시작하는 내부 함수도 가급적 주석을 추가해주시면 좋을 것 같습니다. 현 PR에서 수정할 필요까지는 없을 것 같습니다.)
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.
대문자로 시작할 필요가 없는 함수였습니다.
타 내부 함수에 대한 주석을 추가한 PR은 추후 별도로 진행하겠습니다.
91c3bdc
to
cc5b095
Compare
cc5b095
to
1081fee
Compare
감사합니다! LGTM. |
/approve |
assets/cloud.conf에 기재된 k8scluster enablement를 확인하는 코드들의 중복을 제거하고, 클러스터 버전 확인 부분을 업데이트하였습니다.