Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo committed Jun 9, 2024
1 parent e2de92d commit 9d1eb5c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions pkg/bootstrap/platform/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,20 +375,16 @@ func K8SClusterLinkInstanceConfig(config *Config, name string) ([]byte, error) {
// K8SEmptyCertificateConfig returns Kubernetes empty secrets for the control plane and data plane,
// used for deleting the secrets.
func K8SEmptyCertificateConfig(config *Config) ([]byte, error) {
// Create a base64-encoded string of zeros
zeroBytes := make([]byte, 64)
base64Zeros := base64.StdEncoding.EncodeToString(zeroBytes)

args := map[string]interface{}{
"Namespace": config.Namespace,
"ca": base64Zeros,
"controlplaneCert": base64Zeros,
"controlplaneKey": base64Zeros,
"dataplaneCert": base64Zeros,
"dataplaneKey": base64Zeros,
"peerCert": base64Zeros,
"peerKey": base64Zeros,
"fabricCert": base64Zeros,
"ca": "",
"controlplaneCert": "",
"controlplaneKey": "",
"dataplaneCert": "",
"dataplaneKey": "",
"peerCert": "",
"peerKey": "",
"fabricCert": "",
}

var certConfig bytes.Buffer
Expand Down

0 comments on commit 9d1eb5c

Please sign in to comment.