| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- suite: test controller deployment
- templates:
- - deployment.yaml
- tests:
- - it: should match snapshot of default values
- asserts:
- - matchSnapshot: {}
- - it: should set imagePullPolicy to Always
- set:
- image.pullPolicy: Always
- asserts:
- - equal:
- path: spec.template.spec.containers[0].imagePullPolicy
- value: Always
- - it: should imagePullPolicy to be default value IfNotPresent
- asserts:
- - equal:
- path: spec.template.spec.containers[0].imagePullPolicy
- value: IfNotPresent
- - it: should override securityContext
- set:
- podSecurityContext:
- runAsUser: 2000
- securityContext:
- runAsUser: 3000
- asserts:
- - equal:
- path: spec.template.spec.securityContext
- value:
- runAsUser: 2000
- - equal:
- path: spec.template.spec.containers[0].securityContext
- value:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsNonRoot: true
- runAsUser: 3000
- seccompProfile:
- type: RuntimeDefault
|