-
Notifications
You must be signed in to change notification settings - Fork 1
Add connection interface schema + types #6
base: main
Are you sure you want to change the base?
Changes from 1 commit
c98af03
90fcfb2
72f2850
ec76efc
ffd92a5
bb083d2
24a2b85
2f29045
b3f8350
763b9ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"properties": { | ||
"schema-version": { | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"type": "string", | ||
"enum": [ | ||
"connection-interface" | ||
] | ||
}, | ||
"metadata": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" | ||
}, | ||
"display-name": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "string", | ||
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" | ||
}, | ||
"picture": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"description", | ||
"version" | ||
] | ||
}, | ||
"spec": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"aws-ecs-conn", | ||
"aws-rds-conn" | ||
] | ||
}, | ||
"outputs": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"string", | ||
"integer", | ||
"secret", | ||
"json" | ||
] | ||
}, | ||
"required": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
schemaVersion: v1 | ||
kind: connection-interface | ||
metadata: | ||
name: AWS ECS CONNECTION INTERFACE | ||
description: Connection Interface for AWS ECS | ||
display-name: aws-ecs-connection-interface | ||
version: 1.0.0 | ||
picture: connection.png | ||
spec: | ||
type: aws-ecs-conn | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. O Type seria um enum fixo? |
||
outputs: | ||
- name: autoscaling_capacity_providers | ||
type: json | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vamos realmente ter atributos complexos (object e list)? Se for ter não deveríamos descrever quais são os atributos desses objetos complexos? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GuillaumeFalourd algum atualização ? |
||
- name: cluster_arn | ||
type: secret | ||
- name: cluster_capacity_providers | ||
type: json | ||
- name: cluster_id | ||
type: secret | ||
- name: cluster_name | ||
type: string |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
schemaVersion: v1 | ||
kind: connection-interface | ||
metadata: | ||
name: AWS RDS CONNECTION INTERFACE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Acho q o name e o display name estão invertidos. O name no caso tb acaba fazendo um papel de slug, caso seja necessário o usuário final referenciar escrevendo. |
||
description: Connection Interface for AWS RDS | ||
display-name: aws-rds-connection-interface | ||
version: 1.0.0 | ||
picture: connection.png | ||
spec: | ||
type: aws-rds-conn | ||
outputs: | ||
- name: type | ||
type: string | ||
- name: name | ||
type: string | ||
- name: host | ||
type: string | ||
- name: port | ||
type: string | ||
- name: user | ||
type: string | ||
- name: pass | ||
type: secret | ||
- name: policy | ||
type: secret | ||
required: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
como vamos trabalhar a questao de novos tipos? geramos uma nova versao?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GuillaumeFalourd algum atualização ?