Skip to content
Open
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
88 changes: 88 additions & 0 deletions v0/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"$ref" : "#/definitions/template/workspace/template"
}, {
"$ref" : "#/definitions/template/notification/template"
}, {
"$ref" : "#/definitions/template/aiworkflow/template"
} ]
}
},
Expand Down Expand Up @@ -1348,6 +1350,92 @@
}
}
}
},
"aiworkflow" : {
"template" : {
"type" : "object",
"title" : "template",
"required" : [ "identifier", "name", "type", "versionLabel", "spec" ],
"properties" : {
"identifier" : {
"type" : "string",
"pattern" : "^[a-zA-Z_][0-9a-zA-Z_]{0,127}$"
},
"name" : {
"type" : "string",
"pattern" : "^[a-zA-Z_0-9-.][-0-9a-zA-Z_\\s.]{0,127}$"
},
"type" : {
"type" : "string",
"enum" : [ "AIWorkflow" ]
},
"versionLabel" : {
"type" : "string",
"pattern" : "^[0-9a-zA-Z][^\\s/&]{0,127}$"
},
"spec" : {
"oneOf" : [ {
"$ref" : "#/definitions/template/aiworkflow/notificationSpec"
} ]
},
"tags" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
}
}
},
"notificationSpec" : {
"title" : "notificationSpec",
"type" : "object",
"required" : [ "model", "serverUrl", "registryAuthServer", "clientIdRef", "clientSecretRef", "appSlug" ],
"properties" : {
"model" : {
"type" : "string"
},
"serverUrl" : {
"type" : "string"
},
"registryAuthServer" : {
"type" : "string"
},
"clientIdRef" : {
"type" : "string"
},
"clientSecretRef" : {
"type" : "string"
},
"appSlug" : {
"type" : "string"
},
"body" : {
"$ref" : "#/definitions/template/aiworkflow/aiWorkflowBody"
},
"variables" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"$ref" : "#/definitions/pipeline/common/NumberNGVariable"
}, {
"$ref" : "#/definitions/pipeline/common/SecretNGVariable"
}, {
"$ref" : "#/definitions/pipeline/common/StringNGVariable"
} ]
}
}
}
},
"aiWorkflowBody" : {
"title" : "aiWorkflowBody",
"type" : "object",
"required" : [ "history" ],
"properties" : {
"history" : {
"type" : "string"
}
}
}
}
},
"pipeline" : {
Expand Down
31 changes: 31 additions & 0 deletions v0/template/aiworkflow/aiworkflow_spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
title: notificationSpec
type: object
required:
- model
- serverUrl
- registryAuthServer
- clientIdRef
- clientSecretRef
- appSlug
properties:
model:
type: string
serverUrl:
type: string
registryAuthServer:
type: string
clientIdRef:
type: string
clientSecretRef:
type: string
appSlug:
type: string
body:
"$ref": "./aiworkflow_template_body.yaml"
variables:
type: array
items:
oneOf:
- $ref: ../../pipeline/common/number-ng-variable.yaml
- $ref: ../../pipeline/common/secret-ng-variable.yaml
- $ref: ../../pipeline/common/string-ng-variable.yaml
7 changes: 7 additions & 0 deletions v0/template/aiworkflow/aiworkflow_template_body.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: aiWorkflowBody
type: object
required:
- history
properties:
history:
type: string
29 changes: 29 additions & 0 deletions v0/template/aiworkflow/template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
type: object
title: template
required:
- identifier
- name
- type
- versionLabel
- spec
properties:
identifier:
type: string
pattern: "^[a-zA-Z_][0-9a-zA-Z_]{0,127}$"
name:
type: string
pattern: "^[a-zA-Z_0-9-.][-0-9a-zA-Z_\\s.]{0,127}$"
type:
type: string
enum:
- AIWorkflow
versionLabel:
type: string
pattern: "^[0-9a-zA-Z][^\\s/&]{0,127}$"
spec:
oneOf:
- "$ref" : ./aiworkflow_spec.yaml
tags:
type: object
additionalProperties:
type: string
1 change: 1 addition & 0 deletions v0/template/template_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ template_types:
- ./customdeployment/template.yaml
- ./workspace/template.yaml
- ./notification/template.yaml
- ./aiworkflow/template.yaml

step_template_types:
- ../pipeline/steps/cd/asg-blue-green-deploy-step-node.yaml
Expand Down