v1.Build

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

Description

Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the execution and a reference to the Pod which executed the build.

Object Schema

Expand or mouse-over a field for more information about it.

  1. apiVersion:
  2. kind:
  3. metadata:
  4. annotations:
  5. [string]:
  6. clusterName:
  7. creationTimestamp:
  8. deletionGracePeriodSeconds:
  9. deletionTimestamp:
  10. finalizers:
  11. - [string]:
  12. generateName:
  13. generation:
  14. initializers:
  15. pending:
  16. - name:
  17. result:
  18. apiVersion:
  19. code:
  20. details:
  21. causes:
  22. - field:
  23. message:
  24. reason:
  25. group:
  26. kind:
  27. name:
  28. retryAfterSeconds:
  29. uid:
  30. kind:
  31. message:
  32. metadata:
  33. resourceVersion:
  34. selfLink:
  35. reason:
  36. status:
  37. labels:
  38. [string]:
  39. name:
  40. namespace:
  41. ownerReferences:
  42. - apiVersion:
  43. blockOwnerDeletion:
  44. controller:
  45. kind:
  46. name:
  47. uid:
  48. resourceVersion:
  49. selfLink:
  50. uid:
  51. spec:
  52. completionDeadlineSeconds:
  53. nodeSelector:
  54. [string]:
  55. output:
  56. imageLabels:
  57. - name:
  58. value:
  59. pushSecret:
  60. name:
  61. to:
  62. apiVersion:
  63. fieldPath:
  64. kind:
  65. name:
  66. namespace:
  67. resourceVersion:
  68. uid:
  69. postCommit:
  70. args:
  71. - [string]:
  72. command:
  73. - [string]:
  74. script:
  75. resources:
  76. limits:
  77. [string]:
  78. requests:
  79. [string]:
  80. revision:
  81. git:
  82. author:
  83. email:
  84. name:
  85. commit:
  86. committer:
  87. email:
  88. name:
  89. message:
  90. type:
  91. serviceAccount:
  92. source:
  93. binary:
  94. asFile:
  95. contextDir:
  96. dockerfile:
  97. git:
  98. httpProxy:
  99. httpsProxy:
  100. noProxy:
  101. ref:
  102. uri:
  103. images:
  104. - from:
  105. - apiVersion:
  106. fieldPath:
  107. kind:
  108. name:
  109. namespace:
  110. resourceVersion:
  111. uid:
  112. paths:
  113. - destinationDir:
  114. sourcePath:
  115. pullSecret:
  116. name:
  117. secrets:
  118. - destinationDir:
  119. secret:
  120. name:
  121. sourceSecret:
  122. name:
  123. type:
  124. strategy:
  125. customStrategy:
  126. buildAPIVersion:
  127. env:
  128. - name:
  129. value:
  130. valueFrom:
  131. configMapKeyRef:
  132. key:
  133. name:
  134. optional:
  135. fieldRef:
  136. apiVersion:
  137. fieldPath:
  138. resourceFieldRef:
  139. containerName:
  140. divisor:
  141. resource:
  142. secretKeyRef:
  143. key:
  144. name:
  145. optional:
  146. exposeDockerSocket:
  147. forcePull:
  148. from:
  149. apiVersion:
  150. fieldPath:
  151. kind:
  152. name:
  153. namespace:
  154. resourceVersion:
  155. uid:
  156. pullSecret:
  157. name:
  158. secrets:
  159. - mountPath:
  160. secretSource:
  161. name:
  162. dockerStrategy:
  163. buildArgs:
  164. - name:
  165. value:
  166. valueFrom:
  167. configMapKeyRef:
  168. key:
  169. name:
  170. optional:
  171. fieldRef:
  172. apiVersion:
  173. fieldPath:
  174. resourceFieldRef:
  175. containerName:
  176. divisor:
  177. resource:
  178. secretKeyRef:
  179. key:
  180. name:
  181. optional:
  182. dockerfilePath:
  183. env:
  184. - name:
  185. value:
  186. valueFrom:
  187. configMapKeyRef:
  188. key:
  189. name:
  190. optional:
  191. fieldRef:
  192. apiVersion:
  193. fieldPath:
  194. resourceFieldRef:
  195. containerName:
  196. divisor:
  197. resource:
  198. secretKeyRef:
  199. key:
  200. name:
  201. optional:
  202. forcePull:
  203. from:
  204. apiVersion:
  205. fieldPath:
  206. kind:
  207. name:
  208. namespace:
  209. resourceVersion:
  210. uid:
  211. imageOptimizationPolicy:
  212. noCache:
  213. pullSecret:
  214. name:
  215. jenkinsPipelineStrategy:
  216. env:
  217. - name:
  218. value:
  219. valueFrom:
  220. configMapKeyRef:
  221. key:
  222. name:
  223. optional:
  224. fieldRef:
  225. apiVersion:
  226. fieldPath:
  227. resourceFieldRef:
  228. containerName:
  229. divisor:
  230. resource:
  231. secretKeyRef:
  232. key:
  233. name:
  234. optional:
  235. jenkinsfile:
  236. jenkinsfilePath:
  237. sourceStrategy:
  238. env:
  239. - name:
  240. value:
  241. valueFrom:
  242. configMapKeyRef:
  243. key:
  244. name:
  245. optional:
  246. fieldRef:
  247. apiVersion:
  248. fieldPath:
  249. resourceFieldRef:
  250. containerName:
  251. divisor:
  252. resource:
  253. secretKeyRef:
  254. key:
  255. name:
  256. optional:
  257. forcePull:
  258. from:
  259. apiVersion:
  260. fieldPath:
  261. kind:
  262. name:
  263. namespace:
  264. resourceVersion:
  265. uid:
  266. incremental:
  267. pullSecret:
  268. name:
  269. runtimeArtifacts:
  270. - destinationDir:
  271. sourcePath:
  272. runtimeImage:
  273. apiVersion:
  274. fieldPath:
  275. kind:
  276. name:
  277. namespace:
  278. resourceVersion:
  279. uid:
  280. scripts:
  281. type:
  282. triggeredBy:
  283. - bitbucketWebHook:
  284. - revision:
  285. - git:
  286. - author:
  287. - email:
  288. name:
  289. commit:
  290. committer:
  291. email:
  292. name:
  293. message:
  294. type:
  295. secret:
  296. genericWebHook:
  297. revision:
  298. git:
  299. author:
  300. email:
  301. name:
  302. commit:
  303. committer:
  304. email:
  305. name:
  306. message:
  307. type:
  308. secret:
  309. githubWebHook:
  310. revision:
  311. git:
  312. author:
  313. email:
  314. name:
  315. commit:
  316. committer:
  317. email:
  318. name:
  319. message:
  320. type:
  321. secret:
  322. gitlabWebHook:
  323. revision:
  324. git:
  325. author:
  326. email:
  327. name:
  328. commit:
  329. committer:
  330. email:
  331. name:
  332. message:
  333. type:
  334. secret:
  335. imageChangeBuild:
  336. fromRef:
  337. apiVersion:
  338. fieldPath:
  339. kind:
  340. name:
  341. namespace:
  342. resourceVersion:
  343. uid:
  344. imageID:
  345. message:
  346. status:
  347. cancelled:
  348. completionTimestamp:
  349. config:
  350. apiVersion:
  351. fieldPath:
  352. kind:
  353. name:
  354. namespace:
  355. resourceVersion:
  356. uid:
  357. duration:
  358. logSnippet:
  359. message:
  360. output:
  361. to:
  362. imageDigest:
  363. outputDockerImageReference:
  364. phase:
  365. reason:
  366. stages:
  367. - durationMilliseconds:
  368. name:
  369. startTime:
  370. steps:
  371. - durationMilliseconds:
  372. name:
  373. startTime:
  374. startTimestamp:

