Skip to content

Commit

Permalink
Fix: controller coordinator add ca.crt to yurthub cert (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin authored Jan 9, 2023
1 parent 78cdc62 commit b81bff6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,12 @@ func initPoolCoordinator(clientSet client.Interface, stopCh <-chan struct{}) err
return err
}

// 4. prepare sa key pairs
// 4. prepare ca cert in yurthub secret
if err := WriteCertAndKeyIntoSecret(clientSet, "ca", PoolcoordinatorYurthubClientSecertName, caCert, nil); err != nil {
return err
}

// 5. prepare sa key pairs
if err := initSAKeyPair(clientSet, "sa", PoolcoordinatorStaticSecertName); err != nil {
return err
}
Expand Down

0 comments on commit b81bff6

Please sign in to comment.