...
Text file
src/github.com/openshift/api/config/v1/0000_00_cluster-version-operator_01_clusteroperator.crd.yaml
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 api-approved.openshift.io: https://github.com/openshift/api/pull/497
6 include.release.openshift.io/self-managed-high-availability: "true"
7 include.release.openshift.io/single-node-developer: "true"
8 name: clusteroperators.config.openshift.io
9spec:
10 group: config.openshift.io
11 names:
12 kind: ClusterOperator
13 listKind: ClusterOperatorList
14 plural: clusteroperators
15 shortNames:
16 - co
17 singular: clusteroperator
18 scope: Cluster
19 versions:
20 - additionalPrinterColumns:
21 - description: The version the operator is at.
22 jsonPath: .status.versions[?(@.name=="operator")].version
23 name: Version
24 type: string
25 - description: Whether the operator is running and stable.
26 jsonPath: .status.conditions[?(@.type=="Available")].status
27 name: Available
28 type: string
29 - description: Whether the operator is processing changes.
30 jsonPath: .status.conditions[?(@.type=="Progressing")].status
31 name: Progressing
32 type: string
33 - description: Whether the operator is degraded.
34 jsonPath: .status.conditions[?(@.type=="Degraded")].status
35 name: Degraded
36 type: string
37 - description: The time the operator's Available status last changed.
38 jsonPath: .status.conditions[?(@.type=="Available")].lastTransitionTime
39 name: Since
40 type: date
41 name: v1
42 schema:
43 openAPIV3Schema:
44 description: "ClusterOperator is the Custom Resource object which holds the current state of an operator. This object is used by operators to convey their state to the rest of the cluster. \n Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer)."
45 type: object
46 required:
47 - spec
48 properties:
49 apiVersion:
50 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/sig-architecture/api-conventions.md#resources'
51 type: string
52 kind:
53 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/sig-architecture/api-conventions.md#types-kinds'
54 type: string
55 metadata:
56 type: object
57 spec:
58 description: spec holds configuration that could apply to any operator.
59 type: object
60 status:
61 description: status holds the information about the state of an operator. It is consistent with status information across the Kubernetes ecosystem.
62 type: object
63 properties:
64 conditions:
65 description: conditions describes the state of the operator's managed and monitored components.
66 type: array
67 items:
68 description: ClusterOperatorStatusCondition represents the state of the operator's managed and monitored components.
69 type: object
70 required:
71 - lastTransitionTime
72 - status
73 - type
74 properties:
75 lastTransitionTime:
76 description: lastTransitionTime is the time of the last update to the current status property.
77 type: string
78 format: date-time
79 message:
80 description: message provides additional information about the current condition. This is only to be consumed by humans. It may contain Line Feed characters (U+000A), which should be rendered as new lines.
81 type: string
82 reason:
83 description: reason is the CamelCase reason for the condition's current status.
84 type: string
85 status:
86 description: status of the condition, one of True, False, Unknown.
87 type: string
88 type:
89 description: type specifies the aspect reported by this condition.
90 type: string
91 extension:
92 description: extension contains any additional status information specific to the operator which owns this status object.
93 type: object
94 nullable: true
95 x-kubernetes-preserve-unknown-fields: true
96 relatedObjects:
97 description: 'relatedObjects is a list of objects that are "interesting" or related to this operator. Common uses are: 1. the detailed resource driving the operator 2. operator namespaces 3. operand namespaces'
98 type: array
99 items:
100 description: ObjectReference contains enough information to let you inspect or modify the referred object.
101 type: object
102 required:
103 - group
104 - name
105 - resource
106 properties:
107 group:
108 description: group of the referent.
109 type: string
110 name:
111 description: name of the referent.
112 type: string
113 namespace:
114 description: namespace of the referent.
115 type: string
116 resource:
117 description: resource of the referent.
118 type: string
119 versions:
120 description: versions is a slice of operator and operand version tuples. Operators which manage multiple operands will have multiple operand entries in the array. Available operators must report the version of the operator itself with the name "operator". An operator reports a new "operator" version when it has rolled out the new version to all of its operands.
121 type: array
122 items:
123 type: object
124 required:
125 - name
126 - version
127 properties:
128 name:
129 description: name is the name of the particular operand this version is for. It usually matches container images, not operators.
130 type: string
131 version:
132 description: version indicates which version of a particular operand is currently being managed. It must always match the Available operand. If 1.0.0 is Available, then this must indicate 1.0.0 even if the operator is trying to rollout 1.1.0
133 type: string
134 served: true
135 storage: true
136 subresources:
137 status: {}
View as plain text