Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Store public key in k8s secret
Browse files Browse the repository at this point in the history
Signed-off-by: Alaa Qutaish <[email protected]>
Signed-off-by: Kingdon Barrett <[email protected]>
  • Loading branch information
alaa authored and Kingdon Barrett committed Mar 9, 2021
1 parent ab450be commit cb61b26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cluster/kubernetes/sshkeyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func (skr *sshKeyRing) Regenerate() error {

patch := map[string]map[string]string{
"data": map[string]string{
"identity": base64.StdEncoding.EncodeToString(privateKey),
"identity": base64.StdEncoding.EncodeToString(privateKey),
"identity.pub": base64.StdEncoding.EncodeToString([]byte(publicKey.Key)),
},
}

Expand Down

0 comments on commit cb61b26

Please sign in to comment.