v1.BuildConfig

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 configurations define a build process for new Docker images. There are three types of builds possible - a Docker build using a Dockerfile, a Source-to-Image build that uses a specially prepared base image that accepts source code that it can make runnable, and a custom build that can run // arbitrary Docker images as a base and accept the build parameters. Builds run on the cluster and on completion are pushed to the Docker registry specified in the “output” section. A build can be triggered via a webhook, when the base image changes, or when a user manually requests a new build be // created.

Each build created by a build configuration is numbered and refers back to its parent configuration. Multiple builds can be triggered at once. Builds that do not have “output” set can be used to test code or run a verification 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. failedBuildsHistoryLimit:
  54. nodeSelector:
  55. [string]:
  56. output:
  57. imageLabels:
  58. - name:
  59. value:
  60. pushSecret:
  61. name:
  62. to:
  63. apiVersion:
  64. fieldPath:
  65. kind:
  66. name:
  67. namespace:
  68. resourceVersion:
  69. uid:
  70. postCommit:
  71. args:
  72. - [string]:
  73. command:
  74. - [string]:
  75. script:
  76. resources:
  77. limits:
  78. [string]:
  79. requests:
  80. [string]:
  81. revision:
  82. git:
  83. author:
  84. email:
  85. name:
  86. commit:
  87. committer:
  88. email:
  89. name:
  90. message:
  91. type:
  92. runPolicy:
  93. serviceAccount:
  94. source:
  95. binary:
  96. asFile:
  97. contextDir:
  98. dockerfile:
  99. git:
  100. httpProxy:
  101. httpsProxy:
  102. noProxy:
  103. ref:
  104. uri:
  105. images:
  106. - from:
  107. - apiVersion:
  108. fieldPath:
  109. kind:
  110. name:
  111. namespace:
  112. resourceVersion:
  113. uid:
  114. paths:
  115. - destinationDir:
  116. sourcePath:
  117. pullSecret:
  118. name:
  119. secrets:
  120. - destinationDir:
  121. secret:
  122. name:
  123. sourceSecret:
  124. name:
  125. type:
  126. strategy:
  127. customStrategy:
  128. buildAPIVersion:
  129. env:
  130. - name:
  131. value:
  132. valueFrom:
  133. configMapKeyRef:
  134. key:
  135. name:
  136. optional:
  137. fieldRef:
  138. apiVersion:
  139. fieldPath:
  140. resourceFieldRef:
  141. containerName:
  142. divisor:
  143. resource:
  144. secretKeyRef:
  145. key:
  146. name:
  147. optional:
  148. exposeDockerSocket:
  149. forcePull:
  150. from:
  151. apiVersion:
  152. fieldPath:
  153. kind:
  154. name:
  155. namespace:
  156. resourceVersion:
  157. uid:
  158. pullSecret:
  159. name:
  160. secrets:
  161. - mountPath:
  162. secretSource:
  163. name:
  164. dockerStrategy:
  165. buildArgs:
  166. - name:
  167. value:
  168. valueFrom:
  169. configMapKeyRef:
  170. key:
  171. name:
  172. optional:
  173. fieldRef:
  174. apiVersion:
  175. fieldPath:
  176. resourceFieldRef:
  177. containerName:
  178. divisor:
  179. resource:
  180. secretKeyRef:
  181. key:
  182. name:
  183. optional:
  184. dockerfilePath:
  185. env:
  186. - name:
  187. value:
  188. valueFrom:
  189. configMapKeyRef:
  190. key:
  191. name:
  192. optional:
  193. fieldRef:
  194. apiVersion:
  195. fieldPath:
  196. resourceFieldRef:
  197. containerName:
  198. divisor:
  199. resource:
  200. secretKeyRef:
  201. key:
  202. name:
  203. optional:
  204. forcePull:
  205. from:
  206. apiVersion:
  207. fieldPath:
  208. kind:
  209. name:
  210. namespace:
  211. resourceVersion:
  212. uid:
  213. imageOptimizationPolicy:
  214. noCache:
  215. pullSecret:
  216. name:
  217. jenkinsPipelineStrategy:
  218. env:
  219. - name:
  220. value:
  221. valueFrom:
  222. configMapKeyRef:
  223. key:
  224. name:
  225. optional:
  226. fieldRef:
  227. apiVersion:
  228. fieldPath:
  229. resourceFieldRef:
  230. containerName:
  231. divisor:
  232. resource:
  233. secretKeyRef:
  234. key:
  235. name:
  236. optional:
  237. jenkinsfile:
  238. jenkinsfilePath:
  239. sourceStrategy:
  240. env:
  241. - name:
  242. value:
  243. valueFrom:
  244. configMapKeyRef:
  245. key:
  246. name:
  247. optional:
  248. fieldRef:
  249. apiVersion:
  250. fieldPath:
  251. resourceFieldRef:
  252. containerName:
  253. divisor:
  254. resource:
  255. secretKeyRef:
  256. key:
  257. name:
  258. optional:
  259. forcePull:
  260. from:
  261. apiVersion:
  262. fieldPath:
  263. kind:
  264. name:
  265. namespace:
  266. resourceVersion:
  267. uid:
  268. incremental:
  269. pullSecret:
  270. name:
  271. runtimeArtifacts:
  272. - destinationDir:
  273. sourcePath:
  274. runtimeImage:
  275. apiVersion:
  276. fieldPath:
  277. kind:
  278. name:
  279. namespace:
  280. resourceVersion:
  281. uid:
  282. scripts:
  283. type:
  284. successfulBuildsHistoryLimit:
  285. triggers:
  286. - bitbucket:
  287. - allowEnv:
  288. secret:
  289. generic:
  290. allowEnv:
  291. secret:
  292. github:
  293. allowEnv:
  294. secret:
  295. gitlab:
  296. allowEnv:
  297. secret:
  298. imageChange:
  299. from:
  300. apiVersion:
  301. fieldPath:
  302. kind:
  303. name:
  304. namespace:
  305. resourceVersion:
  306. uid:
  307. lastTriggeredImageID:
  308. type:
  309. status:
  310. lastVersion:

