Skip to content

Commit

Permalink
Rename v1alpha2 to v1beta1 ๐Ÿ˜Œ
Browse files Browse the repository at this point in the history
Let's go directly to v1beta1 and do several RC releases ๐Ÿ‘ผ

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester committed Mar 2, 2020
1 parent a379ca2 commit d28aed9
Show file tree
Hide file tree
Showing 213 changed files with 1,626 additions and 2,250 deletions.
14 changes: 7 additions & 7 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

defaultconfig "github.com/tektoncd/pipeline/pkg/apis/config"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha2"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"github.com/tektoncd/pipeline/pkg/contexts"
"k8s.io/apimachinery/pkg/runtime/schema"
"knative.dev/pkg/configmap"
Expand All @@ -47,12 +47,12 @@ var types = map[schema.GroupVersionKind]resourcesemantics.GenericCRD{
v1alpha1.SchemeGroupVersion.WithKind("PipelineRun"): &v1alpha1.PipelineRun{},
v1alpha1.SchemeGroupVersion.WithKind("Condition"): &v1alpha1.Condition{},
v1alpha1.SchemeGroupVersion.WithKind("PipelineResource"): &v1alpha1.PipelineResource{},
// v1alpha2
v1alpha2.SchemeGroupVersion.WithKind("Pipeline"): &v1alpha2.Pipeline{},
v1alpha2.SchemeGroupVersion.WithKind("Task"): &v1alpha2.Task{},
v1alpha2.SchemeGroupVersion.WithKind("ClusterTask"): &v1alpha2.ClusterTask{},
v1alpha2.SchemeGroupVersion.WithKind("TaskRun"): &v1alpha2.TaskRun{},
v1alpha2.SchemeGroupVersion.WithKind("PipelineRun"): &v1alpha2.PipelineRun{},
// v1beta1
v1beta1.SchemeGroupVersion.WithKind("Pipeline"): &v1beta1.Pipeline{},
v1beta1.SchemeGroupVersion.WithKind("Task"): &v1beta1.Task{},
v1beta1.SchemeGroupVersion.WithKind("ClusterTask"): &v1beta1.ClusterTask{},
v1beta1.SchemeGroupVersion.WithKind("TaskRun"): &v1beta1.TaskRun{},
v1beta1.SchemeGroupVersion.WithKind("PipelineRun"): &v1beta1.PipelineRun{},
}

