Bump teleport to version 15.3.3
This commit is contained in:
@@ -3,7 +3,7 @@ templates:
|
||||
- auth/deployment.yaml
|
||||
- auth/config.yaml
|
||||
tests:
|
||||
- it: sets Statefulset annotations when specified
|
||||
- it: sets Deployment annotations when specified
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
@@ -126,6 +126,35 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: spec.template.spec
|
||||
|
||||
- it: should set podSecurityContext when set in values
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/pod-security-context.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.fsGroup
|
||||
value: 99
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.fsGroupChangePolicy
|
||||
value: OnRootMismatch
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsGroup
|
||||
value: 99
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsNonRoot
|
||||
value: true
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsUser
|
||||
value: 99
|
||||
|
||||
- it: should not set podSecurityContext when is empty object (default value)
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/pod-security-context-empty.yaml
|
||||
asserts:
|
||||
- isNull:
|
||||
path: spec.template.spec.securityContext
|
||||
|
||||
- it: should set securityContext when set in values
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
@@ -828,3 +857,45 @@ tests:
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.azure\.workload\.identity/use
|
||||
value: "true"
|
||||
|
||||
- it: sets extraLabels on Deployment
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
deployment:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
deployment:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: sets extraLabels on Deployment Pods
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
pod:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
pod:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
Reference in New Issue
Block a user