From 1b29b1b4923eba113af3b491bbffcbecdcb4c970 Mon Sep 17 00:00:00 2001 From: Kfir Toledo Date: Sun, 9 Jun 2024 18:00:06 +0300 Subject: [PATCH] CLI: Add empty strings to clean-up certificates (#638) Add empty strings to certificates that are used for clean-up by ClusterLink CLI. Signed-off-by: Kfir Toledo --- pkg/bootstrap/platform/k8s.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/bootstrap/platform/k8s.go b/pkg/bootstrap/platform/k8s.go index 42d75a8ea..316652d38 100644 --- a/pkg/bootstrap/platform/k8s.go +++ b/pkg/bootstrap/platform/k8s.go @@ -376,7 +376,15 @@ func K8SClusterLinkInstanceConfig(config *Config, name string) ([]byte, error) { // used for deleting the secrets. func K8SEmptyCertificateConfig(config *Config) ([]byte, error) { args := map[string]interface{}{ - "namespace": config.Namespace, + "Namespace": config.Namespace, + "ca": "", + "controlplaneCert": "", + "controlplaneKey": "", + "dataplaneCert": "", + "dataplaneKey": "", + "peerCert": "", + "peerKey": "", + "fabricCert": "", } var certConfig bytes.Buffer