Operations

Create a BuildConfig

Create a BuildConfig

HTTP request

  1. POST /apis/build.openshift.io/v1/buildconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "BuildConfig",
  8. "apiVersion": "build.openshift.io/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/apis/build.openshift.io/v1/buildconfigs <<'EOF'
  8. {
  9. "kind": "BuildConfig",
  10. "apiVersion": "build.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.BuildConfig

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.BuildConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a BuildConfig in a namespace

Create a BuildConfig

HTTP request

  1. POST /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "BuildConfig",
  8. "apiVersion": "build.openshift.io/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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs <<'EOF'
  8. {
  9. "kind": "BuildConfig",
  10. "apiVersion": "build.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.BuildConfig

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.BuildConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get a BuildConfig in a namespace

Read the specified BuildConfig

HTTP request

  1. GET /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME

Path parameters

ParameterDescription

name

name of the BuildConfig

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.BuildConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all BuildConfigs

List or watch objects of kind BuildConfig

HTTP request

  1. GET /apis/build.openshift.io/v1/buildconfigs 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/apis/build.openshift.io/v1/buildconfigs

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.BuildConfigList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

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

Get all BuildConfigs in a namespace

List or watch objects of kind BuildConfig

HTTP request

  1. GET /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs 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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs

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.BuildConfigList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

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

Watch a BuildConfig in a namespace

Watch changes to an object of kind BuildConfig

HTTP request

  1. GET /apis/build.openshift.io/v1/watch/namespaces/$NAMESPACE/buildconfigs/$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/apis/build.openshift.io/v1/watch/namespaces/$NAMESPACE/buildconfigs/$NAME

Path parameters

ParameterDescription

name

name of the BuildConfig

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 BuildConfigs

Watch individual changes to a list of BuildConfig

HTTP request

  1. GET /apis/build.openshift.io/v1/watch/buildconfigs 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/apis/build.openshift.io/v1/watch/buildconfigs

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 BuildConfigs in a namespace

Watch individual changes to a list of BuildConfig

HTTP request

  1. GET /apis/build.openshift.io/v1/watch/namespaces/$NAMESPACE/buildconfigs 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/apis/build.openshift.io/v1/watch/namespaces/$NAMESPACE/buildconfigs

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 BuildConfig in a namespace

Replace the specified BuildConfig

HTTP request

  1. PUT /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "BuildConfig",
  8. "apiVersion": "build.openshift.io/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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME <<'EOF'
  8. {
  9. "kind": "BuildConfig",
  10. "apiVersion": "build.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.BuildConfig

Path parameters

ParameterDescription

name

name of the BuildConfig

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.BuildConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch a BuildConfig in a namespace

Partially update the specified BuildConfig

HTTP request

  1. PATCH /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the BuildConfig

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.BuildConfig

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 BuildConfig in a namespace

Delete a BuildConfig

HTTP request

  1. DELETE /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.DeleteOptions

Path parameters

ParameterDescription

name

name of the BuildConfig

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 BuildConfigs in a namespace

Delete collection of BuildConfig

HTTP request

  1. DELETE /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs 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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs

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 instantiate of a BuildConfig in a namespace

Create instantiate of a BuildRequest

HTTP request

  1. POST /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/instantiate 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": "build.openshift.io/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/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/instantiate <<'EOF'
  8. {
  9. "kind": "BuildRequest",
  10. "apiVersion": "build.openshift.io/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

Create instantiatebinary of a BuildConfig in a namespace

Connect POST requests to instantiatebinary of BinaryBuildRequestOptions

HTTP request

  1. POST /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/instantiatebinary HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/instantiatebinary

Path parameters

ParameterDescription

name

name of the BinaryBuildRequestOptions

namespace

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

Query parameters

ParameterDescription

asFile

asFile determines if the binary should be created as a file within the source rather than extracted as an archive

revision.authorEmail

revision.authorEmail of the source control user

revision.authorName

revision.authorName of the source control user

revision.commit

revision.commit is the value identifying a specific commit

revision.committerEmail

revision.committerEmail of the source control user

revision.committerName

revision.committerName of the source control user

revision.message

revision.message is the description of a specific commit

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Create webhooks of a BuildConfig in a namespace

Connect POST requests to webhooks of Build

HTTP request

  1. POST /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/webhooks HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/webhooks

Path parameters

ParameterDescription

name

name of the Build

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Create webhooks/{path} of a BuildConfig in a namespace

Connect POST requests to webhooks of Build

HTTP request

  1. POST /apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/webhooks/$PATH HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/apis/build.openshift.io/v1/namespaces/$NAMESPACE/buildconfigs/$NAME/webhooks/$PATH

Path parameters

ParameterDescription

name

name of the Build

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*