Skip to content

Commit

Permalink
fix: sync cert failed on non default port (#4031) (#4032)
Browse files Browse the repository at this point in the history
Signed-off-by: yangxg <yangxggo@163.com>
Co-authored-by: yangxg <yangxggo@163.com>
  • Loading branch information
sealos-ci-robot and yangxggo authored Oct 7, 2023
1 parent 13b3036 commit c86e7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runtime/kubernetes/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (k *KubeadmRuntime) initCert() error {

func (k *KubeadmRuntime) syncCert() error {
return k.runPipelines("sync all masters cert", func() error {
for _, master := range k.getMasterIPList()[1:] {
for _, master := range k.getMasterIPAndPortList()[1:] {
logger.Debug("start to generate cert for master %s", master)
err := k.execCert(master)
if err != nil {
Expand Down

0 comments on commit c86e7c7

Please sign in to comment.