Skip to content

Commit

Permalink
apache#5811 Issue: Set Default Resource for Builder Pod
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayletsgo committed Jan 15, 2025
1 parent 00c293b commit 5b6c493
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ ARG MAVEN_HOME="/usr/share/maven"
ARG MAVEN_DIST_URL="https://archive.apache.org/dist/maven/maven-3/${MAVEN_DEFAULT_VERSION}/binaries/apache-maven-${MAVEN_DEFAULT_VERSION}-bin.zip"
ARG MVNW_DIR="/usr/share/maven/mvnw/"
ARG MVN_REPO="/etc/maven/m2"
ARG MAVEN_OPTS="-Xmx512m -Xms256m -XX:MaxRAMPercentage=75.0"

ENV JAVA_OPTS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
ARG MAVEN_OPTS=""

USER 0

Expand Down
9 changes: 7 additions & 2 deletions pkg/resources/config/manager/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ spec:
memory: "2Gi"
cpu: "500m"
limits:
memory: "8Gi"
cpu: "2"
- default:
memory: "8Gi"
cpu: "2"
defaultRequest:
memory: "512Mi"
cpu: "300m"
type:container
securityContext:
runAsNonRoot: true
seccompProfile:
Expand Down

0 comments on commit 5b6c493

Please sign in to comment.