Skip to content

Commit

Permalink
Don't set limits for Autoscaler Buffer (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykazakov authored Aug 12, 2024
1 parent a0cdbff commit d1a683d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions deploy/autoscaler/member-operator-autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ objects:
requests:
memory: ${MEMORY}
cpu: ${CPU}
limits:
memory: ${MEMORY}
cpu: ${CPU}
parameters:
- name: NAMESPACE
value: 'toolchain-member-operator'
Expand Down
2 changes: 1 addition & 1 deletion pkg/autoscaler/autoscaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func priorityClass() string {
}

func deployment(memory, cpu string, replicas int) string {
return fmt.Sprintf(`{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"name":"autoscaling-buffer","namespace":"%[1]s","labels":{"app":"autoscaling-buffer","toolchain.dev.openshift.com/provider":"codeready-toolchain"}},"spec":{"replicas":%[2]d,"selector":{"matchLabels":{"app":"autoscaling-buffer"}},"template":{"metadata":{"labels":{"app":"autoscaling-buffer"}},"spec":{"priorityClassName":"member-operator-autoscaling-buffer","terminationGracePeriodSeconds":0,"containers":[{"name":"autoscaling-buffer","image":"gcr.io/google_containers/pause-amd64:3.2","imagePullPolicy":"IfNotPresent","resources":{"requests":{"memory":"%[3]s","cpu":"%[4]s"},"limits":{"memory":"%[3]s","cpu":"%[4]s"}}}]}}}}`, test.MemberOperatorNs, replicas, memory, cpu)
return fmt.Sprintf(`{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"name":"autoscaling-buffer","namespace":"%[1]s","labels":{"app":"autoscaling-buffer","toolchain.dev.openshift.com/provider":"codeready-toolchain"}},"spec":{"replicas":%[2]d,"selector":{"matchLabels":{"app":"autoscaling-buffer"}},"template":{"metadata":{"labels":{"app":"autoscaling-buffer"}},"spec":{"priorityClassName":"member-operator-autoscaling-buffer","terminationGracePeriodSeconds":0,"containers":[{"name":"autoscaling-buffer","image":"gcr.io/google_containers/pause-amd64:3.2","imagePullPolicy":"IfNotPresent","resources":{"requests":{"memory":"%[3]s","cpu":"%[4]s"}}}]}}}}`, test.MemberOperatorNs, replicas, memory, cpu)
}

func bufferConfiguration(memory, cpu string, replicas int) BufferConfiguration {
Expand Down

0 comments on commit d1a683d

Please sign in to comment.