From 7cac1fbaa402da547ff726b7c566e27871fadcea Mon Sep 17 00:00:00 2001 From: Rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Fri, 17 Sep 2021 19:10:32 +0800 Subject: [PATCH] Change the version of PipelineRun to v1alpha3 (#203) --- kubectl-plugin/pipeline/run.go | 3 +-- kubectl-plugin/types/schema.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kubectl-plugin/pipeline/run.go b/kubectl-plugin/pipeline/run.go index 2735521..5baaf65 100644 --- a/kubectl-plugin/pipeline/run.go +++ b/kubectl-plugin/pipeline/run.go @@ -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, } @@ -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}} diff --git a/kubectl-plugin/types/schema.go b/kubectl-plugin/types/schema.go index dc60784..b497346 100644 --- a/kubectl-plugin/types/schema.go +++ b/kubectl-plugin/types/schema.go @@ -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", } }