@@ -259,6 +259,38 @@ func (d *Deployer) createAdminPasswordSecret(ctx context.Context) error {
259259
260260func getCentralResourcesOperator (resourcesProfile types.ResourceProfile ) map [string ]interface {} {
261261 switch resourcesProfile {
262+ case types .ResourceProfileTiny :
263+ return map [string ]interface {}{
264+ "spec" : map [string ]interface {}{
265+ "central" : map [string ]interface {}{
266+ "resources" : centralResourcesTiny ,
267+ "db" : map [string ]interface {}{
268+ "resources" : centralDbResourcesTiny ,
269+ "persistence" : map [string ]interface {}{
270+ "persistentVolumeClaim" : map [string ]interface {}{
271+ "size" : centralDbPVCSizeTiny ,
272+ },
273+ },
274+ },
275+ },
276+ "scanner" : map [string ]interface {}{
277+ "scannerComponent" : "Disabled" ,
278+ },
279+ "scannerV4" : map [string ]interface {}{
280+ "db" : map [string ]interface {}{
281+ "resources" : centralScannerV4DbResourcesTiny ,
282+ },
283+ "indexer" : map [string ]interface {}{
284+ "resources" : centralScannerV4IndexerResourcesTiny ,
285+ "scaling" : noScaling ,
286+ },
287+ "matcher" : map [string ]interface {}{
288+ "resources" : centralScannerV4MatcherResourcesTiny ,
289+ "scaling" : noScaling ,
290+ },
291+ },
292+ },
293+ }
262294 case types .ResourceProfileSmall :
263295 return map [string ]interface {}{
264296 "spec" : map [string ]interface {}{
@@ -705,9 +737,44 @@ func (d *Deployer) deploySecuredClusterOperator(ctx context.Context) error {
705737
706738func getSecuredClusterResourcesOperator (resourceProfile types.ResourceProfile ) map [string ]interface {} {
707739 switch resourceProfile {
740+ case types .ResourceProfileTiny :
741+ return map [string ]interface {}{
742+ "spec" : map [string ]interface {}{
743+ "admissionControl" : map [string ]interface {}{
744+ "replicas" : 1 ,
745+ },
746+ "sensor" : map [string ]interface {}{
747+ "resources" : securedClusterSensorResourcesTiny ,
748+ },
749+ "scanner" : map [string ]interface {}{
750+ "scannerComponent" : "Disabled" ,
751+ },
752+ "scannerV4" : map [string ]interface {}{
753+ "scannerComponent" : "Disabled" ,
754+ },
755+ // The "tiny" resource profile also patches the resources down for some containers, which do not
756+ // have first-class configurability exposed in the CR.
757+ "overlays" : []map [string ]interface {}{
758+ {
759+ "apiVersion" : "apps/v1" ,
760+ "kind" : "Deployment" ,
761+ "name" : "sensor" ,
762+ "patches" : []map [string ]interface {}{
763+ {
764+ "path" : "spec.template.spec.initContainers[name:crs].resources.requests" ,
765+ "value" : `{"cpu":"80m", "memory": "150m"}` ,
766+ },
767+ },
768+ },
769+ },
770+ },
771+ }
708772 case types .ResourceProfileSmall :
709773 return map [string ]interface {}{
710774 "spec" : map [string ]interface {}{
775+ "admissionControl" : map [string ]interface {}{
776+ "replicas" : 1 ,
777+ },
711778 "sensor" : map [string ]interface {}{
712779 "resources" : securedClusterSensorResourcesSmall ,
713780 },
0 commit comments