Skip to content

Commit

Permalink
del unconfig harbor http and https port ,use default port
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongww committed Sep 20, 2023
1 parent b468feb commit 12b4531
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cmd/kk/pkg/bootstrap/registry/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import (

const (
RegistryCertificateBaseName = "dockerhub.kubekey.local"
HttpPort = "8081"
HttpsPort = "443"
LocalCertsDir = "localCertsDir"
CertsFileList = "certsFileList"
)
Expand Down
2 changes: 0 additions & 2 deletions cmd/kk/pkg/bootstrap/registry/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ func (g *GenerateHarborConfig) Execute(runtime connector.Runtime) error {
Dst: "/opt/harbor/harbor.yml",
Data: util.Data{
"Domain": host.GetName(),
"HttpPort": HttpPort,
"HttpsPort": HttpsPort,
"Certificate": fmt.Sprintf("%s.pem", RegistryCertificateBaseName),
"Key": fmt.Sprintf("%s-key.pem", RegistryCertificateBaseName),
"Password": templates.Password(g.KubeConf, RegistryCertificateBaseName),
Expand Down

0 comments on commit 12b4531

Please sign in to comment.