Skip to content

Commit e33190e

Browse files
authored
feat(spec)!: reset Application contract to v1alpha1 (#203)
* feat(spec)!: reset Application contract to v1alpha1 Adopt the Kubernetes-shaped onebox.run/v1alpha1 resource, publish and embed its schema, migrate all fixtures and docs, and remove the v1 compatibility surface. BREAKING CHANGE: onebox.run/v1, snake_case declarative fields, lowercase enum values, root workload shorthand, aliases, and fallbacks are no longer accepted. * fix(spec): enforce v1alpha1 contract edges * docs: update remaining v1alpha1 schema links
1 parent 12b7840 commit e33190e

159 files changed

Lines changed: 10311 additions & 9695 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,20 @@ Starting from an existing Compose project, `ob init` writes the first draft.
7575
This is a complete single-workload project:
7676

7777
```yaml
78-
# yaml-language-server: $schema=https://raw.githubusercontent.com/labstack/onebox/main/docs/onebox.run-v1.schema.json
79-
api_version: onebox.run/v1
80-
app: shop
81-
environments:
82-
production:
83-
server: root@203.0.113.10
84-
image: ghcr.io/acme/shop:1.4.0
85-
routes:
86-
- {hostname: shop.example.com, port: 3000}
78+
# yaml-language-server: $schema=https://onebox.run/schemas/application/v1alpha1/application.schema.json
79+
apiVersion: onebox.run/v1alpha1
80+
kind: Application
81+
metadata:
82+
name: shop
83+
spec:
84+
environments:
85+
production:
86+
server: root@203.0.113.10
87+
workloads:
88+
web:
89+
image: ghcr.io/acme/shop:1.4.0
90+
routes:
91+
- {hostname: shop.example.com, port: 3000}
8792
```
8893
8994
It derives the application container, Traefik routing and TLS, release layout

0 commit comments

Comments
 (0)