forked from sonatype/nexus-iq-server-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
external-dns_test.yaml
122 lines (122 loc) · 3.29 KB
/
external-dns_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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
suite: external-dns
templates:
- external-dns.yaml
tests:
- it: is disabled by default
asserts:
- hasDocuments:
count: 0
- it: renders with defaults when enabled
set:
externalDns:
enabled: true
asserts:
- hasDocuments:
count: 3
- equal:
path: apiVersion
value: rbac.authorization.k8s.io/v1
documentIndex: 0
- isKind:
of: ClusterRole
documentIndex: 0
- equal:
path: metadata.name
value: RELEASE-NAME-external-dns
documentIndex: 0
- equal:
path: rules
value:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
- nodes
verbs:
- get
- watch
- list
- apiGroups:
- extensions
- networking.k8s.io
resources:
- ingresses
verbs:
- get
- watch
- list
documentIndex: 0
- equal:
path: apiVersion
value: rbac.authorization.k8s.io/v1
documentIndex: 1
- isKind:
of: ClusterRoleBinding
documentIndex: 1
- equal:
path: metadata.name
value: RELEASE-NAME-external-dns-viewer
documentIndex: 1
- equal:
path: metadata.labels
value:
app.kubernetes.io/name: RELEASE-NAME-external-dns
documentIndex: 1
- equal:
path: roleRef
value:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: RELEASE-NAME-external-dns
documentIndex: 1
- equal:
path: subjects
value:
- kind: ServiceAccount
name: default
namespace: NAMESPACE
documentIndex: 1
- equal:
path: apiVersion
value: apps/v1
documentIndex: 2
- isKind:
of: Deployment
documentIndex: 2
- equal:
path: metadata.name
value: RELEASE-NAME-external-dns
documentIndex: 2
- equal:
path: metadata.labels
value:
app.kubernetes.io/name: RELEASE-NAME-external-dns
documentIndex: 2
- equal:
path: spec
value:
selector:
matchLabels:
app.kubernetes.io/name: RELEASE-NAME-external-dns
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/name: RELEASE-NAME-external-dns
spec:
automountServiceAccountToken: true
containers:
- args:
- --provider=aws
- --policy=upsert-only
- --source=service
- --source=ingress
- --registry=txt
- --txt-owner-id=RELEASE-NAME-external-dns
image: registry.k8s.io/external-dns/external-dns:v0.13.1
name: RELEASE-NAME-external-dns
serviceAccountName: default
documentIndex: 2