Skip to content

Commit

Permalink
Remove the GetParams method from the PipelineResource interface.
Browse files Browse the repository at this point in the history
I didn't spend the time to track down why this was added, but it's not
used anywhere meaningfully.
  • Loading branch information
dlorenc authored and tekton-robot committed Jul 3, 2019
1 parent d494344 commit 7768cf4
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1alpha1/build_gcs_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ func (s BuildGCSResource) GetType() PipelineResourceType {
return PipelineResourceTypeStorage
}

// GetParams get params
func (s *BuildGCSResource) GetParams() []Param { return []Param{} }

// GetSecretParams returns the resource secret params
func (s *BuildGCSResource) GetSecretParams() []SecretParam { return nil }

Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1alpha1/cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ func (s *ClusterResource) GetURL() string {
return s.URL
}

// GetParams returns the resource params
func (s ClusterResource) GetParams() []Param { return []Param{} }

// Replacements is used for template replacement on a ClusterResource inside of a Taskrun.
func (s *ClusterResource) Replacements() map[string]string {
return map[string]string{
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1alpha1/gcs_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ func (s GCSResource) GetType() PipelineResourceType {
return PipelineResourceTypeStorage
}

// GetParams get params
func (s *GCSResource) GetParams() []Param { return []Param{} }

// GetSecretParams returns the resource secret params
func (s *GCSResource) GetSecretParams() []SecretParam { return s.Secrets }

Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1alpha1/git_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ func (s *GitResource) GetURL() string {
return s.URL
}

// GetParams returns the resource params
func (s GitResource) GetParams() []Param { return []Param{} }

// Replacements is used for template replacement on a GitResource inside of a Taskrun.
func (s *GitResource) Replacements() map[string]string {
return map[string]string{
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1alpha1/image_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ func (s ImageResource) GetType() PipelineResourceType {
return PipelineResourceTypeImage
}

// GetParams returns the resource params
func (s ImageResource) GetParams() []Param { return []Param{} }

// Replacements is used for template replacement on an ImageResource inside of a Taskrun.
func (s *ImageResource) Replacements() map[string]string {
return map[string]string{
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1alpha1/pull_request_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ func (s *PullRequestResource) GetURL() string {
return s.URL
}

// GetParams returns the resource params
func (s PullRequestResource) GetParams() []Param { return []Param{} }

// Replacements is used for template replacement on a PullRequestResource inside of a Taskrun.
func (s *PullRequestResource) Replacements() map[string]string {
return map[string]string{
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/pipeline/v1alpha1/resource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ var AllResourceTypes = []PipelineResourceType{PipelineResourceTypeGit, PipelineR
type PipelineResourceInterface interface {
GetName() string
GetType() PipelineResourceType
GetParams() []Param
Replacements() map[string]string
GetDownloadContainerSpec() ([]corev1.Container, error)
GetUploadContainerSpec() ([]corev1.Container, error)
Expand Down

0 comments on commit 7768cf4

Please sign in to comment.