Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 5916655

Browse files
committed
Prevent double-encoding of CA cert
1 parent 077a1c4 commit 5916655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/packet/deployer/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (d *Deployer) GetKubeConfig(cluster *clusterv1.Cluster, master *clusterv1.M
164164
Clusters: map[string]*clientcmdapi.Cluster{
165165
clusterName: {
166166
Server: server,
167-
CertificateAuthorityData: ca.PemEncodeCert(caCertKey.Certificate),
167+
CertificateAuthorityData: caCertKey.Certificate,
168168
},
169169
},
170170
Contexts: map[string]*clientcmdapi.Context{

0 commit comments

Comments
 (0)