Operations

Create a Build

Create a Build

HTTP request

  1. POST /oapi/v1/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Build",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/builds <<'EOF'
  8. {
  9. "kind": "Build",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Build

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.Build

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a Build in a namespace

Create a Build

HTTP request

  1. POST /oapi/v1/namespaces/$NAMESPACE/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Build",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds <<'EOF'
  8. {
  9. "kind": "Build",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Build

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.Build

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get a Build in a namespace

Read the specified Build

HTTP request

  1. GET /oapi/v1/namespaces/$NAMESPACE/builds/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME

Path parameters

ParameterDescription

name

name of the Build

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

exact

Should the export be exact. Exact export maintains cluster-specific fields like ‘Namespace’.

export

Should this value be exported. Export strips fields that a user can not specify.

Responses

HTTP CodeSchema

200 OK

v1.Build

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all Builds

List or watch objects of kind Build

HTTP request

  1. GET /oapi/v1/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/builds

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.BuildList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Get all Builds in a namespace

List or watch objects of kind Build

HTTP request

  1. GET /oapi/v1/namespaces/$NAMESPACE/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.BuildList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch a Build in a namespace

Watch changes to an object of kind Build

HTTP request

  1. GET /oapi/v1/watch/namespaces/$NAMESPACE/builds/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/watch/namespaces/$NAMESPACE/builds/$NAME

Path parameters

ParameterDescription

name

name of the Build

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch all Builds

Watch individual changes to a list of Build

HTTP request

  1. GET /oapi/v1/watch/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/watch/builds

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch all Builds in a namespace

Watch individual changes to a list of Build

HTTP request

  1. GET /oapi/v1/watch/namespaces/$NAMESPACE/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/watch/namespaces/$NAMESPACE/builds

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Update a Build in a namespace

Replace the specified Build

HTTP request

  1. PUT /oapi/v1/namespaces/$NAMESPACE/builds/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Build",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME <<'EOF'
  8. {
  9. "kind": "Build",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Build

Path parameters

ParameterDescription

name

name of the Build

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.Build

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch a Build in a namespace

Partially update the specified Build

HTTP request

  1. PATCH /oapi/v1/namespaces/$NAMESPACE/builds/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Build

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.Build

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Delete a Build in a namespace

Delete a Build

HTTP request

  1. DELETE /oapi/v1/namespaces/$NAMESPACE/builds/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X DELETE \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.DeleteOptions

Path parameters

ParameterDescription

name

name of the Build

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

gracePeriodSeconds

The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.

orphanDependents

Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both.

propagationPolicy

Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.

Responses

HTTP CodeSchema

200 OK

v1.Status

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Delete all Builds in a namespace

Delete collection of Build

HTTP request

  1. DELETE /oapi/v1/namespaces/$NAMESPACE/builds HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X DELETE \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.Status

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create clone of a Build in a namespace

Create clone of a BuildRequest

HTTP request

  1. POST /oapi/v1/namespaces/$NAMESPACE/builds/$NAME/clone HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "BuildRequest",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME/clone <<'EOF'
  8. {
  9. "kind": "BuildRequest",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.BuildRequest

Path parameters

ParameterDescription

name

name of the BuildRequest

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.BuildRequest

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update details of a Build in a namespace

Replace details of the specified Build

HTTP request

  1. PUT /oapi/v1/namespaces/$NAMESPACE/builds/$NAME/details HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Build",
  8. "apiVersion": "v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME/details <<'EOF'
  8. {
  9. "kind": "Build",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Build

Path parameters

ParameterDescription

name

name of the Build

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.Build

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get log of a Build in a namespace

Read log of the specified BuildLog

HTTP request

  1. GET /oapi/v1/namespaces/$NAMESPACE/builds/$NAME/log HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/builds/$NAME/log

Path parameters

ParameterDescription

name

name of the BuildLog

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

container

cointainer for which to stream logs. Defaults to only container if there is one container in the pod.

follow

follow if true indicates that the build log should be streamed until the build terminates.

limitBytes

limitBytes, If set, is the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.

nowait

noWait if true causes the call to return immediately even if the build is not available yet. Otherwise the server will wait until the build has started.

pretty

If ‘true’, then the output is pretty printed.

previous

previous returns previous build logs. Defaults to false.

sinceSeconds

sinceSeconds is a relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.

tailLines

tailLines, If set, is the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime

timestamps

timestamps, If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.

version

version of the build for which to view logs.

Responses

HTTP CodeSchema

200 OK

v1.BuildLog

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf