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

Cmd for service #15

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Cmd for service #15

merged 2 commits into from
Mar 22, 2022

Conversation

Jaesang
Copy link
Contributor

@Jaesang Jaesang commented Mar 20, 2022

service 삭제 기능 추가하였습니다.
service 삭제 시 필요한 service id 확보를 위해 service list 기능도 추가하였습니다.

빌드 및 테스트)

$ task build
$ ./bin/tks service list <CLUSTER_ID>
$ ./bin/tks service delete <SERVICE_ID>

#16 의 내용도 같이 포함하여서, cmd/service_list.go, cmd/service_delete.go만 보시면 되겠습니다.

data := pb.UninstallAppGroupsRequest{}
var appgroupIds []string
appgroupIds = []string{serviceId}
data.AppGroupIds = appgroupIds
Copy link
Contributor

Choose a reason for hiding this comment

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

중요한건 아닙니다. code readerbility 를 위해 아래와 같이 한줄로 표현해도 되지 않을까요?
data.AppGroupIds = []string{serviceId}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

반영하였습니다~

Run: func(cmd *cobra.Command, args []string) {
if len(args) == 0 {
fmt.Println("You must specify cluster name.")
fmt.Println("Usage: tks cluster create <CLUSTERNAME> --contract-id <CONTRACTID> --csp-id <CSPID>")
os.Exit(1)
}
var conn *grpc.ClientConn
tksClusterLcmUrl = viper.GetString("tksClusterLcmUrl")
Copy link
Contributor

Choose a reason for hiding this comment

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

config file 위치 지정은 어디서 하나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

~/.tks-config.yaml입니다. tks help message에 표시되어요

Copy link
Contributor

Choose a reason for hiding this comment

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

네 차후에 config 파일 위치도 입력 가능하게 하면 더 좋겠군요. 일단 지금은 머지할게요

@ktkfree
Copy link
Contributor

ktkfree commented Mar 22, 2022

default config 파일을 추가해주는 것도 좋겠습니다.

@ktkfree
Copy link
Contributor

ktkfree commented Mar 22, 2022

merge 후 테스트가 급하니, merge 하고 테스트하면서 release branch 에서 진행해도 좋겠습니다.

@robertchoi80 robertchoi80 merged commit 116398c into openinfradev:main Mar 22, 2022
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.

4 participants