Skip to content

Commit

Permalink
fix(typo): fix paas typo
Browse files Browse the repository at this point in the history
fix paas typo

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Sep 8, 2023
1 parent e43edac commit b3b29b0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const (
DefaultAppNamespace = "quickon-app"
DefaultCINamespace = "quickon-ci"
DefaultQuchengName = "qucheng"
DefaultZentaoPassName = "zentaopass"
DefaultZentaoPaasName = "zentaopaas"
DefaultCneOperatorName = "cne-operator"
DefaultIngressName = "nginx-ingress-controller"
DefaultKubeAPIDomain = "kubeapi.quickon.local"
Expand Down
2 changes: 1 addition & 1 deletion common/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func GetCustomScripts(path string) string {
// GetReleaseName get chart release name
func GetReleaseName(devops bool) string {
if devops == true {
return DefaultZentaoPassName
return DefaultZentaoPaasName
}
return DefaultQuchengName
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ require (
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/containerd/containerd v1.7.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/daviddengcn/go-colortext v1.0.0 // indirect
github.com/docker/cli v23.0.5+incompatible // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
github.com/cyphar/filepath-securejoin v0.2.3 h1:YX6ebbZCZP7VkM3scTTokDgBL2TY741X51MTk3ycuNI=
github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
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=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
2 changes: 1 addition & 1 deletion pkg/qucheng/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func QuchengVersion(devops bool) (Version, error) {
}
name := common.DefaultQuchengName
if devops {
name = common.DefaultZentaoPassName
name = common.DefaultZentaoPaasName
}
if apiVersion, err := opt.Fetch(common.GetDefaultSystemNamespace(true), name); err == nil {
v.Components = append(v.Components, apiVersion)
Expand Down

0 comments on commit b3b29b0

Please sign in to comment.