Skip to content

Commit

Permalink
Update bats test to actually test that we don't drop all capabilites …
Browse files Browse the repository at this point in the history
…when hostNetwork=true
  • Loading branch information
missylbytes committed Feb 6, 2024
1 parent 89c0a1e commit b37685c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/consul/test/unit/mesh-gateway-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,7 @@ key2: value2' \
. | tee /dev/stderr |
yq -r '.spec.template.spec.containers[0].securityContext' | tee /dev/stderr)

[ $(echo "${actual}" | yq -r '.capabilities.drop | length') -eq 0 ]
[ $(echo "${actual}" | yq -r '.capabilities.add[0]') = "NET_BIND_SERVICE" ]

}

0 comments on commit b37685c

Please sign in to comment.