Skip to content

Commit

Permalink
fix: allow override disable autoscale
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jun 20, 2024
1 parent bb3f41e commit 9d0f890
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugins/contrib/charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resources:
cpu:
memory:
autoscale:
enabled: false
enabled:
minReplicas: 2
maxReplicas: 10
averageUtilization:
Expand Down
14 changes: 7 additions & 7 deletions plugins/contrib/charts/daemon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ imageRepository:
imagePackage: daemon
imageTag:
image:
replicas:
replicas:
env: []
vars: {}
envFrom: []
resources:
limits:
cpu:
cpu:
memory:
requests:
cpu:
memory:
cpu:
memory:
autoscale:
enabled: false
enabled:
minReplicas: 2
maxReplicas: 10
averageUtilization:
Expand All @@ -30,5 +30,5 @@ volumeMounts: []
entrypoint:
args: []
antiAffinity:
enabled:
strategyType: RollingUpdate
enabled:
strategyType: RollingUpdate
2 changes: 1 addition & 1 deletion plugins/contrib/charts/hasura/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resources:
cpu:
memory:
autoscale:
enabled: false
enabled:
minReplicas: 2
maxReplicas: 10
averageUtilization:
Expand Down
3 changes: 3 additions & 0 deletions plugins/contrib/values-compilers/20-enable-hpa-when-gt-1r.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module.exports = async (values, _options, { utils }) => {
if (replicas < 2) {
return
}
if (componentValues.autoscale.enabled === false) {
return
}
const valuesPatch = {
autoscale: {
enabled: true,
Expand Down

0 comments on commit 9d0f890

Please sign in to comment.