Skip to content

Commit

Permalink
Merge pull request #37 from meisterplan/feature/KNUTH-79040
Browse files Browse the repository at this point in the history
Remove mandatory pod cpu limit
  • Loading branch information
xcq1 authored Jan 24, 2023
2 parents e25eb32 + f5d591e commit aaccc12
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# spring-service

## 3.10.0

- Remove pod CPU limits

## 3.9.0

**Breaking Changes**
Expand Down Expand Up @@ -127,6 +131,10 @@

# cronjob

## 1.6.0

- Remove pod CPU limits

## 1.5.0

**Breaking Changes**
Expand Down
2 changes: 1 addition & 1 deletion charts/cronjob/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: cronjob
description: A generalized cronjob that can access secrets.
version: 1.5.0
version: 1.6.0
4 changes: 3 additions & 1 deletion charts/cronjob/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ spec:
cpu: {{ required "CPU guarantee must be set!" .Values.resources.cpu.guarantee }}
memory: {{ required "Memory requirement must be set!" .Values.resources.memory }}
limits:
cpu: {{ required "CPU limit must be set!" .Values.resources.cpu.limit }}
{{- if .Values.resources.cpu.limit }}
cpu: {{ .Values.resources.cpu.limit }}
{{- end }}
memory: {{ required "Memory requirement must be set!" .Values.resources.memory }}

env:
Expand Down
1 change: 0 additions & 1 deletion charts/cronjob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ resources:
memory: 64Mi
cpu:
guarantee: 100m
limit: 1000m

env:
fromSecret: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/spring-service/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: spring-service
description: A generalized deployment for Meisterplan Spring Boot services in Kubernetes.
version: 3.9.0
version: 3.10.0
4 changes: 3 additions & 1 deletion charts/spring-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ spec:
cpu: {{ required "CPU guarantee must be set!" .Values.resources.cpu.guarantee }}
memory: {{ required "Memory requirement must be set!" .Values.resources.memory }}
limits:
cpu: {{ required "CPU limit must be set!" .Values.resources.cpu.limit }}
{{- if .Values.resources.cpu.limit }}
cpu: {{ .Values.resources.cpu.limit }}
{{- end }}
memory: {{ required "Memory requirement must be set!" .Values.resources.memory }}

startupProbe:
Expand Down
1 change: 0 additions & 1 deletion charts/spring-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ resources:
memory: 600Mi
cpu:
guarantee: 100m
limit: 1000m

ingress:
host: "" # Hostname under which the service is available, normally configured per deployment target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ spec:
cpu: 100m
memory: 64Mi
limits:
cpu: 1
memory: 64Mi

env:
Expand Down
1 change: 0 additions & 1 deletion tests/cronjob/service-account-cronjob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ resources:
memory: 64Mi
cpu:
guarantee: 100m
limit: 1

env:
fromSecret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ spec:
cpu: 100m
memory: 64Mi
limits:
cpu: 1
memory: 64Mi

env:
Expand Down
1 change: 0 additions & 1 deletion tests/cronjob/simple-cronjob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ resources:
memory: 64Mi
cpu:
guarantee: 100m
limit: 1

env:
fromSecret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ spec:
cpu: 500m
memory: 1000Mi
limits:
cpu: 2
memory: 1000Mi

startupProbe:
Expand Down
1 change: 0 additions & 1 deletion tests/spring-service/complex-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ resources:
memory: 1000Mi
cpu:
guarantee: 500m
limit: 2

ingress:
host: "myservice.mycompany.tld"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ spec:
cpu: 500m
memory: 1000Mi
limits:
cpu: 2
memory: 1000Mi

startupProbe:
Expand Down
1 change: 0 additions & 1 deletion tests/spring-service/simple-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ resources:
memory: 1000Mi
cpu:
guarantee: 500m
limit: 2

ingress:
host: "myservice.mycompany.tld"
Expand Down

0 comments on commit aaccc12

Please sign in to comment.