Skip to content

Commit

Permalink
CLI: Add empty strings to clean-up certificates (#638)
Browse files Browse the repository at this point in the history
Add empty strings to certificates that are used for clean-up by ClusterLink CLI.

Signed-off-by: Kfir Toledo <kfir.toledo@ibm.com>
  • Loading branch information
kfirtoledo authored Jun 9, 2024
1 parent 7021f7b commit 1b29b1b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/bootstrap/platform/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b29b1b

Please sign in to comment.