@toa.io/operations 1.0.0-alpha.25 → 1.0.0-alpha.27

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/operations",
3
- "version": "1.0.0-alpha.25",
3
+ "version": "1.0.0-alpha.27",
4
4
  "description": "Toa Deployment",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -27,12 +27,12 @@
27
27
  "test": "echo \"Error: run tests from root\" && exit 1"
28
28
  },
29
29
  "dependencies": {
30
- "@toa.io/filesystem": "1.0.0-alpha.25",
31
- "@toa.io/generic": "1.0.0-alpha.25",
32
- "@toa.io/norm": "1.0.0-alpha.25",
33
- "@toa.io/yaml": "1.0.0-alpha.25",
30
+ "@toa.io/filesystem": "1.0.0-alpha.27",
31
+ "@toa.io/generic": "1.0.0-alpha.27",
32
+ "@toa.io/norm": "1.0.0-alpha.27",
33
+ "@toa.io/yaml": "1.0.0-alpha.27",
34
34
  "execa": "5.1.1",
35
35
  "fs-extra": "11.1.1"
36
36
  },
37
- "gitHead": "756ea259f35dda03d45047f8153d441191026877"
37
+ "gitHead": "9bc4bdb919688c5272791020746f70d51a520750"
38
38
  }
@@ -22,6 +22,15 @@ spec:
22
22
  {{- include "env.var" . | indent 12 }}
23
23
  {{- end }}
24
24
  {{- end }}
25
+ {{- if .probe }}
26
+ readinessProbe:
27
+ httpGet:
28
+ path: {{ .probe.path }}
29
+ port: {{ .probe.port }}
30
+ {{- if .probe.delay }}
31
+ initialDelaySeconds: {{ .probe.delay }}
32
+ {{- end }}
33
+ {{- end }}
25
34
  ---
26
35
  apiVersion: v1
27
36
  kind: Service
@@ -41,6 +41,11 @@ services:
41
41
  secret:
42
42
  name: secret-name
43
43
  key: secret-key
44
+ probe:
45
+ port: 8000
46
+ path: /.ready
47
+ delay: 1
48
+
44
49
  proxies:
45
50
  - name: storage-proxy
46
51
  target: host.docker.internal
@@ -6,6 +6,7 @@ export type Service = {
6
6
  ingress: Ingress
7
7
  variables: Variable[]
8
8
  components?: string[]
9
+ probe?: Probe
9
10
  }
10
11
 
11
12
  export type Variable = {
@@ -30,3 +31,9 @@ type Ingress = {
30
31
  class?: string
31
32
  annotations?: object
32
33
  }
34
+
35
+ interface Probe {
36
+ port: number
37
+ path: string
38
+ delay?: number
39
+ }