Skip to content

Commit

Permalink
const up issuer file names
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Mar 29, 2019
1 parent c4383da commit 292f1da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ func fetchIssuer(k *kubernetes.Clientset, trustPEM string) (string, string, time
return "", "", time.Time{}, err
}

keyPEM := string(secret.Data["key.pem"])
keyPEM := string(secret.Data[k8s.IdentityIssuerKeyName])
key, err := tls.DecodePEMKey(keyPEM)
if err != nil {
return "", "", time.Time{}, err
}

crtPEM := string(secret.Data["crt.pem"])
crtPEM := string(secret.Data[k8s.IdentityIssuerCrtName])
crt, err := tls.DecodePEMCrt(crtPEM)
if err != nil {
return "", "", time.Time{}, err
Expand Down
9 changes: 7 additions & 2 deletions pkg/k8s/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,15 @@ const (
// volume mounted into each proxy to store identity credentials.
IdentityEndEntityVolumeName = "linkerd-identity-end-entity"

// IdentityIssuerSecretName is the name assigned the temporary end-entity
// volume mounted into each proxy to store identity credentials.
// IdentityIssuerSecretName is the name of the Secret that stores issuer credentials.
IdentityIssuerSecretName = "linkerd-identity-issuer"

// IdentityIssuerKeyName is the issuer's private key file.
IdentityIssuerKeyName = "key.pem"

// IdentityIssuerKeyName is the issuer's certificate file.
IdentityIssuerCrtName = "crt.pem"

// ProxyPortName is the name of the Linkerd Proxy's proxy port.
ProxyPortName = "linkerd-proxy"

Expand Down

0 comments on commit 292f1da

Please sign in to comment.