Skip to content

Commit

Permalink
Remove Cluster pipelineResources
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeJu committed Jan 16, 2023
1 parent a044400 commit 633213e
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 940 deletions.
1 change: 0 additions & 1 deletion cmd/kubeconfigwriter/kodata/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion cmd/kubeconfigwriter/kodata/third_party

This file was deleted.

118 changes: 0 additions & 118 deletions cmd/kubeconfigwriter/main.go

This file was deleted.

3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1beta1/resource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ const (
// PipelineResourceTypeImage indicates that this source is a docker Image.
PipelineResourceTypeImage PipelineResourceType = resource.PipelineResourceTypeImage

// PipelineResourceTypeCluster indicates that this source is a k8s cluster Image.
PipelineResourceTypeCluster PipelineResourceType = resource.PipelineResourceTypeCluster

// PipelineResourceTypePullRequest indicates that this source is a SCM Pull Request.
PipelineResourceTypePullRequest PipelineResourceType = resource.PipelineResourceTypePullRequest

Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
pipelinev1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
resourcev1alpha1 "github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1"
"github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent"
"github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cluster"
"github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/git"
"github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/image"
"github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pullrequest"
Expand All @@ -39,8 +38,6 @@ func FromType(name string, r *resourcev1alpha1.PipelineResource, images pipeline
return git.NewResource(name, images.GitImage, r)
case resourcev1alpha1.PipelineResourceTypeImage:
return image.NewResource(name, r)
case resourcev1alpha1.PipelineResourceTypeCluster:
return cluster.NewResource(name, images.KubeconfigWriterImage, images.ShellImage, r)
case resourcev1alpha1.PipelineResourceTypeStorage:
return storage.NewResource(name, images, r)
case resourcev1alpha1.PipelineResourceTypePullRequest:
Expand Down
203 changes: 0 additions & 203 deletions pkg/apis/resource/v1alpha1/cluster/cluster_resource.go

This file was deleted.

Loading

0 comments on commit 633213e

Please sign in to comment.