Skip to content

Allow Rspec testing with Helm 3.2+

Gerard Hickey requested to merge newer-helm-versions into master

As noted in !2440 (comment 906692099), there is a difference in the handling of securityContext between Helm 3.1.x and Helm 3.2+

This change now exposes the Helm minor version so that it can be used in the Gitaly tests that examine the securityContext.

The Gitaly securityContext tests will now verify the expected context and then verify the additional context that was not specified when testing with Helm 3.1.x Some tests would expect fsGroup to be returned while other expected runAsUser to be returned. The new testing will checks for the expected attribute but then will check the complement attribute.

Testing was accomplished by restricting the tests to just Gitaly tests for the securityContext, i.e.:

rspec -fd spec/configuration/gitaly_spec.rb:112
Edited by Gerard Hickey

Merge request reports

Loading