Skip to content

Commit

Permalink
add tests to ensure GO envs are not set when limits are not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandonPierre committed Apr 8, 2024
1 parent fed2873 commit 5bd8be3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions traefik/tests/pod-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ tests:
- equal:
path: spec.template.spec.containers[0].env[0].valueFrom.resourceFieldRef.resource
value: limits.memory
- it: should have not set GOMAXPROCS without cpu limit
asserts:
- notEqual:
path: spec.template.spec.containers[0].env[0].name
value: GOMAXPROCS
- it: should have not set GOMEMLIMIT without cpu limit
asserts:
- notEqual:
path: spec.template.spec.containers[0].env[0].name
value: GOMEMLIMIT
- it: should have env with specified values
set:
env:
Expand Down

0 comments on commit 5bd8be3

Please sign in to comment.