Skip to content

Commit

Permalink
Add v1beta1 version to CRD definitions
Browse files Browse the repository at this point in the history
At the moment, these are internal types and will not be usable
by the end user.
  • Loading branch information
dibyom authored and tekton-robot committed Jun 4, 2021
1 parent d7cb6f7 commit 080efa0
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/300-clustertriggerbinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ spec:
- tekton
- tekton-triggers
versions:
- name: v1beta1
served: false
storage: false
schema:
openAPIV3Schema:
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: https://github.com/knative/serving/issues/912
x-kubernetes-preserve-unknown-fields: true
subresources:
status: {}
- name: v1alpha1
served: true
storage: true
Expand Down
35 changes: 35 additions & 0 deletions config/300-eventlistener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,41 @@ spec:
- tekton
- tekton-triggers
versions:
- name: v1beta1
served: false
storage: false
# Opt into the status subresource so metadata.generation
# starts to increment
subresources:
status: {}
schema:
openAPIV3Schema:
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: https://github.com/knative/serving/issues/912
x-kubernetes-preserve-unknown-fields: true
additionalPrinterColumns:
- name: Address
type: string
jsonPath: .status.address.url
- name: Available
type: string
jsonPath: ".status.conditions[?(@.type=='Available')].status"
- name: Reason
type: string
jsonPath: ".status.conditions[?(@.type=='Available')].reason"
- name: Ready
type: string
jsonPath: ".status.conditions[?(@.type=='Ready')].status"
- name: Reason
type: string
jsonPath: ".status.conditions[?(@.type=='Ready')].reason"

- name: v1alpha1
served: true
storage: true
Expand Down
16 changes: 16 additions & 0 deletions config/300-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ spec:
- tekton
- tekton-triggers
versions:
- name: v1beta1
served: false
storage: false
schema:
openAPIV3Schema:
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: https://github.com/knative/serving/issues/912
x-kubernetes-preserve-unknown-fields: true
subresources:
status: {}
- name: v1alpha1
served: true
storage: true
Expand Down
19 changes: 19 additions & 0 deletions config/300-triggerbinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ spec:
- tekton
- tekton-triggers
versions:
- name: v1beta1
served: false
storage: false
schema:
openAPIV3Schema:
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: https://github.com/knative/serving/issues/912
x-kubernetes-preserve-unknown-fields: true
# Opt into the status subresource so metadata.generation
# starts to increment
subresources:
status: {}

- name: v1alpha1
served: true
storage: true
Expand Down
18 changes: 18 additions & 0 deletions config/300-triggertemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ spec:
- tekton
- tekton-triggers
versions:
- name: v1beta1
served: false
storage: false
schema:
openAPIV3Schema:
type: object
# One can use x-kubernetes-preserve-unknown-fields: true
# at the root of the schema (and inside any properties, additionalProperties)
# to get the traditional CRD behaviour that nothing is pruned, despite
# setting spec.preserveUnknownProperties: false.
#
# See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/
# See issue: https://github.com/knative/serving/issues/912
x-kubernetes-preserve-unknown-fields: true
# Opt into the status subresource so metadata.generation
# starts to increment
subresources:
status: {}
- name: v1alpha1
served: true
storage: true
Expand Down

0 comments on commit 080efa0

Please sign in to comment.