@toa.io/operations 1.0.0-alpha.64 → 1.0.0-alpha.67

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.64",
3
+ "version": "1.0.0-alpha.67",
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.64",
32
+ "@toa.io/norm": "1.0.0-alpha.67",
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": "2a79179b0e6e21ff48eee481d9d71ed0e5d6b343"
37
+ "gitHead": "8e94e72803ebf6835958aee34a632565181ec520"
38
38
  }
@@ -31,6 +31,7 @@ spec:
31
31
  initialDelaySeconds: {{ .probe.delay }}
32
32
  {{- end }}
33
33
  {{- end }}
34
+ {{- if .port }}
34
35
  ---
35
36
  apiVersion: v1
36
37
  kind: Service
@@ -45,6 +46,7 @@ spec:
45
46
  protocol: TCP
46
47
  port: {{ .port }}
47
48
  targetPort: {{ .port }}
49
+ {{- end }}
48
50
  ---
49
51
  {{- if .ingress }}
50
52
  {{- $service := .name }}
@@ -15,7 +15,6 @@ class Factory {
15
15
  #dependencies
16
16
  #registry
17
17
  #process
18
- #extensionComponents = []
19
18
 
20
19
  constructor (context) {
21
20
  this.#context = context
@@ -1,10 +1,13 @@
1
+ import type { Manifest } from '@toa.io/norm'
2
+ import type { Locator } from '@toa.io/core'
3
+
1
4
  export interface Service {
2
5
  group: string
3
6
  name: string
4
7
  version: string
5
- port: number
6
- ingress: Ingress
7
- variables: Variable[]
8
+ port?: number
9
+ ingress?: Ingress
10
+ variables?: Variable[]
8
11
  components?: string[]
9
12
  probe?: Probe
10
13
  }
@@ -19,6 +22,14 @@ export interface Variable {
19
22
  }
20
23
  }
21
24
 
25
+ export interface Instance<T> {
26
+ locator: Locator
27
+ manifest: T
28
+ component: Manifest
29
+ }
30
+
31
+ export type Instances<T> = Array<Instance<T>>
32
+
22
33
  export type Variables = Record<'global' | string, Variable[]>
23
34
  export type Mounts = Record<'global' | string, Mount[]>
24
35