forked from sonatype/nexus-iq-server-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service-account_test.yaml
60 lines (60 loc) · 1.53 KB
/
service-account_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
suite: service-account
templates:
- service-account.yaml
tests:
- it: is disabled by default
asserts:
- hasDocuments:
count: 0
- it: renders with defaults when enabled
set:
serviceAccount:
create: true
asserts:
- hasDocuments:
count: 1
- isKind:
of: ServiceAccount
documentIndex: 0
- equal:
path: apiVersion
value: v1
documentIndex: 0
- equal:
path: automountServiceAccountToken
value: false
documentIndex: 0
- equal:
path: metadata
value:
annotations:
labels:
name: default
namespace: NAMESPACE
documentIndex: 0
- it: renders with supplied values
set:
serviceAccount:
create: true
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::123:role/iq-service-role"
labels:
app.kubernetes.io/name: aws-efs-new-csi-driver
automountServiceAccountToken: true
iq_server:
serviceAccountName: serviceAcct
asserts:
- equal:
path: automountServiceAccountToken
value: true
documentIndex: 0
- equal:
path: metadata
value:
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::123:role/iq-service-role"
labels:
app.kubernetes.io/name: aws-efs-new-csi-driver
name: serviceAcct
namespace: NAMESPACE
documentIndex: 0