Skip to content

Commit b2904e5

Browse files
committed
add .status.relatedObjects to clusterversion to get CVO references
1 parent 9e29d16 commit b2904e5

17 files changed

+1482
-573
lines changed

config/v1/types_cluster_version.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ type ClusterVersionStatus struct {
199199
// +listType=atomic
200200
// +optional
201201
ConditionalUpdates []ConditionalUpdate `json:"conditionalUpdates,omitempty"`
202+
203+
// relatedObjects is a list of objects that are "interesting" or related to this operator.
204+
// `oc adm inspect` honors this field in any type to navigate and collect related data.
205+
// Common uses are:
206+
// 1. operator namespaces
207+
// 2. operand namespaces
208+
// +optional
209+
// +openshift:enable:FeatureGate=CVORelatedObjects
210+
RelatedObjects []ObjectReference `json:"relatedObjects,omitempty"`
202211
}
203212

204213
// UpdateState is a constant representing whether an update was successfully

config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_01_clusterversions-CustomNoUpgrade.crd.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,35 @@ spec:
807807
and conditions fields may represent a previous version.
808808
format: int64
809809
type: integer
810+
relatedObjects:
811+
description: |-
812+
relatedObjects is a list of objects that are "interesting" or related to this operator.
813+
`oc adm inspect` honors this field in any type to navigate and collect related data.
814+
Common uses are:
815+
1. operator namespaces
816+
2. operand namespaces
817+
items:
818+
description: ObjectReference contains enough information to let
819+
you inspect or modify the referred object.
820+
properties:
821+
group:
822+
description: group of the referent.
823+
type: string
824+
name:
825+
description: name of the referent.
826+
type: string
827+
namespace:
828+
description: namespace of the referent.
829+
type: string
830+
resource:
831+
description: resource of the referent.
832+
type: string
833+
required:
834+
- group
835+
- name
836+
- resource
837+
type: object
838+
type: array
810839
versionHash:
811840
description: |-
812841
versionHash is a fingerprint of the content that the cluster will be

config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_01_clusterversions-TechPreviewNoUpgrade.crd.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,35 @@ spec:
807807
and conditions fields may represent a previous version.
808808
format: int64
809809
type: integer
810+
relatedObjects:
811+
description: |-
812+
relatedObjects is a list of objects that are "interesting" or related to this operator.
813+
`oc adm inspect` honors this field in any type to navigate and collect related data.
814+
Common uses are:
815+
1. operator namespaces
816+
2. operand namespaces
817+
items:
818+
description: ObjectReference contains enough information to let
819+
you inspect or modify the referred object.
820+
properties:
821+
group:
822+
description: group of the referent.
823+
type: string
824+
name:
825+
description: name of the referent.
826+
type: string
827+
namespace:
828+
description: namespace of the referent.
829+
type: string
830+
resource:
831+
description: resource of the referent.
832+
type: string
833+
required:
834+
- group
835+
- name
836+
- resource
837+
type: object
838+
type: array
810839
versionHash:
811840
description: |-
812841
versionHash is a fingerprint of the content that the cluster will be

config/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/v1/zz_generated.featuregated-crd-manifests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ clusterversions.config.openshift.io:
117117
Capability: ""
118118
Category: ""
119119
FeatureGates:
120+
- CVORelatedObjects
120121
- ImageStreamImportMode
121122
- SignatureStores
122123
FilenameOperatorName: cluster-version-operator

0 commit comments

Comments
 (0)