@abgov/nx-oc 12.8.0 → 12.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/generators/deployment/deployment.spec.ts +12 -0
- package/src/generators/deployment/dotnet-files/__projectName__.yml__tmpl__ +14 -0
- package/src/generators/deployment/frontend-files/__projectName__.yml__tmpl__ +14 -0
- package/src/generators/deployment/node-files/__projectName__.yml__tmpl__ +14 -0
package/package.json
CHANGED
|
@@ -90,6 +90,10 @@ describe('Deployment Generator', () => {
|
|
|
90
90
|
|
|
91
91
|
const dockerfile = host.read('.openshift/test/Dockerfile').toString();
|
|
92
92
|
expect(dockerfile).toContain('nginx');
|
|
93
|
+
|
|
94
|
+
const manifest = host.read('.openshift/test/test.yml').toString();
|
|
95
|
+
expect(manifest).toContain('readinessProbe');
|
|
96
|
+
expect(manifest).toContain('livenessProbe');
|
|
93
97
|
});
|
|
94
98
|
|
|
95
99
|
it('can generate deployment for angular', async () => {
|
|
@@ -150,6 +154,10 @@ describe('Deployment Generator', () => {
|
|
|
150
154
|
|
|
151
155
|
const dockerfile = host.read('.openshift/test/Dockerfile').toString();
|
|
152
156
|
expect(dockerfile).toContain('node');
|
|
157
|
+
|
|
158
|
+
const manifest = host.read('.openshift/test/test.yml').toString();
|
|
159
|
+
expect(manifest).toContain('readinessProbe');
|
|
160
|
+
expect(manifest).toContain('livenessProbe');
|
|
153
161
|
});
|
|
154
162
|
|
|
155
163
|
it('can generate deployment for dotnet', async () => {
|
|
@@ -178,6 +186,10 @@ describe('Deployment Generator', () => {
|
|
|
178
186
|
|
|
179
187
|
const dockerfile = host.read('.openshift/test/Dockerfile').toString();
|
|
180
188
|
expect(dockerfile).toContain('dotnet');
|
|
189
|
+
|
|
190
|
+
const manifest = host.read('.openshift/test/test.yml').toString();
|
|
191
|
+
expect(manifest).toContain('readinessProbe');
|
|
192
|
+
expect(manifest).toContain('livenessProbe');
|
|
181
193
|
});
|
|
182
194
|
|
|
183
195
|
it('includes DATABASE_URL secretKeyRef and init container for postgres node deployment', async () => {
|
|
@@ -112,6 +112,20 @@ objects:
|
|
|
112
112
|
requests:
|
|
113
113
|
cpu: 20m
|
|
114
114
|
memory: 200Mi
|
|
115
|
+
readinessProbe:
|
|
116
|
+
httpGet:
|
|
117
|
+
path: /health
|
|
118
|
+
port: 5000
|
|
119
|
+
initialDelaySeconds: 10
|
|
120
|
+
periodSeconds: 10
|
|
121
|
+
failureThreshold: 3
|
|
122
|
+
livenessProbe:
|
|
123
|
+
httpGet:
|
|
124
|
+
path: /health
|
|
125
|
+
port: 5000
|
|
126
|
+
initialDelaySeconds: 30
|
|
127
|
+
periodSeconds: 30
|
|
128
|
+
failureThreshold: 3
|
|
115
129
|
volumeMounts:
|
|
116
130
|
- mountPath: /opt/app-root/app/appsettings.json
|
|
117
131
|
name: config-volume
|
|
@@ -96,6 +96,20 @@ objects:
|
|
|
96
96
|
requests:
|
|
97
97
|
cpu: 20m
|
|
98
98
|
memory: 50Mi
|
|
99
|
+
readinessProbe:
|
|
100
|
+
httpGet:
|
|
101
|
+
path: /
|
|
102
|
+
port: 8080
|
|
103
|
+
initialDelaySeconds: 10
|
|
104
|
+
periodSeconds: 10
|
|
105
|
+
failureThreshold: 3
|
|
106
|
+
livenessProbe:
|
|
107
|
+
httpGet:
|
|
108
|
+
path: /
|
|
109
|
+
port: 8080
|
|
110
|
+
initialDelaySeconds: 30
|
|
111
|
+
periodSeconds: 30
|
|
112
|
+
failureThreshold: 3
|
|
99
113
|
volumeMounts:
|
|
100
114
|
- mountPath: /opt/app-root/src/config
|
|
101
115
|
name: config-volume
|
|
@@ -128,6 +128,20 @@ objects:
|
|
|
128
128
|
requests:
|
|
129
129
|
cpu: 20m
|
|
130
130
|
memory: 50Mi
|
|
131
|
+
readinessProbe:
|
|
132
|
+
httpGet:
|
|
133
|
+
path: /health
|
|
134
|
+
port: 3333
|
|
135
|
+
initialDelaySeconds: 10
|
|
136
|
+
periodSeconds: 10
|
|
137
|
+
failureThreshold: 3
|
|
138
|
+
livenessProbe:
|
|
139
|
+
httpGet:
|
|
140
|
+
path: /health
|
|
141
|
+
port: 3333
|
|
142
|
+
initialDelaySeconds: 30
|
|
143
|
+
periodSeconds: 30
|
|
144
|
+
failureThreshold: 3
|
|
131
145
|
- apiVersion: v1
|
|
132
146
|
kind: Service
|
|
133
147
|
metadata:
|