@varde-flyt/vfac 0.12.0 → 0.14.0
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/README.md +17 -3
- package/dist/vfac.mjs +993 -326
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,8 +80,18 @@ vfac get operation <operationId>
|
|
|
80
80
|
vfac get product-instance <productInstanceId>
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
+
Lost the operation id — a terminal that closed, a CI log nobody kept? The
|
|
84
|
+
operations of a resource are listed newest first, one page at a time; the
|
|
85
|
+
`--cursor` for older ones is printed, and is `nextCursor` in JSON:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
vfac get operations --resource <productInstanceId>
|
|
89
|
+
```
|
|
90
|
+
|
|
83
91
|
Secrets are supplied per apply and never belong in the manifest — a manifest is a
|
|
84
|
-
file you commit.
|
|
92
|
+
file you commit. A value for a setting the Product declares secret is refused
|
|
93
|
+
at every door by the platform, and by `vfac` before the file is sent when the
|
|
94
|
+
file pins the release the catalog currently offers. **Plan the run that sets one with the same `--secret` inputs the
|
|
85
95
|
apply will carry**: `plan` takes the flag exactly as `apply` does, and without it
|
|
86
96
|
the plan describes a different request.
|
|
87
97
|
|
|
@@ -182,7 +192,9 @@ spec:
|
|
|
182
192
|
|
|
183
193
|
`vfac manifest init` names the exact property for every dependency you have to
|
|
184
194
|
choose, and `vfac plan` prints the connections an apply would establish before
|
|
185
|
-
you approve it.
|
|
195
|
+
you approve it. A resource in this Project that cannot provide the connection is
|
|
196
|
+
refused on `spec.dependencyBindings.<dependency-key>`, saying why; one named in
|
|
197
|
+
another Project answers only that it could not be used. The dependency key comes from the Product, not from you —
|
|
186
198
|
`vfac product show <productId>` lists every dependency with its key, its
|
|
187
199
|
capability, and whether a setting is what turns it on.
|
|
188
200
|
|
|
@@ -214,6 +226,7 @@ vfac product show <productId> --output json
|
|
|
214
226
|
vfac plan -f resource.yaml --output json
|
|
215
227
|
vfac get product-instance <productInstanceId> --output json
|
|
216
228
|
vfac get product-instances --output json
|
|
229
|
+
vfac get operations --resource <productInstanceId> --output json
|
|
217
230
|
```
|
|
218
231
|
|
|
219
232
|
**Decide from the action, not from the exit code.** A plan that REFUSES still
|
|
@@ -235,8 +248,9 @@ The envelopes are stable at the top level:
|
|
|
235
248
|
|
|
236
249
|
| Command | Answers with |
|
|
237
250
|
| --- | --- |
|
|
238
|
-
| `vfac get product-instance <id> --output json` | `resource` and `lifecycle` — `status`, `outputs` and `conditions` are under `resource` |
|
|
251
|
+
| `vfac get product-instance <id> --output json` | `resource` and `lifecycle` — `status`, `outputs` and `conditions` are under `resource`; each condition carries `state` and `freshness` (`FRESH`, or `STALE` when not re-confirmed recently), and `lifecycle.refused[]` carries a `reason` |
|
|
239
252
|
| `vfac get product-instances --output json` | `productInstances` and `nextCursor` |
|
|
253
|
+
| `vfac get operations --resource <productInstanceId> --output json` | `operations` and `nextCursor` — one page, newest first, and `nextCursor` reads older ones; each line is `operationId`, `type`, `status`, `phase` and its timestamps |
|
|
240
254
|
|
|
241
255
|
`vfac guide` is authoritative for what is inside them.
|
|
242
256
|
|