Skip to content

Commit 5bcaa20

Browse files
Enumerated the possible build phase states in the comment
Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent a188c87 commit 5bcaa20

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
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": {

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)