From bded799091aa26b531a2d898e348a011523922bd Mon Sep 17 00:00:00 2001 From: Ahmed ElSayed Date: Wed, 13 Sep 2023 01:23:00 -0700 Subject: [PATCH] fix: don't delete cfssl and cfssljson (#589) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With #568 these executables are no longer downloaded on demand, but rather predownloaded to the system. When running dotnet build locally, it attempts to run `./cfssl` and `./cfssljson` from `/operator` or `$CFSSL_EXECUTABLES_PATH`. However, it deletes them after it's done. Next time you try build again after cleaning the local dir it'll fail. Co-authored-by: Christoph Bühler --- .../Operator/Commands/CommandHelpers/CertificateGenerator.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/KubeOps/Operator/Commands/CommandHelpers/CertificateGenerator.cs b/src/KubeOps/Operator/Commands/CommandHelpers/CertificateGenerator.cs index 35369c68..e67b3a50 100644 --- a/src/KubeOps/Operator/Commands/CommandHelpers/CertificateGenerator.cs +++ b/src/KubeOps/Operator/Commands/CommandHelpers/CertificateGenerator.cs @@ -49,8 +49,6 @@ public void Dispose() { Delete(_caconfig); Delete(_cacsr); - Delete(_cfssl); - Delete(_cfssljson); Delete(_servercsr); }