Skip to content

Commit

Permalink
Add built-in and Helm storage Types, adjust validation manifests (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok authored Feb 17, 2022
1 parent 6b11d1b commit d7034a0
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 8 deletions.
39 changes: 39 additions & 0 deletions manifests/core/type/hub/storage/neo4j.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]
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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -65,6 +70,7 @@ spec:
capact-outputTypeInstances:
- name: testUpload
from: upload
backend: helm-storage

- name: test
inputs:
Expand Down
64 changes: 64 additions & 0 deletions manifests/type/helm/storage.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]
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
}

0 comments on commit d7034a0

Please sign in to comment.