Skip to content

Commit

Permalink
fix(platform): remove schema of host (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoryu authored Dec 1, 2021
1 parent 91bf13e commit b13686b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/platform/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (cc ClusterCredential) RESTConfig(cls *Cluster) *rest.Config {
if cls != nil {
host := clusterHost(cls)
if len(host) != 0 {
config.Host = fmt.Sprintf("https://%s", host)
config.Host = host
}
}
if cc.CACert != nil {
Expand Down
2 changes: 1 addition & 1 deletion api/platform/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (cc ClusterCredential) RESTConfig(cls *Cluster) *rest.Config {
if cls != nil {
host := clusterHost(cls)
if len(host) != 0 {
config.Host = fmt.Sprintf("https://%s", host)
config.Host = host
}
}
if cc.CACert != nil {
Expand Down

0 comments on commit b13686b

Please sign in to comment.