Skip to content

Commit

Permalink
Change the version of PipelineRun to v1alpha3 (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Sep 17, 2021
1 parent 54c19bc commit 7cac1fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions kubectl-plugin/pipeline/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func newPipelineRunCmd(client dynamic.Interface) (cmd *cobra.Command) {
cmd = &cobra.Command{
Use: "run",
Short: "Start a Pipeline",
Long: "Start a Pipeline. Only v1alpha4 is supported",
PreRunE: opt.preRunE,
RunE: opt.runE,
}
Expand Down Expand Up @@ -176,7 +175,7 @@ func parsePipelineRunTpl(data map[string]interface{}) (pipelineRunYaml string, e
}

var pipelineRunTpl = `
apiVersion: devops.kubesphere.io/v1alpha4
apiVersion: devops.kubesphere.io/v1alpha3
kind: PipelineRun
metadata:
generateName: {{.name}}
Expand Down
2 changes: 1 addition & 1 deletion kubectl-plugin/types/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func GetPipelineSchema() schema.GroupVersionResource {
func GetPipelineRunSchema() schema.GroupVersionResource {
return schema.GroupVersionResource{
Group: "devops.kubesphere.io",
Version: "v1alpha4",
Version: "v1alpha3",
Resource: "pipelineruns",
}
}
Expand Down

0 comments on commit 7cac1fb

Please sign in to comment.