Skip to content

Commit 118370d

Browse files
vdemeestertekton-robot
authored andcommitted
Do not register StepAction for conversion
`StepAction` only exists in `v1alpha1` and thus doesn't need to be registered in the conversion webhook. Prior to this commit, the webhook errors out (several times) with the following: ``` custom resource \"stepactions.tekton.dev\" isn't configured for webhook conversion ``` Signed-off-by: Vincent Demeester <[email protected]>
1 parent 35a3dab commit 118370d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cmd/webhook/main.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ func newConfigValidationController(name string) func(context.Context, configmap.
153153

154154
func newConversionController(ctx context.Context, cmw configmap.Watcher) *controller.Impl {
155155
var (
156-
v1alpha1GroupVersion = v1alpha1.SchemeGroupVersion.Version
157156
v1beta1GroupVersion = v1beta1.SchemeGroupVersion.Version
158157
v1GroupVersion = v1.SchemeGroupVersion.Version
159158
resolutionv1alpha1GroupVersion = resolutionv1alpha1.SchemeGroupVersion.Version
@@ -171,10 +170,6 @@ func newConversionController(ctx context.Context, cmw configmap.Watcher) *contro
171170
// conversions to and from all types.
172171
// "Zygotes" are the supported versions.
173172
map[schema.GroupKind]conversion.GroupKindConversion{
174-
v1alpha1.Kind("StepAction"): {
175-
DefinitionName: pipeline.StepActionResource.String(),
176-
HubVersion: v1alpha1GroupVersion,
177-
},
178173
v1.Kind("Task"): {
179174
DefinitionName: pipeline.TaskResource.String(),
180175
HubVersion: v1beta1GroupVersion,

0 commit comments

Comments
 (0)