Skip to content

Commit 4770418

Browse files
Alevskdvaldivia
andauthored
fix kes empty configuration (#286)
Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
1 parent b72d424 commit 4770418

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

restapi/admin_tenants.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,7 @@ func getTenantCreatedResponse(session *models.Principal, params admin_api.Create
514514
CredsSecret: &corev1.LocalObjectReference{
515515
Name: secretName,
516516
},
517-
Env: envrionmentVariables,
518-
KES: &operator.KESConfig{},
519-
Console: &operator.ConsoleConfiguration{},
517+
Env: envrionmentVariables,
520518
},
521519
}
522520
idpEnabled := false
@@ -611,10 +609,7 @@ func getTenantCreatedResponse(session *models.Principal, params admin_api.Create
611609
if err != nil {
612610
return nil, prepareError(errorGeneric)
613611
}
614-
}
615-
616-
// Set Labels, Annotations and Node Selector for KES
617-
if isEncryptionEnabled && tenantReq.Encryption != nil {
612+
// Set Labels, Annotations and Node Selector for KES
618613
minInst.Spec.KES.Labels = tenantReq.Encryption.Labels
619614
minInst.Spec.KES.Annotations = tenantReq.Encryption.Annotations
620615
minInst.Spec.KES.NodeSelector = tenantReq.Encryption.NodeSelector

0 commit comments

Comments
 (0)