Skip to content

Commit 2bd16b8

Browse files
ericzzzzzzztekton-robot
authored andcommitted
misc: promote stepAction to beta
1 parent ea1fa7a commit 2bd16b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4076
-98
lines changed

cmd/webhook/main.go

+10
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ var types = map[schema.GroupVersionKind]resourcesemantics.GenericCRD{
6060
v1beta1.SchemeGroupVersion.WithKind("TaskRun"): &v1beta1.TaskRun{},
6161
v1beta1.SchemeGroupVersion.WithKind("PipelineRun"): &v1beta1.PipelineRun{},
6262
v1beta1.SchemeGroupVersion.WithKind("CustomRun"): &v1beta1.CustomRun{},
63+
v1beta1.SchemeGroupVersion.WithKind("StepAction"): &v1beta1.StepAction{},
6364
// v1
6465
v1.SchemeGroupVersion.WithKind("Task"): &v1.Task{},
6566
v1.SchemeGroupVersion.WithKind("Pipeline"): &v1.Pipeline{},
@@ -153,6 +154,7 @@ func newConfigValidationController(name string) func(context.Context, configmap.
153154

154155
func newConversionController(ctx context.Context, cmw configmap.Watcher) *controller.Impl {
155156
var (
157+
v1alpha1GroupVersion = v1alpha1.SchemeGroupVersion.Version
156158
v1beta1GroupVersion = v1beta1.SchemeGroupVersion.Version
157159
v1GroupVersion = v1.SchemeGroupVersion.Version
158160
resolutionv1alpha1GroupVersion = resolutionv1alpha1.SchemeGroupVersion.Version
@@ -170,6 +172,14 @@ func newConversionController(ctx context.Context, cmw configmap.Watcher) *contro
170172
// conversions to and from all types.
171173
// "Zygotes" are the supported versions.
172174
map[schema.GroupKind]conversion.GroupKindConversion{
175+
v1beta1.Kind("StepAction"): {
176+
DefinitionName: pipeline.StepActionResource.String(),
177+
HubVersion: v1alpha1GroupVersion,
178+
Zygotes: map[string]conversion.ConvertibleObject{
179+
v1alpha1GroupVersion: &v1alpha1.StepAction{},
180+
v1beta1GroupVersion: &v1beta1.StepAction{},
181+
},
182+
},
173183
v1.Kind("Task"): {
174184
DefinitionName: pipeline.TaskResource.String(),
175185
HubVersion: v1beta1GroupVersion,

config/300-crds/300-stepaction.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ spec:
2626
preserveUnknownFields: false
2727
versions:
2828
- name: v1alpha1
29+
served: true
30+
storage: false
31+
schema:
32+
openAPIV3Schema:
33+
type: object
34+
# One can use x-kubernetes-preserve-unknown-fields: true
35+
# at the root of the schema (and inside any properties, additionalProperties)
36+
# to get the traditional CRD behaviour that nothing is pruned, despite
37+
# setting spec.preserveUnknownProperties: false.
38+
#
39+
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
40+
# See issue: https://github.com/knative/serving/issues/912
41+
x-kubernetes-preserve-unknown-fields: true
42+
# Opt into the status subresource so metadata.generation
43+
# starts to increment
44+
subresources:
45+
status: {}
46+
- name: v1beta1
2947
served: true
3048
storage: true
3149
schema:

docs/additional-configs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ Features currently in "alpha" are:
384384
| [keep pod on cancel](./taskruns.md#cancelling-a-taskrun) | N/A | [v0.52.0](https://github.com/tektoncd/pipeline/releases/tag/v0.52.0) | `keep-pod-on-cancel` |
385385
| [CEL in WhenExpression](./pipelines.md#use-cel-expression-in-whenexpression) | [TEP-0145](https://github.com/tektoncd/community/blob/main/teps/0145-cel-in-whenexpression.md) | [v0.53.0](https://github.com/tektoncd/pipeline/releases/tag/v0.53.0) | `enable-cel-in-whenexpression` |
386386
| [Param Enum](./taskruns.md#parameter-enums) | [TEP-0144](https://github.com/tektoncd/community/blob/main/teps/0144-param-enum.md) | [v0.54.0](https://github.com/tektoncd/pipeline/releases/tag/v0.54.0) | `enable-param-enum` |
387-
| [Reusable Steps via StepActions](./stepactions.md) | [TEP-0142](https://github.com/tektoncd/community/blob/main/teps/0142-enable-step-reusability.md) | [v0.54.0](https://github.com/tektoncd/pipeline/releases/tag/v0.54.0) | `enable-step-actions` |
388387
| [Ignore Task Failure](./pipelines.md#using-the-onerror-field) | [TEP-0050](https://github.com/tektoncd/community/blob/main/teps/0050-ignore-task-failures.md) | N/A | |
389388

390389
### Beta Features
@@ -403,6 +402,7 @@ Features currently in "beta" are:
403402
| [Isolated `Step` & `Sidecar` `Workspaces`](./workspaces.md#isolated-workspaces) | [TEP-0029](https://github.com/tektoncd/community/blob/main/teps/0029-step-workspaces.md) | [v0.24.0](https://github.com/tektoncd/pipeline/releases/tag/v0.24.0) | [v0.50.0](https://github.com/tektoncd/pipeline/releases/tag/v0.50.0) | |
404403
| [Matrix](./matrix.md) | [TEP-0090](https://github.com/tektoncd/community/blob/main/teps/0090-matrix.md) | [v0.38.0](https://github.com/tektoncd/pipeline/releases/tag/v0.38.0) | [v0.53.0](https://github.com/tektoncd/pipeline/releases/tag/v0.53.0) | |
405404
| [Task-level Resource Requirements](compute-resources.md#task-level-compute-resources-configuration) | [TEP-0104](https://github.com/tektoncd/community/blob/main/teps/0104-tasklevel-resource-requirements.md) | [v0.39.0](https://github.com/tektoncd/pipeline/releases/tag/v0.39.0) | [v0.53.0](https://github.com/tektoncd/pipeline/releases/tag/v0.53.0) | |
405+
| [Reusable Steps via StepActions](./stepactions.md) | [TEP-0142](https://github.com/tektoncd/community/blob/main/teps/0142-enable-step-reusability.md) | [v0.54.0](https://github.com/tektoncd/pipeline/releases/tag/v0.54.0) | `enable-step-actions` |
406406

407407
## Enabling larger results using sidecar logs
408408

0 commit comments

Comments
 (0)