Skip to content

Commit

Permalink
Merge pull request #4130 from LiilyZhang/zhangl/Issue4098
Browse files Browse the repository at this point in the history
Issue open-horion#4098 - Bug: Change "pvcSize" to "pvcSizeGB"
  • Loading branch information
LiilyZhang authored Aug 8, 2024
2 parents 9e57b6d + 692b774 commit ced51ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/kube_deployment/kube_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ func (p *KubeDeploymentConfigPlugin) Sign(dep map[string]interface{}, privKey *r
delete(dep, "mmsPVC")
}

if pvcSizeVal, ok := mmsPVCConfig["pvcSize"]; ok {
if pvcSizeVal, ok := mmsPVCConfig["pvcSizeGB"]; ok {
pvcSize := int64(pvcSizeVal.(float64))
msgPrinter.Printf("pvcSize: %v\n", pvcSize)
msgPrinter.Printf("pvcSizeGB: %v\n", pvcSize)
}
}

Expand Down Expand Up @@ -126,8 +126,8 @@ func (p *KubeDeploymentConfigPlugin) DefaultClusterConfig() interface{} {
return map[string]interface{}{
"operatorYamlArchive": "",
"mmsPVC": map[string]interface{}{
"enable": false,
"pvcSize": 0,
"enable": false,
"pvcSizeGB": 0,
},
}
}
Expand Down

0 comments on commit ced51ca

Please sign in to comment.