func NewDefaultingAdmissionController(ctx context.Context, cmw configmap.Watcher) *controller.Impl {
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ignore:
- "pkg/apis/pipeline/v1alpha1/zz_generated.deepcopy.go"
- "pkg/apis/pipeline/v1alpha2/zz_generated.deepcopy.go"
- "pkg/apis/pipeline/v1beta1/zz_generated.deepcopy.go"
2 changes: 1 addition & 1 deletion config/300-clustertask.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: v1alpha1
served: true
storage: true
- name: v1alpha2
- name: v1beta1
served: true
storage: false
names:
Expand Down
2 changes: 1 addition & 1 deletion config/300-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: v1alpha1
served: true
storage: true
- name: v1alpha2
- name: v1beta1
served: true
storage: false
names:
Expand Down
2 changes: 1 addition & 1 deletion config/300-pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: v1alpha1
served: true
storage: true
- name: v1alpha2
- name: v1beta1
served: true
storage: false
names:
Expand Down
2 changes: 1 addition & 1 deletion config/300-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: v1alpha1
served: true
storage: true
- name: v1alpha2
- name: v1beta1
served: true
storage: false
names:
Expand Down
2 changes: 1 addition & 1 deletion config/300-taskrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: v1alpha1
served: true
storage: true
- name: v1alpha2
- name: v1beta1
served: true
storage: false
names:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
name: cluster-task-pipeline-4
Expand All @@ -9,7 +9,7 @@ spec:
command: ["/bin/bash"]
args: ['-c', 'echo success']
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: sample-pipeline-cluster-task-4
Expand All @@ -20,7 +20,7 @@ spec:
name: cluster-task-pipeline-4
kind: ClusterTask
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: demo-pipeline-run-4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: url
value: https://github.com/tektoncd/pipeline
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: list-pipeline-repo-files
Expand All @@ -40,7 +40,7 @@ spec:
image: ubuntu
script: 'ls -al $(inputs.resources.optional-workspace.path)'
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: pipeline-list-pipeline-repo-files
Expand Down Expand Up @@ -71,7 +71,7 @@ spec:
- name: optional-workspace
resource: pipeline-source-repo
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: demo-condtional-pr-without-condition-resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- name: url
value: https://github.com/tektoncd/pipeline
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: create-readme-file
Expand All @@ -38,7 +38,7 @@ spec:
image: ubuntu
script: 'touch $(resources.outputs.workspace.path)/README.md'
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: echo-hello
Expand All @@ -48,7 +48,7 @@ spec:
image: ubuntu
script: 'echo hello'
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: conditional-pipeline
Expand Down Expand Up @@ -80,7 +80,7 @@ spec:
taskRef:
name: echo-hello
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: condtional-pr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
script: 'test ! -z $(resources.built-image.url)'
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: build-an-image
Expand Down Expand Up @@ -56,7 +56,7 @@ spec:
- --destination=$(resources.outputs.built-image.url)
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: demo-pipeline-to-build-an-image
Expand Down Expand Up @@ -97,7 +97,7 @@ spec:

---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: demo-pipeline-to-build-an-image-without-resources
Expand All @@ -107,7 +107,7 @@ spec:
serviceAccountName: 'default'
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: demo-pipeline-to-build-an-image-without-image-resource
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
memory: "111Mi"
type: Container
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: echo-hello-world
Expand All @@ -31,7 +31,7 @@ spec:
args:
- "hello world"
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: pipeline-hello
Expand All @@ -46,7 +46,7 @@ spec:
runAfter:
- hello-world-1
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: pipeline-hello-run-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: task-echo-message
Expand All @@ -16,7 +16,7 @@ spec:
- "$(inputs.params.MESSAGE)"
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipelinerun-timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
value: https://github.com/GoogleContainerTools/skaffold
---
# Task writes "some stuff" to a predefined path in the workspace git PipelineResource
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: create-file
Expand All @@ -35,7 +35,7 @@ spec:
args: ['-c', 'ln -s /workspace/damnworkspace /workspace/output/workspace && echo some stuff > /workspace/output/workspace/stuff']
---
# Reads a file from a predefined path in the workspace git PipelineResource
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: check-stuff-file-exists
Expand All @@ -57,7 +57,7 @@ spec:
# The Output of the first Task (git resource) create-file is given as an `Input`
# to the next `Task` check-stuff-file-exists using`from` clause.

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: output-pipeline
Expand Down Expand Up @@ -90,7 +90,7 @@ spec:
resource: source-repo
from: [first-create-file]
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: output-pipeline-run
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-good-morning
Expand All @@ -15,7 +15,7 @@ spec:
echo "Good Morning!"
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-message
Expand Down Expand Up @@ -47,7 +47,7 @@ spec:
value: "Good Morning!"
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-greetings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: task-echo-message
Expand All @@ -16,7 +16,7 @@ spec:
- "$(params.MESSAGE)"
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pipelinerun-echo-greetings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: task-to-list-files
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
echo "Hello from Tekton Pipeline!"
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: pipeline-to-list-files
Expand Down Expand Up @@ -78,7 +78,7 @@ spec:
resource: pipeline-git
---

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: demo-pipelinerun-with-resourcespec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
- name: url
value: https://github.com/GoogleContainerTools/skaffold
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: unit-tests
Expand All @@ -70,7 +70,7 @@ spec:
args:
- "pass"
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: build-push
Expand Down Expand Up @@ -104,7 +104,7 @@ spec:
- --context=$(params.pathToContext)
---
# This task deploys with kubectl apply -f <filename>
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: demo-deploy-kubectl
Expand Down Expand Up @@ -149,7 +149,7 @@ spec:
# pushed are the ones that are deployed (that would require using the digest of
# the built image, see https://github.com/tektoncd/pipeline/issues/216).

apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: demo-pipeline
Expand Down Expand Up @@ -238,7 +238,7 @@ spec:
- name: yamlPathToImage
value: "spec.template.spec.containers[0].image"
---
apiVersion: tekton.dev/v1alpha2
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: demo-pipeline-run-1
Expand Down
Loading

0 comments on commit d28aed9

Please sign in to comment.