Skip to content

Commit 8342ebb

Browse files
committed
v1 - Add support for Step display name
1 parent 5351c12 commit 8342ebb

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

config/300-crds/300-task.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6624,6 +6624,11 @@ spec:
66246624
- type: integer
66256625
- type: string
66266626
x-kubernetes-int-or-string: true
6627+
displayName:
6628+
description: |-
6629+
DisplayName is a user-facing name of the step that may be
6630+
used to populate a UI.
6631+
type: string
66276632
env:
66286633
description: |-
66296634
List of environment variables to set in the Step.

config/300-crds/300-taskrun.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6263,6 +6263,11 @@ spec:
62636263
- type: integer
62646264
- type: string
62656265
x-kubernetes-int-or-string: true
6266+
displayName:
6267+
description: |-
6268+
DisplayName is a user-facing name of the step that may be
6269+
used to populate a UI.
6270+
type: string
62666271
env:
62676272
description: |-
62686273
List of environment variables to set in the Step.

pkg/apis/pipeline/v1/container_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ type Step struct {
2525
// Name of the Step specified as a DNS_LABEL.
2626
// Each Step in a Task must have a unique name.
2727
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
28+
// DisplayName is a user-facing name of the step that may be
29+
// used to populate a UI.
30+
// +optional
31+
DisplayName string `json:"displayName,omitempty"`
2832
// Docker image name.
2933
// More info: https://kubernetes.io/docs/concepts/containers/images
3034
// +optional

pkg/apis/pipeline/v1/openapi_generated.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/pipeline/v1/swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,10 @@
14931493
"default": {},
14941494
"$ref": "#/definitions/v1.ResourceRequirements"
14951495
},
1496+
"displayName": {
1497+
"description": "DisplayName is a user-facing name of the step that may be used to populate a UI.",
1498+
"type": "string"
1499+
},
14961500
"env": {
14971501
"description": "List of environment variables to set in the Step. Cannot be updated.",
14981502
"type": "array",

0 commit comments

Comments
 (0)