@toa.io/operations 1.0.0-alpha.72 → 1.0.0-alpha.73

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.72",
3
+ "version": "1.0.0-alpha.73",
4
4
  "description": "Toa Deployment",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -29,10 +29,10 @@
29
29
  "dependencies": {
30
30
  "@toa.io/filesystem": "1.0.0-alpha.63",
31
31
  "@toa.io/generic": "1.0.0-alpha.63",
32
- "@toa.io/norm": "1.0.0-alpha.67",
32
+ "@toa.io/norm": "1.0.0-alpha.73",
33
33
  "@toa.io/yaml": "1.0.0-alpha.63",
34
34
  "execa": "5.1.1",
35
35
  "fs-extra": "11.1.1"
36
36
  },
37
- "gitHead": "919b587dfcdfab40d18f0f8bd24b34d8107f811a"
37
+ "gitHead": "3c7d415c68324aae8f1524b2ae06b02eb5832c54"
38
38
  }
@@ -75,6 +75,17 @@ spec:
75
75
  port:
76
76
  number: 8000
77
77
  {{- end }}
78
+ {{- if .ingress.default }}
79
+ - http:
80
+ paths:
81
+ - path: /
82
+ pathType: Prefix
83
+ backend:
84
+ service:
85
+ name: extension-{{ $service }}
86
+ port:
87
+ number: 8000
88
+ {{- end }}
78
89
  {{- end }}
79
90
  ---
80
91
  {{- end }}
@@ -32,6 +32,7 @@ services:
32
32
  port: 8000
33
33
  replicas: 2
34
34
  ingress:
35
+ default: true
35
36
  hosts: [dummies.toa.io]
36
37
  class: alb
37
38
  annotations:
@@ -16,4 +16,4 @@ COPY --chown=node:node . /composition
16
16
  RUN for entry in *; do if [ -f "$entry/package.json" ]; then (cd $entry && npm i --omit=dev); fi; done
17
17
 
18
18
  USER node
19
- CMD toa compose *
19
+ CMD ["toa", "compose", "*"]
@@ -11,4 +11,4 @@ COPY --chown=node:node . /service
11
11
  RUN npm i --omit=dev
12
12
 
13
13
  USER node
14
- CMD toa serve .
14
+ CMD ["toa", "serve", "."]
@@ -40,7 +40,8 @@ export interface Dependency {
40
40
  }
41
41
 
42
42
  interface Ingress {
43
- hosts: string[]
43
+ default?: boolean
44
+ hosts?: string[]
44
45
  class?: string
45
46
  annotations?: object
46
47
  }