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

Add infraType field to TbSpecInfo/TbImageInfo and assets #1667

Conversation

sykim-etri
Copy link
Member

TbSpecInfo와 TbImageInfo, assets/cloudspec.csv와 assets/cloudimage.csv에 InfraType 항목을 추가하고(#1665), csv 파일 내용을 일부 업데이트합니다.

활용

  • 해당 항목을 통해 vm/k8s/kubernetes/container 값으로 Spec 목록 필터링 가능 (by FilterSpecsByRangeRequest())

기타

  • Update alibaba ubuntu 22.04 image info
  • Update NHNCloud ubuntu 20.04 and ubuntu 22.04 image info for vm/k8s
  • Update TbImageInfo with description from assets
  • Remove nodeImage in k8sclusterinfo.yaml

@seokho-son
Copy link
Member

@sykim-etri 오오!! 감사합니다. 검토해보겠습니다.

Copy link
Member

@seokho-son seokho-son left a comment

Choose a reason for hiding this comment

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

@sykim-etri 감사합니다! 사소한 코멘트가 있습니다.

그리고, 유닛테스트 일부 개선해주셨는데, 기존에 있던 한글 문구는 모두 영어로 수정 부탁드릴게요.

@@ -2032,6 +2047,23 @@ func UpdateResourceObject(nsId string, resourceType string, resourceObject inter

}

func expandInfraType(infraType string) string {
expInfraTypeList := []string{}

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
infraType := strings.ToLower(infraType)

혹시 모르니, 소문자 기준 비교를 하면 좋을 것 같습니다. _

@sykim-etri sykim-etri force-pushed the add-infratype-field-to-tbspecinfo-and-tbimageinfo branch from 4acc77b to 3fc98d0 Compare July 11, 2024 07:26
ref cloud-barista#1665

- Update alibaba ubuntu 22.04 image info
- Update NHNCloud ubuntu 20.04 and ubuntu 22.04 image info for vm/k8s
- Update TbImageInfo with description from assets
- Remove nodeImage in k8sclusterinfo.yaml
- Comment out deprecated DB access and test filterSpecsByRange() with InfraType
@sykim-etri sykim-etri force-pushed the add-infratype-field-to-tbspecinfo-and-tbimageinfo branch from 3fc98d0 to 48f66c4 Compare July 11, 2024 07:30
@seokho-son
Copy link
Member

@sykim-etri 업데이트 완료하신 경우에는 댓글로 알려주세요~ :)

@sykim-etri
Copy link
Member Author

@sykim-etri 업데이트 완료하신 경우에는 댓글로 알려주세요~ :)

본 PR 범위 내에서는 업데이트 완료했습니다.

Copy link
Member

@seokho-son seokho-son left a comment

Choose a reason for hiding this comment

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

LGTM!

@seokho-son seokho-son merged commit 37ca593 into cloud-barista:main Jul 12, 2024
4 checks passed
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