Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
djkhl committed Nov 22, 2024
1 parent fbe19aa commit 5c22a84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions charts/logprep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ resources:
# if enabled: the default security context for the pod
podSecurityContext:
enabled: true
fsgroup: 1000
runAsNonRoot: true
fsGroup: 1000
runAsUser: 1000
readOnlyRootFilesystem: true

# if enabled: the default security context for the container
containerSecruityContext:
enabled: true
runAsNonRoot: true
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
Expand Down
1 change: 0 additions & 1 deletion tests/unit/charts/test_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def test_security_context(self):
assert security_context["runAsUser"] == 1000
assert security_context["fsGroup"] == 1000
security_context = self.deployment["spec.template.spec.containers.0.securityContext"]
assert security_context["runAsUser"] == 1000
assert security_context["capabilities"]["drop"] == ["ALL"]
assert security_context["readOnlyRootFilesystem"] is True
assert security_context["runAsNonRoot"] is True
Expand Down

0 comments on commit 5c22a84

Please sign in to comment.