Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

config: update CRD to apiextensions.k8s.io/v1 #195

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 85 additions & 86 deletions config/base/300-operator_v1alpha1_addon_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: tektonaddons.operator.tekton.dev
labels:
version: "devel"
operator.tekton.dev/release: "devel"
spec:
additionalPrinterColumns:
- JSONPath: .status.version
name: Version
type: string
- JSONPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- JSONPath: ".status.conditions[?(@.type==\"Ready\")].reason"
name: Reason
type: string
group: operator.tekton.dev
names:
kind: TektonAddon
Expand All @@ -38,82 +28,91 @@ spec:
singular: tektonaddon
preserveUnknownFields: false
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
type: object
description: Schema for the tektonaddons API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec defines the desired state of TektonAddon
properties:
targetNamespace:
description: namespace where tekton addons will be installed
type: string
type: object
status:
description: Status defines the observed state of TektonAddon
properties:
observedGeneration:
description: The generation last processed by the controller
type: integer
conditions:
description: The latest available observations of a resource's current
state.
items:
properties:
lastTransitionTime:
description: LastTransitionTime is the last time the condition
transitioned from one status to another. We use VolatileTime
in place of metav1.Time to exclude this from creating equality.Semantic
differences (all other things held constant).
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
severity:
description: Severity with which to treat failures of this type
of condition. When this is not specified, it defaults to Error.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- type
- status
type: object
type: array
version:
description: The version of the installed release
type: string
manifests:
description: The list of serving manifests, which have been installed by the operator
type: array
items:
type: string
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
subresources:
status: {}
additionalPrinterColumns:
- jsonPath: .status.version
name: Version
type: string
- jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- jsonPath: ".status.conditions[?(@.type==\"Ready\")].reason"
name: Reason
type: string
schema:
openAPIV3Schema:
type: object
description: Schema for the tektonaddons API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/ api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec defines the desired state of TektonAddon
properties:
targetNamespace:
description: namespace where tekton addons will be installed
type: string
type: object
status:
description: Status defines the observed state of TektonAddon
properties:
observedGeneration:
description: The generation last processed by the controller
type: integer
conditions:
description: The latest available observations of a resource's current
state.
items:
properties:
lastTransitionTime:
description: LastTransitionTime is the last time the condition
transitioned from one status to another. We use VolatileTime
in place of metav1.Time to exclude this from creating equality.Semantic
differences (all other things held constant).
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
severity:
description: Severity with which to treat failures of this type
of condition. When this is not specified, it defaults to Error.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- type
- status
type: object
type: array
version:
description: The version of the installed release
type: string
manifests:
description: The list of serving manifests, which have been installed by the operator
type: array
items:
type: string
type: object
171 changes: 85 additions & 86 deletions config/base/300-operator_v1alpha1_config_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: tektonconfigs.operator.tekton.dev
labels:
version: "devel"
operator.tekton.dev/release: "devel"
spec:
additionalPrinterColumns:
- JSONPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- JSONPath: ".status.conditions[?(@.type==\"Ready\")].reason"
name: Reason
type: string
group: operator.tekton.dev
names:
kind: TektonConfig
Expand All @@ -35,85 +28,91 @@ spec:
singular: tektonconfig
preserveUnknownFields: false
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
type: object
description: Schema for the tektonconfigs API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec defines the desired state of TektonConfig
properties:
profile:
description: based on the type of profile where tekton components will be installed
type: string
targetNamespace:
description: namespace where tekton components will be installed
type: string
type: object
status:
description: Status defines the observed state of TektonConfig
properties:
observedGeneration:
description: The generation last processed by the controller
type: integer
conditions:
description: The latest available observations of a resource's current
state.
items:
properties:
lastTransitionTime:
description: LastTransitionTime is the last time the condition
transitioned from one status to another. We use VolatileTime
in place of metav1.Time to exclude this from creating equality.Semantic
differences (all other things held constant).
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
severity:
description: Severity with which to treat failures of this type
of condition. When this is not specified, it defaults to Error.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- type
- status
type: object
type: array
version:
description: The version of the installed release
type: string
manifests:
description: The list of serving manifests, which have been installed by the operator
type: array
items:
type: string
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
subresources:
status: {}
additionalPrinterColumns:
- jsonPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- jsonPath: ".status.conditions[?(@.type==\"Ready\")].reason"
name: Reason
type: string
schema:
openAPIV3Schema:
type: object
description: Schema for the tektonconfigs API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec defines the desired state of TektonConfig
properties:
profile:
description: based on the type of profile where tekton components will be installed
type: string
targetNamespace:
description: namespace where tekton components will be installed
type: string
type: object
status:
description: Status defines the observed state of TektonConfig
properties:
observedGeneration:
description: The generation last processed by the controller
type: integer
conditions:
description: The latest available observations of a resource's current
state.
items:
properties:
lastTransitionTime:
description: LastTransitionTime is the last time the condition
transitioned from one status to another. We use VolatileTime
in place of metav1.Time to exclude this from creating equality.Semantic
differences (all other things held constant).
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
severity:
description: Severity with which to treat failures of this type
of condition. When this is not specified, it defaults to Error.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- type
- status
type: object
type: array
version:
description: The version of the installed release
type: string
manifests:
description: The list of serving manifests, which have been installed by the operator
type: array
items:
type: string
type: object
Loading