Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/flui-spec-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flui-cloud/spec",
"version": "0.1.0",
"version": "0.2.0",
"description": "Open specification, JSON Schema and TypeScript types for the flui.yaml application manifest.",
"license": "Apache-2.0",
"homepage": "https://github.com/flui-cloud/flui-spec",
Expand Down
22 changes: 22 additions & 0 deletions packages/flui-spec-js/schemas/catalog-app.v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@
"$ref": "#/definitions/volume"
}
},
"persistence": {
"$ref": "#/definitions/persistence"
},
"env": {
"type": "array",
"items": {
Expand Down Expand Up @@ -280,6 +283,9 @@
"$ref": "#/definitions/volume"
}
},
"persistence": {
"$ref": "#/definitions/persistence"
},
"env": {
"type": "array",
"items": {
Expand Down Expand Up @@ -383,6 +389,9 @@
"$ref": "#/definitions/volume"
}
},
"persistence": {
"$ref": "#/definitions/persistence"
},
"env": {
"type": "array",
"items": {
Expand Down Expand Up @@ -514,6 +523,19 @@
}
}
},
"persistence": {
"type": "object",
"required": [
"scope"
],
"additionalProperties": false,
"properties": {
"scope": {
"type": "string",
"enum": ["shared", "dedicated"]
}
}
},
"envVar": {
"type": "object",
"required": [
Expand Down
9 changes: 9 additions & 0 deletions packages/flui-spec-js/src/types/catalog-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,18 @@ export type CatalogSpec =

export type CatalogExposure = 'public' | 'internal';

export type CatalogPersistenceScope = 'shared' | 'dedicated';

export interface CatalogPersistence {
scope: CatalogPersistenceScope;
}

export interface CatalogSpecStandalone {
type: CatalogAppType.STANDALONE;
image: CatalogImageSource;
ports: CatalogPort[];
volumes?: CatalogVolume[];
persistence?: CatalogPersistence;
env: CatalogEnvVar[];
resources: CatalogResources;
scaling: CatalogScaling;
Expand Down Expand Up @@ -89,6 +96,7 @@ export interface CatalogSpecBuildingBlock {
image: CatalogImageSource;
ports: CatalogPort[];
volumes?: CatalogVolume[];
persistence?: CatalogPersistence;
env: CatalogEnvVar[];
resources: CatalogResources;
scaling: CatalogScaling;
Expand Down Expand Up @@ -136,6 +144,7 @@ export interface CatalogComponent {
image: CatalogImageSource;
ports?: CatalogPort[];
volumes?: CatalogVolume[];
persistence?: CatalogPersistence;
env: CatalogEnvVar[];
resources: CatalogResources;
scaling: CatalogScaling;
Expand Down
Loading