Skip to content

Commit

Permalink
Merge pull request #25 from HeeSeoung/master
Browse files Browse the repository at this point in the history
NCP Service 키 초기화 구조 변경
  • Loading branch information
HeeSeoung authored Jan 4, 2024
2 parents 9a55037 + d13e962 commit a26b311
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ package main
import (
"flag"
"github.com/cloud-club/Aviator-service/pkg"
"github.com/cloud-club/Aviator-service/types/auth"

"os"

// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
Expand Down Expand Up @@ -92,7 +94,9 @@ func main() {
err = (controller.NewProvisionReconciler(
mgr.GetClient(),
mgr.GetScheme(),
&pkg.NcpService{Server: pkg.NewServerService("6CmrDJ4KaswJ10g25GEP", "OvZ7QHH0Bi3AwGn5rlsD7xoC986bEOiIjdbwMFCo")},
&pkg.NcpService{
Server: pkg.NewServerService(
auth.NewKeyService("6CmrDJ4KaswJ10g25GEP", "OvZ7QHH0Bi3AwGn5rlsD7xoC986bEOiIjdbwMFCo"))},
)).SetupWithManager(mgr)
if err != nil {
setupLog.Error(err, "unable to create controller", "controller", "Provision")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module vm.cloudclub.io
go 1.21.1

require (
github.com/cloud-club/Aviator-service v0.0.0-20240101062303-75d8936802ef
github.com/cloud-club/Aviator-service v0.0.0-20240104105031-a8e9278c253b
github.com/go-logr/logr v1.2.4
github.com/onsi/ginkgo/v2 v2.11.0
github.com/onsi/gomega v1.27.10
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ github.com/cloud-club/Aviator-service v0.0.0-20231217151335-e0cb2c2047aa h1:yxnD
github.com/cloud-club/Aviator-service v0.0.0-20231217151335-e0cb2c2047aa/go.mod h1:cxKHHT+qtSSe3wItn+bOn/1Qlg6ZYLPupaV+cvz8XUs=
github.com/cloud-club/Aviator-service v0.0.0-20240101062303-75d8936802ef h1:JY+BCA0nTSCt6XxDlfYatz9GHlsK1zgqp8bMb9B0AA8=
github.com/cloud-club/Aviator-service v0.0.0-20240101062303-75d8936802ef/go.mod h1:PfsYKMy6EuEgb2drsd0aXKNuMK72aCJXk+nS2kSwGbA=
github.com/cloud-club/Aviator-service v0.0.0-20240104105031-a8e9278c253b h1:qkG2911G2WWMLV7zhVFBVHgrcUVis/ADIlj6G39reNc=
github.com/cloud-club/Aviator-service v0.0.0-20240104105031-a8e9278c253b/go.mod h1:PfsYKMy6EuEgb2drsd0aXKNuMK72aCJXk+nS2kSwGbA=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down

0 comments on commit a26b311

Please sign in to comment.