Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xdonggao committed Feb 9, 2022
1 parent e9e1285 commit 80961a6
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 @@ -392,7 +392,7 @@ func (cc ClusterCredential) RESTConfig(cls *Cluster) *rest.Config {
config.Host = fmt.Sprintf("https://%s", host)
}
}
// k8s的api-server如果没有签address里的ip,设置ca再请求会报x509证书错误,需要忽略证书
// If api-server does not sign the ip in address, set ca then request, it will report x509 certificate error, need to ignore the certificate
if os.Getenv("TKE_IGNORE_CA") != "true" && cc.CACert != nil {
config.TLSClientConfig.CAData = cc.CACert
} else {
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 @@ -402,7 +402,7 @@ func (cc ClusterCredential) RESTConfig(cls *Cluster) *rest.Config {
config.Host = fmt.Sprintf("https://%s", host)
}
}
// k8s的api-server如果没有签address里的ip,设置ca再请求会报x509证书错误,需要忽略证书
// If api-server does not sign the ip in address, set ca then request, it will report x509 certificate error, need to ignore the certificate
if os.Getenv("TKE_IGNORE_CA") != "true" && cc.CACert != nil {
config.TLSClientConfig.CAData = cc.CACert
} else {
Expand Down

0 comments on commit 80961a6

Please sign in to comment.