Skip to content

Commit

Permalink
kes: fix key creation failure (#400)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Andreas Auernhammer authored Dec 23, 2020
1 parent da4e5b9 commit d9b3265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/jobs/kes-job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d9b3265

Please sign in to comment.