Skip to content

Commit

Permalink
fix: remove defaults resources (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo authored May 30, 2024
1 parent 392de2b commit 54b3a25
Show file tree
Hide file tree
Showing 56 changed files with 289 additions and 1,491 deletions.
12 changes: 2 additions & 10 deletions packages/kontinuous/tests/__snapshots__/app-sidecar.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 41m
memory: 131Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand All @@ -208,10 +204,6 @@ spec:
run-background-cronjob
securityContext:
runAsUser: 1000
resources:
requests:
cpu: 41m
memory: 131Mi
lifecycle:
postStart:
exec:
Expand Down
72 changes: 18 additions & 54 deletions packages/kontinuous/tests/__snapshots__/app-simple-options.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: ghcr.io/socialgouv/docker/psql:6.70.0
Expand Down Expand Up @@ -201,12 +197,8 @@ spec:
set -e
/action/ensure-db.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down Expand Up @@ -310,12 +302,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand Down Expand Up @@ -351,12 +339,8 @@ spec:
set -e
/action/create-secret.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -473,12 +457,8 @@ spec:
- name: workspace
mountPath: /workspace
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: harbor.fabrique.social.gouv.fr/test-app-simple-options/app:sha-ffac537e6cbbf934b08745a378932722df287a53
Expand All @@ -498,12 +478,8 @@ spec:
set -e
yarn seed
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down Expand Up @@ -611,12 +587,8 @@ spec:
- name: workspace
mountPath: /workspace
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
- name: degit-action
image: ghcr.io/socialgouv/kontinuous/degit:v1.176.5
command:
Expand All @@ -631,12 +603,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: ghcr.io/socialgouv/docker/psql:7.0.0
Expand All @@ -658,12 +626,8 @@ spec:
set -e
/action/seed-db.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
8 changes: 2 additions & 6 deletions packages/kontinuous/tests/__snapshots__/app-simple.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
8 changes: 2 additions & 6 deletions packages/kontinuous/tests/__snapshots__/app-simple.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
16 changes: 4 additions & 12 deletions packages/kontinuous/tests/__snapshots__/chart-group.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down Expand Up @@ -225,12 +221,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
16 changes: 4 additions & 12 deletions packages/kontinuous/tests/__snapshots__/chart-groups.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down Expand Up @@ -225,12 +221,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
4 changes: 0 additions & 4 deletions packages/kontinuous/tests/__snapshots__/charts.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@ spec:
set -e
echo Hello World
FOO=\\"barjo\\"\\"
resources:
requests:
cpu: 81m
memory: 262Mi
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down
8 changes: 2 additions & 6 deletions packages/kontinuous/tests/__snapshots__/daemon.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,8 @@ spec:
- image: harbor.fabrique.social.gouv.fr/test-daemon/daemon:sha-ffac537e6cbbf934b08745a378932722df287a53
name: app
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
16 changes: 4 additions & 12 deletions packages/kontinuous/tests/__snapshots__/deactivate.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand All @@ -96,12 +92,8 @@ spec:
kubectl delete namespace \\"$NAMESPACE\\" --now=true --wait=false
fi
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down
40 changes: 10 additions & 30 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand Down Expand Up @@ -191,12 +187,8 @@ spec:
set -e
/action/create-secrets.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -310,12 +302,8 @@ spec:
- name: action
mountPath: /action
resources:
limits:
cpu: 1000m
memory: 1024Mi
requests:
cpu: \\"0\\"
memory: \\"0\\"
limits: {}
requests: {}
containers:
- name: job
image: bitnami/kubectl:latest
Expand Down Expand Up @@ -354,12 +342,8 @@ spec:
set -e
/action/create-secrets.sh
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
securityContext:
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -503,12 +487,8 @@ spec:
port: http
periodSeconds: 5
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 81m
memory: 262Mi
limits: {}
requests: {}
lifecycle:
postStart:
exec:
Expand Down
Loading

0 comments on commit 54b3a25

Please sign in to comment.