mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
# Removed - Promtail add-on has been removed # Fixed - Fixed httpGet probe whitespace rendering (#76) - Fixed Secret management for ServiceAccounts (fixes #78) - Fixed code-server add-on Service rendering # Added - Added support for Gateway API Routes (#59) # Changed - Services and their ports are now assumed enabled by default - Updated `code-server` image to v4.8.3 - Updated `netshoot` image to v0.8 Signed-off-by: András Maróy <andras@maroy.hu> Signed-off-by: András Maróy <andras@maroy.hu> Co-authored-by: András Maróy <andras@maroy.hu> Co-authored-by: pando85 <pando855@gmail.com>
313 lines
7.3 KiB
YAML
313 lines
7.3 KiB
YAML
suite: container probes
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
enabled: true
|
|
port: &port 80
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
value:
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
tcpSocket:
|
|
port: *port
|
|
timeoutSeconds: 1
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].readinessProbe
|
|
value:
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
tcpSocket:
|
|
port: *port
|
|
timeoutSeconds: 1
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].startupProbe
|
|
value:
|
|
failureThreshold: 30
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 5
|
|
tcpSocket:
|
|
port: *port
|
|
timeoutSeconds: 1
|
|
|
|
- it: custom primary port should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
enabled: true
|
|
port: 80
|
|
test:
|
|
enabled: true
|
|
primary: true
|
|
port: &port 8080
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
value:
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
tcpSocket:
|
|
port: *port
|
|
timeoutSeconds: 1
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].readinessProbe
|
|
value:
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
tcpSocket:
|
|
port: *port
|
|
timeoutSeconds: 1
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].startupProbe
|
|
value:
|
|
failureThreshold: 30
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 5
|
|
tcpSocket:
|
|
port: *port
|
|
timeoutSeconds: 1
|
|
|
|
- it: disabled service should pass
|
|
set:
|
|
service:
|
|
main:
|
|
enabled: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
isNull:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
- documentIndex: 0
|
|
isNull:
|
|
path: spec.template.spec.containers[0].readinessProbe
|
|
- documentIndex: 0
|
|
isNull:
|
|
path: spec.template.spec.containers[0].startupProbe
|
|
|
|
- it: AUTO type probe should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 80
|
|
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: AUTO
|
|
path: /api/version
|
|
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
value:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
scheme: HTTP
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
|
|
- it: HTTP type probe should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 80
|
|
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: HTTP
|
|
path: /api/version
|
|
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
value:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
scheme: HTTP
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
|
|
- it: HTTPS type probe should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 80
|
|
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: HTTPS
|
|
path: /api/version
|
|
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
value:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
scheme: HTTPS
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
|
|
- it: custom liveness probe should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 80
|
|
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].livenessProbe
|
|
value:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
|
|
- it: custom readiness probe should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 80
|
|
|
|
probes:
|
|
readiness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].readinessProbe
|
|
value:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
|
|
- it: custom startup probe should pass
|
|
set:
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 80
|
|
|
|
probes:
|
|
startup:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
asserts:
|
|
- documentIndex: 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 0
|
|
equal:
|
|
path: spec.template.spec.containers[0].startupProbe
|
|
value:
|
|
httpGet:
|
|
path: /api/version
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|