Skip to content

Commit 201ba3f

Browse files
author
OpenShift Bot
authored
Merge pull request #13661 from stevekuznetsov/skuznets/build-phase-doc
Merged by openshift-bot
2 parents 53c0830 + 5bcaa20 commit 201ba3f

9 files changed

+12
-11
lines changed

api/protobuf-spec/github_com_openshift_origin_pkg_build_api_v1.proto

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/swagger-spec/oapi-v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24357,7 +24357,7 @@
2435724357
"properties": {
2435824358
"phase": {
2435924359
"type": "string",
24360-
"description": "phase is the point in the build lifecycle."
24360+
"description": "phase is the point in the build lifecycle. Possible values are \"New\", \"Pending\", \"Running\", \"Complete\", \"Failed\", \"Error\", and \"Cancelled\"."
2436124361
},
2436224362
"cancelled": {
2436324363
"type": "boolean",

api/swagger-spec/openshift-openapi-spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68293,7 +68293,7 @@
6829368293
"type": "string"
6829468294
},
6829568295
"phase": {
68296-
"description": "phase is the point in the build lifecycle.",
68296+
"description": "phase is the point in the build lifecycle. Possible values are \"New\", \"Pending\", \"Running\", \"Complete\", \"Failed\", \"Error\", and \"Cancelled\".",
6829768297
"type": "string"
6829868298
},
6829968299
"reason": {

hack/update-generated-completions.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
66

7-
# ensure we have the latest compiled binaries
8-
"${OS_ROOT}/hack/build-go.sh"
9-
107
platform="$(os::build::host_platform)"
118
if [[ "${platform}" != "linux/amd64" ]]; then
129
os::log::warning "Generating completions on ${platform} may not be identical to running on linux/amd64 due to conditional compilation."

pkg/build/api/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ type ImageChangeCause struct {
228228

229229
// BuildStatus contains the status of a build
230230
type BuildStatus struct {
231-
// Phase is the point in the build lifecycle.
231+
// Phase is the point in the build lifecycle. Possible values are
232+
// "New", "Pending", "Running", "Complete", "Failed", "Error", and "Cancelled".
232233
Phase BuildPhase
233234

234235
// Cancelled describes if a cancel event was triggered for the build.

pkg/build/api/v1/generated.proto

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/build/api/v1/swagger_doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (BuildSpec) SwaggerDoc() map[string]string {
191191

192192
var map_BuildStatus = map[string]string{
193193
"": "BuildStatus contains the status of a build",
194-
"phase": "phase is the point in the build lifecycle.",
194+
"phase": "phase is the point in the build lifecycle. Possible values are \"New\", \"Pending\", \"Running\", \"Complete\", \"Failed\", \"Error\", and \"Cancelled\".",
195195
"cancelled": "cancelled describes if a cancel event was triggered for the build.",
196196
"reason": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.",
197197
"message": "message is a human-readable message indicating details about why the build has this status.",

pkg/build/api/v1/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ type ImageChangeCause struct {
170170

171171
// BuildStatus contains the status of a build
172172
type BuildStatus struct {
173-
// phase is the point in the build lifecycle.
173+
// phase is the point in the build lifecycle. Possible values are
174+
// "New", "Pending", "Running", "Complete", "Failed", "Error", and "Cancelled".
174175
Phase BuildPhase `json:"phase" protobuf:"bytes,1,opt,name=phase,casttype=BuildPhase"`
175176

176177
// cancelled describes if a cancel event was triggered for the build.

pkg/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8569,7 +8569,7 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
85698569
Properties: map[string]spec.Schema{
85708570
"phase": {
85718571
SchemaProps: spec.SchemaProps{
8572-
Description: "phase is the point in the build lifecycle.",
8572+
Description: "phase is the point in the build lifecycle. Possible values are \"New\", \"Pending\", \"Running\", \"Complete\", \"Failed\", \"Error\", and \"Cancelled\".",
85738573
Type: []string{"string"},
85748574
Format: "",
85758575
},

0 commit comments

Comments
 (0)