@toa.io/operations 1.0.0-alpha.20 → 1.0.0-alpha.22

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.20",
3
+ "version": "1.0.0-alpha.22",
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.20",
31
- "@toa.io/generic": "1.0.0-alpha.20",
32
- "@toa.io/norm": "1.0.0-alpha.20",
33
- "@toa.io/yaml": "1.0.0-alpha.20",
30
+ "@toa.io/filesystem": "1.0.0-alpha.22",
31
+ "@toa.io/generic": "1.0.0-alpha.22",
32
+ "@toa.io/norm": "1.0.0-alpha.22",
33
+ "@toa.io/yaml": "1.0.0-alpha.22",
34
34
  "execa": "5.1.1",
35
35
  "fs-extra": "11.1.1"
36
36
  },
37
- "gitHead": "dcde3389a86ab38e377ebc5ab18e5d5a512b85bc"
37
+ "gitHead": "5bc67b81c4c5fbf92db037c805fba84a571ed24b"
38
38
  }
@@ -38,6 +38,7 @@ spec:
38
38
  targetPort: {{ .port }}
39
39
  ---
40
40
  {{- if .ingress }}
41
+ {{- $service := .name }}
41
42
  apiVersion: networking.k8s.io/v1
42
43
  kind: Ingress
43
44
  metadata:
@@ -51,15 +52,17 @@ spec:
51
52
  ingressClassName: {{ .ingress.class }}
52
53
  {{- end }}
53
54
  rules:
54
- - host: {{ required "ingress.host is required" .ingress.host }}
55
+ {{- range .ingress.hosts }}
56
+ - host: {{ . }}
55
57
  http:
56
58
  paths:
57
59
  - path: /
58
60
  pathType: Prefix
59
61
  backend:
60
62
  service:
61
- name: extension-{{ .name }}
63
+ name: extension-{{ $service }}
62
64
  port:
63
65
  number: 8000
66
+ {{- end }}
64
67
  {{- end }}
65
68
  {{- end }}
@@ -29,7 +29,7 @@ services:
29
29
  port: 8000
30
30
  replicas: 2
31
31
  ingress:
32
- host: dummies.toa.io
32
+ hosts: [dummies.toa.io]
33
33
  class: alb
34
34
  annotations:
35
35
  alb.ingress.kubernetes.io/scheme: internet-facing
@@ -3,11 +3,7 @@ export type Service = {
3
3
  name: string
4
4
  version: string
5
5
  port: number
6
- ingress?: {
7
- host: string
8
- class?: string
9
- annotations?: object
10
- }
6
+ ingress: Ingress
11
7
  variables: Variable[]
12
8
  components?: string[]
13
9
  }
@@ -28,3 +24,9 @@ export type Dependency = {
28
24
  services?: Service[]
29
25
  variables?: Variables
30
26
  }
27
+
28
+ type Ingress = {
29
+ hosts: string[]
30
+ class?: string
31
+ annotations?: object
32
+ }