From 35faaab5708d01068e8a8e829b8033d81b2313c6 Mon Sep 17 00:00:00 2001 From: Matt Kelly Date: Wed, 23 Jan 2019 19:37:08 -0500 Subject: [PATCH] Add back --cert-dir option for init phase certs sa --- cmd/kubeadm/app/cmd/phases/certs.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/kubeadm/app/cmd/phases/certs.go b/cmd/kubeadm/app/cmd/phases/certs.go index cf82a5be68..aee6cff5a6 100644 --- a/cmd/kubeadm/app/cmd/phases/certs.go +++ b/cmd/kubeadm/app/cmd/phases/certs.go @@ -111,10 +111,11 @@ func newCertSubPhases() []workflow.Phase { // SA creates the private/public key pair, which doesn't use x509 at all saPhase := workflow.Phase{ - Name: "sa", - Short: "Generates a private key for signing service account tokens along with its public key", - Long: saKeyLongDesc, - Run: runCertsSa, + Name: "sa", + Short: "Generates a private key for signing service account tokens along with its public key", + Long: saKeyLongDesc, + Run: runCertsSa, + InheritFlags: []string{options.CertificatesDir}, } subPhases = append(subPhases, saPhase)