Skip to content

Commit fe8cd47

Browse files
committed
v1beta1 - Add support for Step display name
1 parent 8342ebb commit fe8cd47

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

config/300-crds/300-task.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,6 +2985,11 @@ spec:
29852985
items:
29862986
type: string
29872987
x-kubernetes-list-type: atomic
2988+
displayName:
2989+
description: |-
2990+
DisplayName is a user-facing name of the step that may be
2991+
used to populate a UI.
2992+
type: string
29882993
env:
29892994
description: |-
29902995
List of environment variables to set in the container.

pkg/apis/pipeline/v1beta1/container_conversion.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func (r *Ref) convertFrom(ctx context.Context, source v1.Ref) {
3838

3939
func (s Step) convertTo(ctx context.Context, sink *v1.Step) {
4040
sink.Name = s.Name
41+
sink.DisplayName = s.DisplayName
4142
sink.Image = s.Image
4243
sink.Command = s.Command
4344
sink.Args = s.Args
@@ -81,6 +82,7 @@ func (s Step) convertTo(ctx context.Context, sink *v1.Step) {
8182

8283
func (s *Step) convertFrom(ctx context.Context, source v1.Step) {
8384
s.Name = source.Name
85+
s.DisplayName = source.DisplayName
8486
s.Image = source.Image
8587
s.Command = source.Command
8688
s.Args = source.Args

pkg/apis/pipeline/v1beta1/container_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ type Step struct {
2727
// Name of the Step specified as a DNS_LABEL.
2828
// Each Step in a Task must have a unique name.
2929
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
30+
// DisplayName is a user-facing name of the step that may be
31+
// used to populate a UI.
32+
// +optional
33+
DisplayName string `json:"displayName,omitempty"`
3034
// Image reference name to run for this Step.
3135
// More info: https://kubernetes.io/docs/concepts/containers/images
3236
// +optional

pkg/apis/pipeline/v1beta1/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/v1beta1/swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,10 @@
20412041
},
20422042
"x-kubernetes-list-type": "atomic"
20432043
},
2044+
"displayName": {
2045+
"description": "DisplayName is a user-facing name of the step that may be used to populate a UI.",
2046+
"type": "string"
2047+
},
20442048
"env": {
20452049
"description": "List of environment variables to set in the container. Cannot be updated.",
20462050
"type": "array",

0 commit comments

Comments
 (0)