Skip to content

Commit

Permalink
fix: tests snapshots (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 authored May 29, 2024
1 parent 7a75f88 commit 1c2a785
Show file tree
Hide file tree
Showing 49 changed files with 1,979 additions and 525 deletions.
54 changes: 47 additions & 7 deletions packages/kontinuous/tests/__snapshots__/app-sidecar.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 12
httpGet:
Expand All @@ -185,6 +183,22 @@ spec:
requests:
cpu: 41m
memory: 131Mi
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
volumeMounts:
- name: readiness-check-volume
mountPath: /var/run/readiness-check
- name: cronjob
image: test/background-cronjob
command:
Expand All @@ -198,6 +212,32 @@ spec:
requests:
cpu: 41m
memory: 131Mi
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
readinessProbe:
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts:
- name: readiness-check-volume
mountPath: /var/run/readiness-check
volumes:
- name: readiness-check-volume
emptyDir: {}
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ spec:
- name: docs
persistentVolumeClaim:
claimName: docs
- name: readiness-check-volume
emptyDir: {}
containers:
- image: harbor.fabrique.social.gouv.fr/test-app-simple-options/app:sha-ffac537e6cbbf934b08745a378932722df287a53
name: app
Expand All @@ -795,14 +797,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 124
httpGet:
Expand All @@ -820,6 +820,21 @@ spec:
volumeMounts:
- name: docs
mountPath: /mnt/docs
- name: readiness-check-volume
mountPath: /var/run/readiness-check
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ spec:
- name: docs
persistentVolumeClaim:
claimName: docs
- name: readiness-check-volume
emptyDir: {}
containers:
- image: harbor.fabrique.social.gouv.fr/test-app-simple-options/app:prod
name: app
Expand All @@ -172,14 +174,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 124
httpGet:
Expand All @@ -197,6 +197,21 @@ spec:
volumeMounts:
- name: docs
mountPath: /mnt/docs
- name: readiness-check-volume
mountPath: /var/run/readiness-check
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
---
apiVersion: v1
kind: Service
Expand Down
31 changes: 24 additions & 7 deletions packages/kontinuous/tests/__snapshots__/app-simple.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 12
httpGet:
Expand All @@ -185,6 +183,25 @@ spec:
requests:
cpu: 81m
memory: 262Mi
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
volumeMounts:
- name: readiness-check-volume
mountPath: /var/run/readiness-check
volumes:
- name: readiness-check-volume
emptyDir: {}
---
apiVersion: v1
kind: Service
Expand Down
31 changes: 24 additions & 7 deletions packages/kontinuous/tests/__snapshots__/app-simple.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 12
httpGet:
Expand All @@ -184,6 +182,25 @@ spec:
requests:
cpu: 81m
memory: 262Mi
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
volumeMounts:
- name: readiness-check-volume
mountPath: /var/run/readiness-check
volumes:
- name: readiness-check-volume
emptyDir: {}
---
apiVersion: v1
kind: Service
Expand Down
62 changes: 48 additions & 14 deletions packages/kontinuous/tests/__snapshots__/chart-group.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 12
httpGet:
Expand All @@ -108,6 +106,25 @@ spec:
requests:
cpu: 81m
memory: 262Mi
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
volumeMounts:
- name: readiness-check-volume
mountPath: /var/run/readiness-check
volumes:
- name: readiness-check-volume
emptyDir: {}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -195,14 +212,12 @@ spec:
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
failureThreshold: 15
httpGet:
path: /index.html
port: http
initialDelaySeconds: 1
exec:
command:
- cat
- /var/run/readiness-check/readiness-file
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
failureThreshold: 12
httpGet:
Expand All @@ -216,6 +231,25 @@ spec:
requests:
cpu: 81m
memory: 262Mi
lifecycle:
postStart:
exec:
command:
- sh
- -c
- touch /var/run/readiness-check/readiness-file
preStop:
exec:
command:
- sh
- -c
- rm -f /var/run/readiness-check/readiness-file; sleep 30
volumeMounts:
- name: readiness-check-volume
mountPath: /var/run/readiness-check
volumes:
- name: readiness-check-volume
emptyDir: {}
---
apiVersion: v1
kind: Service
Expand Down
Loading

0 comments on commit 1c2a785

Please sign in to comment.