@dmgnr/kuber 1.1.0 → 1.2.1
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 +22 -1
- package/dist/index.js +85 -85
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/README.md
CHANGED
|
@@ -67,6 +67,9 @@ bun run index.ts start
|
|
|
67
67
|
bun run index.ts stop
|
|
68
68
|
bun run index.ts restart
|
|
69
69
|
bun run index.ts db ls
|
|
70
|
+
bun run index.ts s3 ls
|
|
71
|
+
bun run index.ts s3 creds app
|
|
72
|
+
bun run index.ts s3 ui app
|
|
70
73
|
```
|
|
71
74
|
|
|
72
75
|
All commands accept `--config` to use a configuration file other than
|
|
@@ -102,6 +105,9 @@ For a permanent setup, write the generated script to a file and source it from y
|
|
|
102
105
|
- `exec <deployment> <command...>`: execute a command inside a running deployment pod
|
|
103
106
|
- `db ls`: list managed Postgres claims declared in the current Compose file
|
|
104
107
|
- `db creds <service>`: print the generated connection details for a managed Postgres claim
|
|
108
|
+
- `s3 ls`: list managed S3 claims declared in the current Compose file
|
|
109
|
+
- `s3 creds <service>`: print all generated S3 environment variables for a service
|
|
110
|
+
- `s3 ui <service>`: print the Garage UI object-browser URL for a service bucket
|
|
105
111
|
|
|
106
112
|
## Configuration
|
|
107
113
|
|
|
@@ -137,7 +143,7 @@ export default {
|
|
|
137
143
|
|
|
138
144
|
Operational defaults:
|
|
139
145
|
|
|
140
|
-
- `project`: current working directory name
|
|
146
|
+
- `project`: Compose top-level `name`, falling back to the current working directory name
|
|
141
147
|
- `composeFile`: the first recognized Compose filename in the working directory
|
|
142
148
|
- `registry`: `registry.neko-piranha.ts.net`
|
|
143
149
|
- `builders.amd64`: `kuber@astral-th`
|
|
@@ -145,6 +151,9 @@ Operational defaults:
|
|
|
145
151
|
- `builders.remoteRoot`: `kuber-build`
|
|
146
152
|
- `rolloutTimeoutMs`: `300000`
|
|
147
153
|
|
|
154
|
+
Project-name precedence is `.kuberrc.ts project`, Compose top-level `name`, then
|
|
155
|
+
the current working directory name.
|
|
156
|
+
|
|
148
157
|
Configuration hooks can be synchronous or asynchronous and receive mutable
|
|
149
158
|
values:
|
|
150
159
|
|
|
@@ -255,6 +264,18 @@ The Garage operator generates the credentials. `kuber` reads its generated Secre
|
|
|
255
264
|
|
|
256
265
|
One service can declare both `postgresql:...` and `s3:...`; all generated values are merged into the same service Secret. Managed Garage buckets and keys are retained by normal `down` and deleted by `down -f`.
|
|
257
266
|
|
|
267
|
+
Inspect a claim, print its generated credentials, or get its Garage UI URL:
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
kuber s3 ls
|
|
271
|
+
kuber s3 creds app
|
|
272
|
+
kuber s3 ui app
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
`s3 creds` prints `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`,
|
|
276
|
+
`AWS_ENDPOINT_URL_S3`, `AWS_REGION`, and `S3_BUCKET` as shell-style environment
|
|
277
|
+
assignments. `s3 ui` only prints the URL; it does not open a browser.
|
|
278
|
+
|
|
258
279
|
### Environment Files
|
|
259
280
|
|
|
260
281
|
`env_file` entries are read locally and turned into a Kubernetes `Secret` named `<service>-env`. Deployments then consume that secret through `envFrom`.
|