12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- apiVersion : apiextensions.k8s.io/v1beta1
15
+ apiVersion : apiextensions.k8s.io/v1
16
16
kind : CustomResourceDefinition
17
17
metadata :
18
18
name : pipelineruns.tekton.dev
@@ -24,23 +24,41 @@ metadata:
24
24
spec :
25
25
group : tekton.dev
26
26
preserveUnknownFields : false
27
- validation :
28
- openAPIV3Schema :
29
- type : object
30
- # One can use x-kubernetes-preserve-unknown-fields: true
31
- # at the root of the schema (and inside any properties, additionalProperties)
32
- # to get the traditional CRD behaviour that nothing is pruned, despite
33
- # setting spec.preserveUnknownProperties: false.
34
- #
35
- # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
36
- # See issue: https://github.com/knative/serving/issues/912
37
- x-kubernetes-preserve-unknown-fields : true
38
27
versions :
39
- - name : v1alpha1
28
+ - &version
29
+ name : v1alpha1
40
30
served : true
41
31
storage : false
42
- - name : v1beta1
43
- served : true
32
+ schema :
33
+ openAPIV3Schema :
34
+ type : object
35
+ # One can use x-kubernetes-preserve-unknown-fields: true
36
+ # at the root of the schema (and inside any properties, additionalProperties)
37
+ # to get the traditional CRD behaviour that nothing is pruned, despite
38
+ # setting spec.preserveUnknownProperties: false.
39
+ #
40
+ # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
41
+ # See issue: https://github.com/knative/serving/issues/912
42
+ x-kubernetes-preserve-unknown-fields : true
43
+ additionalPrinterColumns :
44
+ - name : Succeeded
45
+ type : string
46
+ jsonPath : " .status.conditions[?(@.type==\" Succeeded\" )].status"
47
+ - name : Reason
48
+ type : string
49
+ jsonPath : " .status.conditions[?(@.type==\" Succeeded\" )].reason"
50
+ - name : StartTime
51
+ type : date
52
+ jsonPath : .status.startTime
53
+ - name : CompletionTime
54
+ type : date
55
+ jsonPath : .status.completionTime
56
+ # Opt into the status subresource so metadata.generation
57
+ # starts to increment
58
+ subresources :
59
+ status : {}
60
+ - << : *version
61
+ name : v1beta1
44
62
storage : true
45
63
names :
46
64
kind : PipelineRun
@@ -52,26 +70,11 @@ spec:
52
70
- pr
53
71
- prs
54
72
scope : Namespaced
55
- additionalPrinterColumns :
56
- - name : Succeeded
57
- type : string
58
- JSONPath : " .status.conditions[?(@.type==\" Succeeded\" )].status"
59
- - name : Reason
60
- type : string
61
- JSONPath : " .status.conditions[?(@.type==\" Succeeded\" )].reason"
62
- - name : StartTime
63
- type : date
64
- JSONPath : .status.startTime
65
- - name : CompletionTime
66
- type : date
67
- JSONPath : .status.completionTime
68
- # Opt into the status subresource so metadata.generation
69
- # starts to increment
70
- subresources :
71
- status : {}
72
73
conversion :
73
74
strategy : Webhook
74
- webhookClientConfig :
75
- service :
76
- name : tekton-pipelines-webhook
77
- namespace : tekton-pipelines
75
+ webhook :
76
+ conversionReviewVersions : ["v1beta1"]
77
+ clientConfig :
78
+ service :
79
+ name : tekton-pipelines-webhook
80
+ namespace : tekton-pipelines
0 commit comments