-
Notifications
You must be signed in to change notification settings - Fork 8
/
osbuildconfig_webhook_trigger.yaml
71 lines (71 loc) · 1.9 KB
/
osbuildconfig_webhook_trigger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
openapi: 3.0.0
info:
description: OSBuild Management
version: 1.0.0
title: OSBuildManagement
contact:
name: Flotta flotta
url: https://github.com/project-flotta
email: [email protected]
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
tags:
- name: osbuilconfig
description: OSBuildConfig CRD
paths:
"/api/osbuild/v1/namespaces/{namespace}/osbuildconfig/{name}/webhooks":
post:
description: Triggering webhook builds for OSBuildConfig CRs
operationId: TriggerBuild
tags:
- osbuilconfig
parameters:
- in: path
name: namespace
description: OSBuilfConfig namespace name
required: true
schema:
type: string
- in: path
name: name
description: OSBuildConfig name
required: true
schema:
type: string
- in: header
name: secret
description: The secret value of the secret with a key named WebHookSecretKey that the webhook definition reference to. The secret ensures the uniqueness of the URL, preventing others from triggering the build
required: true
schema:
type: string
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/message-response"
"208":
description: Already Reported
"400":
description: Error
"401":
description: Unauthorized
"403":
description: Forbidden
"404":
description: Error
"500":
description: Error
components:
schemas:
message-response:
type: object
properties:
message_id:
type: string
directive:
type: string
content:
description: Content