Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add built-in and Helm storage Types, adjust validation manifests #57

Merged
merged 2 commits into from
Feb 17, 2022
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
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
}