Skip to content

Cluster Resolver doesn't correctly support StepActions #8381

@AverageMarcus

Description

@AverageMarcus

Expected Behavior

When referencing a StepAction using the cluster resolver I expect it to correctly resolve.

Actual Behavior

The cluster resolver returns the following error:

error requesting remote resource: invalid resource request "default/cluster-051262fe5f6cb1d73275329862a37096": unknown or unsupported resource kind ''stepaction''

Steps to Reproduce the Problem

  1. Create a Task that uses a StepAction, referenced using the cluster resolver.
  2. Run the Task
  3. Observe the error

Additional Info

From what I'm able to tell, I think this line is what is currently blocking things as the cluster resolver has already been updated to support StepActions but this line is still hardcoded to task and pipeline.

  • Kubernetes version:

    Output of kubectl version:

Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.9
  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

Client version: 0.37.0
Pipeline version: v0.65.1
Triggers version: v0.30.0
Dashboard version: v0.52.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions