Skip to content

Commit

Permalink
Merge pull request #1227 from dev4unet/master
Browse files Browse the repository at this point in the history
Added TAG resources to calllogs and fixed typos in variable names for interfaces
  • Loading branch information
powerkimhub authored Jul 4, 2024
2 parents 626a228 + 42f63de commit c1bdf1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions cloud-control-manager/cloud-driver/call-log/calllogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const (
VM RES_TYPE = "VM"
MYIMAGE RES_TYPE = "MYIMAGE"
NLB RES_TYPE = "NETWORKLOADBALANCER"
TAG RES_TYPE = "TAG"

//=========== PMKS: Provider-Managed K8S
CLUSTER RES_TYPE = "CLUSTER"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1924,14 +1924,17 @@ type Config struct {
}

// 환경 설정 파일 읽기
// 환경변수 CBSPIDER_PATH 설정 후 해당 폴더 하위에 /config/config.yaml 파일 생성해야 함.
// 환경변수 CBSPIDER_TEST_CONF_PATH에 테스트에 사용할 파일 경로를 설정해야 함. (예: config/config.yaml)
func readConfigFile() Config {
// Set Environment Value of Project Root Path
rootPath := os.Getenv("CBSPIDER_PATH")
cblogger.Infof("Test Data 설정파일 : [%s]", rootPath+"/config/config.yaml")
data, err := ioutil.ReadFile(rootPath + "/config/config.yaml")
data, err = ioutil.ReadFile("/Users/mzc01-swy/projects/feature_aws_filter_swy_240130/cloud-control-manager/cloud-driver/drivers/aws/main/Sample/config/config.yaml")

confPath := os.Getenv("CBSPIDER_TEST_CONF_PATH")
cblogger.Info("Set the full path to the config files you want to use for testing, including your AWS credentials, in the OS environment variable [CBSPIDER_TEST_CONF_PATH].")
cblogger.Infof("OS environment variable [CBSPIDER_TEST_CONF_PATH] : [%s]", confPath)
//cblogger.Infof("최종 환경 설정파일 경로 : [%s]", rootPath+"/config/config.yaml")
//data, err := ioutil.ReadFile(rootPath + "/config/config.yaml")
//data, err = ioutil.ReadFile("/Users/mzc01-swy/projects/feature_aws_filter_swy_240130/cloud-control-manager/cloud-driver/drivers/aws/main/Sample/config/config.yaml")

data, err := ioutil.ReadFile(confPath)
if err != nil {
panic(err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type TagInfo struct {
}

type TagHandler interface {
AddTag(resTyp RSType, resIID IID, tag KeyValue) (TagInfo, error)
ListTag(resTyp RSType, resIID IID) ([]*TagInfo, error)
GetTag(resTyp RSType, resIID IID, key string) (TagInfo, error)
AddTag(resType RSType, resIID IID, tag KeyValue) (TagInfo, error)
ListTag(resType RSType, resIID IID) ([]*TagInfo, error)
GetTag(resType RSType, resIID IID, key string) (TagInfo, error)
RemoveTag(resType RSType, resIID IID, key string) (bool, error)

// Find tags by tag key or value
Expand Down

0 comments on commit c1bdf1f

Please sign in to comment.