@toa.io/operations 1.0.0-alpha.273 → 1.0.0-alpha.276

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.276](https://github.com/toa-io/toa/compare/v1.0.0-alpha.275...v1.0.0-alpha.276) (2026-09-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **operations:** let a deployment state that it has no probe ([477b483](https://github.com/toa-io/toa/commit/477b483560cf2464d486a78e432f8e9b47f011dd))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.0.0-alpha.274](https://github.com/toa-io/toa/compare/v1.0.0-alpha.273...v1.0.0-alpha.274) (2026-09-02)
18
+
19
+ **Note:** Version bump only for package @toa.io/operations
20
+
21
+
22
+
23
+
24
+
6
25
  # [1.0.0-alpha.273](https://github.com/toa-io/toa/compare/v1.0.0-alpha.272...v1.0.0-alpha.273) (2026-09-02)
7
26
 
8
27
  **Note:** Version bump only for package @toa.io/operations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/operations",
3
- "version": "1.0.0-alpha.273",
3
+ "version": "1.0.0-alpha.276",
4
4
  "description": "Toa Deployment",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@toa.io/generic": "1.0.0-alpha.273",
31
- "@toa.io/norm": "1.0.0-alpha.273",
31
+ "@toa.io/norm": "1.0.0-alpha.274",
32
32
  "execa": "5.1.1",
33
33
  "fs-extra": "11.1.1",
34
34
  "js-yaml": "4.3.1"
35
35
  },
36
- "gitHead": "ad3284850ece95ffd5325fd0995707fc144c9c3d"
36
+ "gitHead": "6f81af829c7bf8a2db5a409f3d60ea40d15583ef"
37
37
  }
@@ -59,3 +59,4 @@ it('should reject an ingress without a port', () => {
59
59
  expect(() => services(list, {}, undefined, { hosts: ['api.dev'] }))
60
60
  .toThrow("Service 'group-one' declares an ingress, but no port")
61
61
  })
62
+
@@ -132,6 +132,10 @@ function unit (context, dependency) {
132
132
  if (service.port !== undefined)
133
133
  (mono.backends ??= []).push({ port: service.port, path: service.ingress?.path ?? '/' })
134
134
 
135
+ // one Service fronts every backend, so its annotations are the union
136
+ if (service.annotations !== undefined)
137
+ mono.annotations = Object.assign(mono.annotations ?? {}, service.annotations)
138
+
135
139
  if (service.ingress !== undefined) {
136
140
  const { path, hosts, ...ingress } = service.ingress
137
141
 
@@ -116,6 +116,10 @@ apiVersion: v1
116
116
  kind: Service
117
117
  metadata:
118
118
  name: mono
119
+ {{- if .annotations }}
120
+ annotations:
121
+ {{ toYaml .annotations | indent 4 }}
122
+ {{- end }}
119
123
  spec:
120
124
  type: ClusterIP
121
125
  selector:
@@ -88,6 +88,10 @@ apiVersion: v1
88
88
  kind: Service
89
89
  metadata:
90
90
  name: extension-{{ .name }}
91
+ {{- if .annotations }}
92
+ annotations:
93
+ {{ toYaml .annotations | indent 4 }}
94
+ {{- end }}
91
95
  spec:
92
96
  type: ClusterIP
93
97
  selector:
@@ -11,6 +11,9 @@ declare namespace toa.deployment {
11
11
  interface Service extends _deployment.Deployable {
12
12
  port: number
13
13
  ingress?: Ingress
14
+
15
+ /** Annotations for the Service itself, as opposed to `ingress.annotations`. */
16
+ annotations?: object
14
17
  }
15
18
 
16
19
  }
@@ -7,6 +7,8 @@ export interface Service {
7
7
  version: string
8
8
  port?: number
9
9
  ingress?: Ingress
10
+ /** Annotations for the Service itself, as opposed to `ingress.annotations`. */
11
+ annotations?: object
10
12
  resources?: Resources
11
13
  variables?: Variable[]
12
14
  components?: string[]