Skip to content

Commit

Permalink
fix(helm): remove unused values
Browse files Browse the repository at this point in the history
* add replicaCount for frontend
* decrease default  memory request for frontend
  • Loading branch information
ybelMekk committed Jan 27, 2025
1 parent f7a8f4c commit 2abfd6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions charts/Feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ values:
displayName: Frontend cpu request
config:
type: string
frontend.replicaCount:
displayName: Frontend replica count
config:
type: int

# Trivy Config
trivy.serverToken:
Expand Down
2 changes: 1 addition & 1 deletion charts/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "dependencytrack-frontend.labels" . | nindent 4 }}
spec:
replicas: 1
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels:
{{- include "dependencytrack-frontend.selectorLabels" . | nindent 6 }}
Expand Down
9 changes: 2 additions & 7 deletions charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ backend:
# Overrides the image tag whose default is the chart appVersion.
tag: 4.11.7
replicaCount: 2
replicas:
min: 1
max: 1
resources:
requests:
memory: 4Gi
Expand Down Expand Up @@ -114,12 +111,10 @@ frontend:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: 4.11.7
replicas:
min: 1
max: 1
replicaCount: 1
resources:
requests:
memory: 1Gi
memory: 256Mi
cpu: "1"
outbound: [ ]
ingressClassName: nais-ingress
Expand Down

0 comments on commit 2abfd6f

Please sign in to comment.