diff --git a/manifests/core/type/hub/storage/neo4j.yaml b/manifests/core/type/hub/storage/neo4j.yaml new file mode 100644 index 00000000..5e66c5ff --- /dev/null +++ b/manifests/core/type/hub/storage/neo4j.yaml @@ -0,0 +1,39 @@ +ocfVersion: 0.0.1 +revision: 0.1.0 +kind: Type +metadata: + name: neo4j + prefix: cap.core.type.hub.storage + displayName: Built-in Local Hub storage + description: Built-in Local Hub storage in which static data can be stored. + documentationURL: https://capact.io/docs + supportURL: https://capact.io + maintainers: + - email: team-dev@capact.io + name: Capact Dev Team + url: https://capact.io +spec: + jsonSchema: + value: |- + { + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "title": "The root schema for built-in Local Hub storage", + "required": [ + "acceptValue", + "contextSchema" + ], + "properties": { + "contextSchema": { + "$id": "#/properties/contextSchema", + "type": "null", + "const": null + }, + "acceptValue": { + "$id": "#/properties/acceptValue", + "type": "boolean", + "const": false + } + }, + "additionalProperties": false + } diff --git a/manifests/implementation/capactio/capact/validation/action/passing-a.yaml b/manifests/implementation/capactio/capact/validation/action/passing-a.yaml index 414b1bf2..5708c43b 100644 --- a/manifests/implementation/capactio/capact/validation/action/passing-a.yaml +++ b/manifests/implementation/capactio/capact/validation/action/passing-a.yaml @@ -6,7 +6,7 @@ metadata: name: passing-a license: name: "Apache 2.0" - displayName: Passing Capact test action + displayName: Passing Capact test action that uses default storage backend description: "" documentationURL: "https://capact.io" maintainers: @@ -25,12 +25,6 @@ spec: testUpload: uses: [] - requires: - cap.core.type.platform: - oneOf: - - name: kubernetes - revision: 0.1.0 - imports: - interfaceGroupPath: cap.interface.runner.argo alias: argo diff --git a/manifests/implementation/capactio/capact/validation/action/passing-b.yaml b/manifests/implementation/capactio/capact/validation/action/passing-b.yaml index 1781ad76..7f63dcf6 100644 --- a/manifests/implementation/capactio/capact/validation/action/passing-b.yaml +++ b/manifests/implementation/capactio/capact/validation/action/passing-b.yaml @@ -6,7 +6,7 @@ metadata: name: passing-b license: name: "Apache 2.0" - displayName: Passing Capact test action + displayName: Passing Capact test action that uses Helm storage description: "" documentationURL: "https://capact.io" maintainers: @@ -38,6 +38,11 @@ spec: - name: single-key alias: injected revision: 0.1.0 + cap.core.type.hub.storage: + allOf: + - name: cap.type.helm.storage + revision: 0.1.0 + alias: helm-storage imports: - interfaceGroupPath: cap.interface.runner.argo @@ -65,6 +70,7 @@ spec: capact-outputTypeInstances: - name: testUpload from: upload + backend: helm-storage - name: test inputs: diff --git a/manifests/type/helm/storage.yaml b/manifests/type/helm/storage.yaml new file mode 100644 index 00000000..27e9f3d7 --- /dev/null +++ b/manifests/type/helm/storage.yaml @@ -0,0 +1,64 @@ +ocfVersion: 0.0.1 +revision: 0.1.0 +kind: Type +metadata: + name: storage + prefix: cap.type.helm + displayName: Helm chart storage + description: Describes Helm storage + documentationURL: https://helm.sh/docs + supportURL: https://helm.sh + maintainers: + - email: team-dev@capact.io + name: Capact Dev Team + url: https://capact.io + +spec: + additionalRefs: + - cap.core.type.hub.storage + jsonSchema: + value: |- + { + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "title": "The root schema", + "required": [ + "url", + "contextSchema", + "acceptValue" + ], + "properties": { + "url": { + "$id": "#/properties/url", + "type": "string", + "format": "uri" + }, + "contextSchema": { + "const": { + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "required": [ + "name", + "namespace" + ], + "properties": { + "name": { + "$id": "#/properties/context/properties/name", + "type": "string" + }, + "namespace": { + "$id": "#/properties/context/properties/namespace", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "acceptValue": { + "$id": "#/properties/acceptValue", + "type": "boolean", + "const": true + } + }, + "additionalProperties": false + }