|
| 1 | +# Copyright 2019 The Tekton Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +apiVersion: apiextensions.k8s.io/v1 |
| 16 | +kind: CustomResourceDefinition |
| 17 | +metadata: |
| 18 | + name: taskruns.tekton.dev |
| 19 | + labels: |
| 20 | + app.kubernetes.io/instance: default |
| 21 | + app.kubernetes.io/part-of: tekton-pipelines |
| 22 | + pipeline.tekton.dev/release: "devel" |
| 23 | + version: "devel" |
| 24 | +spec: |
| 25 | + group: tekton.dev |
| 26 | + preserveUnknownFields: false |
| 27 | + versions: |
| 28 | + - name: v1alpha1 |
| 29 | + served: true |
| 30 | + storage: false |
| 31 | + schema: |
| 32 | + openAPIV3Schema: |
| 33 | + type: object |
| 34 | + # One can use x-kubernetes-preserve-unknown-fields: true |
| 35 | + # at the root of the schema (and inside any properties, additionalProperties) |
| 36 | + # to get the traditional CRD behaviour that nothing is pruned, despite |
| 37 | + # setting spec.preserveUnknownProperties: false. |
| 38 | + # |
| 39 | + # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ |
| 40 | + # See issue: https://github.com/knative/serving/issues/912 |
| 41 | + x-kubernetes-preserve-unknown-fields: true |
| 42 | + additionalPrinterColumns: |
| 43 | + - name: Succeeded |
| 44 | + type: string |
| 45 | + jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status" |
| 46 | + - name: Reason |
| 47 | + type: string |
| 48 | + jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason" |
| 49 | + - name: StartTime |
| 50 | + type: date |
| 51 | + jsonPath: .status.startTime |
| 52 | + - name: CompletionTime |
| 53 | + type: date |
| 54 | + jsonPath: .status.completionTime |
| 55 | + # Opt into the status subresource so metadata.generation |
| 56 | + # starts to increment |
| 57 | + subresources: |
| 58 | + status: {} |
| 59 | + - name: v1beta1 |
| 60 | + served: true |
| 61 | + storage: true |
| 62 | + schema: |
| 63 | + openAPIV3Schema: |
| 64 | + type: object |
| 65 | + # One can use x-kubernetes-preserve-unknown-fields: true |
| 66 | + # at the root of the schema (and inside any properties, additionalProperties) |
| 67 | + # to get the traditional CRD behaviour that nothing is pruned, despite |
| 68 | + # setting spec.preserveUnknownProperties: false. |
| 69 | + # |
| 70 | + # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ |
| 71 | + # See issue: https://github.com/knative/serving/issues/912 |
| 72 | + x-kubernetes-preserve-unknown-fields: true |
| 73 | + additionalPrinterColumns: |
| 74 | + - name: Succeeded |
| 75 | + type: string |
| 76 | + jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].status" |
| 77 | + - name: Reason |
| 78 | + type: string |
| 79 | + jsonPath: ".status.conditions[?(@.type==\"Succeeded\")].reason" |
| 80 | + - name: StartTime |
| 81 | + type: date |
| 82 | + jsonPath: .status.startTime |
| 83 | + - name: CompletionTime |
| 84 | + type: date |
| 85 | + jsonPath: .status.completionTime |
| 86 | + # Opt into the status subresource so metadata.generation |
| 87 | + # starts to increment |
| 88 | + subresources: |
| 89 | + status: {} |
| 90 | + names: |
| 91 | + kind: TaskRun |
| 92 | + plural: taskruns |
| 93 | + categories: |
| 94 | + - tekton |
| 95 | + - tekton-pipelines |
| 96 | + shortNames: |
| 97 | + - tr |
| 98 | + - trs |
| 99 | + scope: Namespaced |
| 100 | + conversion: |
| 101 | + strategy: Webhook |
| 102 | + webhook: |
| 103 | + conversionReviewVersions: ["v1beta1"] |
| 104 | + clientConfig: |
| 105 | + service: |
| 106 | + name: tekton-pipelines-webhook |
| 107 | + namespace: tekton-pipelines |
0 commit comments