Skip to main content

ClusterOperator [config.openshift.io/v1]

Description
ClusterOperator holds the status of a core or optional OpenShift component managed by the Cluster Version Operator (CVO). This object is used by operators to convey their state to the rest of the cluster. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
Type
`object`
Required
  • spec

Specification​

PropertyTypeDescription
apiVersionstringAPIVersion 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
kindstringKind 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
metadataObjectMetaStandard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
specobjectspec holds configuration that could apply to any operator.
statusobjectstatus holds the information about the state of an operator. It is consistent with status information across the Kubernetes ecosystem.

.spec​

Description
spec holds configuration that could apply to any operator.
Type
`object`

.status​

Description
status holds the information about the state of an operator. It is consistent with status information across the Kubernetes ecosystem.
Type
`object`
PropertyTypeDescription
conditionsarrayconditions describes the state of the operator’s managed and monitored components.
conditions[]objectClusterOperatorStatusCondition represents the state of the operator’s managed and monitored components.
extension``extension contains any additional status information specific to the operator which owns this status object.
relatedObjectsarrayrelatedObjects 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
relatedObjects[]objectObjectReference contains enough information to let you inspect or modify the referred object.
versionsarrayversions 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.
versions[]object

.status.conditions​

Description
conditions describes the state of the operator’s managed and monitored components.
Type
`array`

.status.conditions[]​

Description
ClusterOperatorStatusCondition represents the state of the operator’s managed and monitored components.
Type
`object`
Required
  • lastTransitionTime
  • status
  • type
PropertyTypeDescription
lastTransitionTimestringlastTransitionTime is the time of the last update to the current status property.
messagestringmessage 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.
reasonstringreason is the CamelCase reason for the condition’s current status.
statusstringstatus of the condition, one of True, False, Unknown.
typestringtype specifies the aspect reported by this condition.

.status.relatedObjects​

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
Type
`array`

.status.relatedObjects[]​

Description
ObjectReference contains enough information to let you inspect or modify the referred object.
Type
`object`
Required
  • group
  • name
  • resource
PropertyTypeDescription
groupstringgroup of the referent.
namestringname of the referent.
namespacestringnamespace of the referent.
resourcestringresource of the referent.

.status.versions​

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.
Type
`array`

.status.versions[]​

Description

Type
`object`
Required
  • name
  • version
PropertyTypeDescription
namestringname is the name of the particular operand this version is for. It usually matches container images, not operators.
versionstringversion 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

API endpoints​

The following API endpoints are available:

  • /apis/config.openshift.io/v1/clusteroperators
    • DELETE: delete collection of ClusterOperator
    • GET: list objects of kind ClusterOperator
    • POST: create a ClusterOperator
  • /apis/config.openshift.io/v1/clusteroperators/{name}
    • DELETE: delete a ClusterOperator
    • GET: read the specified ClusterOperator
    • PATCH: partially update the specified ClusterOperator
    • PUT: replace the specified ClusterOperator
  • /apis/config.openshift.io/v1/clusteroperators/{name}/status
    • GET: read status of the specified ClusterOperator
    • PATCH: partially update status of the specified ClusterOperator
    • PUT: replace status of the specified ClusterOperator

/apis/config.openshift.io/v1/clusteroperators​

HTTP method
`DELETE`
Description
delete collection of ClusterOperator

HTTP responses

HTTP codeReponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
`GET`
Description
list objects of kind ClusterOperator

HTTP responses

HTTP codeReponse body
200 - OKClusterOperatorList schema
401 - UnauthorizedEmpty
HTTP method
`POST`
Description
create a ClusterOperator

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyClusterOperator schema

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
201 - CreatedClusterOperator schema
202 - AcceptedClusterOperator schema
401 - UnauthorizedEmpty

/apis/config.openshift.io/v1/clusteroperators/{name}​

Global path parameters

ParameterTypeDescription
namestringname of the ClusterOperator
HTTP method
`DELETE`
Description
delete a ClusterOperator

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

HTTP responses

HTTP codeReponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
`GET`
Description
read the specified ClusterOperator

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
401 - UnauthorizedEmpty
HTTP method
`PATCH`
Description
partially update the specified ClusterOperator

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace the specified ClusterOperator

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyClusterOperator schema

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
201 - CreatedClusterOperator schema
401 - UnauthorizedEmpty

/apis/config.openshift.io/v1/clusteroperators/{name}/status​

Global path parameters

ParameterTypeDescription
namestringname of the ClusterOperator
HTTP method
`GET`
Description
read status of the specified ClusterOperator

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
401 - UnauthorizedEmpty
HTTP method
`PATCH`
Description
partially update status of the specified ClusterOperator

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
401 - UnauthorizedEmpty
HTTP method
`PUT`
Description
replace status of the specified ClusterOperator

Query parameters

ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Body parameters

ParameterTypeDescription
bodyClusterOperator schema

HTTP responses

HTTP codeReponse body
200 - OKClusterOperator schema
201 - CreatedClusterOperator schema
401 - UnauthorizedEmpty