mirror of
https://github.com/rancher/rke.git
synced 2025-09-18 16:36:41 +00:00
Add metrics-server addon deployment
This commit is contained in:
committed by
Alena Prokharchyk
parent
9f7a37845e
commit
8269c3f301
@@ -51,7 +51,7 @@ func GenerateSignedCertAndKey(
|
||||
return clientCert, rootKey, nil
|
||||
}
|
||||
|
||||
func generateCACertAndKey(commonName string) (*x509.Certificate, *rsa.PrivateKey, error) {
|
||||
func GenerateCACertAndKey(commonName string) (*x509.Certificate, *rsa.PrivateKey, error) {
|
||||
rootKey, err := cert.NewPrivateKey()
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("Failed to generate private key for CA certificate: %v", err)
|
||||
|
Reference in New Issue
Block a user