-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jackline Mutua <[email protected]>
- Loading branch information
Showing
2 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Conventions server | ||
description: >- | ||
"a sample conventions server" | ||
version: 1.0.0 | ||
license: | ||
name: Apache-2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html' | ||
paths: | ||
/webhook: | ||
post: | ||
description: "a sample conventions server" | ||
responses: | ||
200: | ||
description: Successfully applied added pod conventions | ||
content: | ||
"application/json": | ||
schema: | ||
$ref: '#/components/schemas/PodConventionContext' | ||
400: | ||
description: Error decoding request body into PodConventionContext type | ||
500: | ||
description: Internal server error | ||
content: | ||
"application/json": | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' | ||
components: | ||
schemas: | ||
PodConventionContext: | ||
type: object | ||
properties: | ||
spec: | ||
$ref: "#/components/schemas/PodConventionContextSpec" | ||
status: | ||
$ref: "#/components/schemas/PodConventionContextStatus" | ||
PodConventionContextSpec: | ||
type: object | ||
properties: | ||
Template: | ||
$ref: "#/components/schemas/PodTemplateSpec" | ||
ImageConfig: | ||
$ref: "#/components/schemas/ImageConfig" | ||
PodConventionContextStatus: | ||
type: object | ||
properties: | ||
Template: | ||
$ref: "#/components/schemas/PodTemplateSpec" | ||
appliedConventions: | ||
description: a string array of conventions to be applied | ||
type: object | ||
example: "" | ||
ImageConfig: | ||
type: object | ||
properties: | ||
image: | ||
type: string | ||
description: a string reference to the image name and tag or associated digest | ||
boms: | ||
$ref: "#/components/schemas/BOM" | ||
config: | ||
type: object | ||
description: "a ggcrv1 config file object" | ||
BOM: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
raw: | ||
description: an array of bytes | ||
PodTemplateSpec: | ||
type: object | ||
properties: | ||
spec: | ||
type: object | ||
description: corev1 PodSpec | ||
ErrorResponse: | ||
type: object | ||
properties: | ||
error: | ||
$ref: "#/components/schemas/Error" | ||
Error: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
example: "Some unexpected error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters