From d9b3265308b869323f1bbe498b7c6ff06cf6c9ac Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Wed, 23 Dec 2020 01:15:57 +0100 Subject: [PATCH] kes: fix key creation failure (#400) This commit fixes a incorrect usage of the KES CLI. The KES CLI requires flags to be specified before command args. This behavior has been introduced by 6f865511cc9c1a1402d531d17f0af7298b446ec7 Fixes #396 --- pkg/resources/jobs/kes-job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resources/jobs/kes-job.go b/pkg/resources/jobs/kes-job.go index 1b5e9662141..24bcb068eb4 100644 --- a/pkg/resources/jobs/kes-job.go +++ b/pkg/resources/jobs/kes-job.go @@ -96,7 +96,7 @@ func NewForKES(t *miniov1.Tenant) *batchv1.Job { // returns the KES job container func kesJobContainer(t *miniov1.Tenant) corev1.Container { - args := []string{"key", "create", miniov1.KESMinIOKey, "-k"} + args := []string{"key", "create", "-k", miniov1.KESMinIOKey} // KES CLI expects flags before command args return corev1.Container{ Name: miniov1.KESContainerName,