디렉토리 구조 및 각 서비스 추가
This commit is contained in:
32
helm/teleport-cluster/tests/auth_serviceaccount_test.yaml
Normal file
32
helm/teleport-cluster/tests/auth_serviceaccount_test.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
suite: Auth ServiceAccount
|
||||
templates:
|
||||
- auth/serviceaccount.yaml
|
||||
tests:
|
||||
- it: sets ServiceAccount annotations when specified
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.annotations.kubernetes\.io/serviceaccount
|
||||
value: test-annotation
|
||||
- equal:
|
||||
path: metadata.annotations.kubernetes\.io/serviceaccount-different
|
||||
value: 6
|
||||
|
||||
- it: changes ServiceAccount name when specified
|
||||
values:
|
||||
- ../.lint/service-account.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.name
|
||||
value: "helm-lint"
|
||||
|
||||
- it: sets Azure client ID when set
|
||||
set:
|
||||
chartMode: azure
|
||||
azure:
|
||||
clientID: "1234"
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.annotations.azure\.workload\.identity/client-id
|
||||
value: "1234"
|
||||
Reference in New Issue
Block a user