1
0
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:
galal-hussein
2018-07-17 20:19:08 +02:00
committed by Alena Prokharchyk
parent 9f7a37845e
commit 8269c3f301
10 changed files with 283 additions and 59 deletions

View File

@@ -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)