From 47704189d1cc774eb909d2f41648716359df3d9d Mon Sep 17 00:00:00 2001 From: Lenin Alevski Date: Tue, 22 Sep 2020 20:49:25 -0700 Subject: [PATCH] fix kes empty configuration (#286) Co-authored-by: Daniel Valdivia --- restapi/admin_tenants.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/restapi/admin_tenants.go b/restapi/admin_tenants.go index 6b1809f57..7d1bc8b8d 100644 --- a/restapi/admin_tenants.go +++ b/restapi/admin_tenants.go @@ -514,9 +514,7 @@ func getTenantCreatedResponse(session *models.Principal, params admin_api.Create CredsSecret: &corev1.LocalObjectReference{ Name: secretName, }, - Env: envrionmentVariables, - KES: &operator.KESConfig{}, - Console: &operator.ConsoleConfiguration{}, + Env: envrionmentVariables, }, } idpEnabled := false @@ -611,10 +609,7 @@ func getTenantCreatedResponse(session *models.Principal, params admin_api.Create if err != nil { return nil, prepareError(errorGeneric) } - } - - // Set Labels, Annotations and Node Selector for KES - if isEncryptionEnabled && tenantReq.Encryption != nil { + // Set Labels, Annotations and Node Selector for KES minInst.Spec.KES.Labels = tenantReq.Encryption.Labels minInst.Spec.KES.Annotations = tenantReq.Encryption.Annotations minInst.Spec.KES.NodeSelector = tenantReq.Encryption.NodeSelector