Skip to content

Commit 07c418a

Browse files
mclasmeierMoritz Clasmeier
andauthored
Request fewer sensor resources in CI (#128)
Co-authored-by: Moritz Clasmeier <mclasmeier@redhat.com>
1 parent b8387d3 commit 07c418a

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

internal/deployer/constants.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,13 @@ var (
218218
"cpu": "400m",
219219
},
220220
}
221+
222+
securedClusterSensorResourcesCI = map[string]interface{}{
223+
"requests": map[string]string{
224+
"memory": "500Mi",
225+
"cpu": "500m",
226+
},
227+
}
221228
)
222229

223230
func internalCentralEndpoint(namespace string) string {

internal/deployer/deploy_via_operator.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,14 @@ func (d *Deployer) getSecuredClusterResourcesOperator(resourcesName string) map[
753753
},
754754
},
755755
}
756+
case "ci":
757+
return map[string]interface{}{
758+
"spec": map[string]interface{}{
759+
"sensor": map[string]interface{}{
760+
"resources": securedClusterSensorResourcesCI,
761+
},
762+
},
763+
}
756764
default:
757765
return nil
758766
}

0 commit comments

Comments
 (0)