Skip to content

Commit

Permalink
add related objects to ClusterOperator for better OpenShift must-gath…
Browse files Browse the repository at this point in the history
…er collection (#3175)

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford authored Feb 14, 2024
1 parent db2e412 commit 6243cd1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/chart/templates/0000_50_olm_99-operatorstatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ status:
versions:
- name: operator
version: "0.0.1-snapshot"
relatedObjects:
- group: operators.coreos.com
name: packageserver
namespace: openshift-operator-lifecycle-manager
resource: clusterserviceversions
---
apiVersion: config.openshift.io/v1
kind: ClusterOperator
Expand All @@ -16,6 +21,10 @@ status:
versions:
- name: operator
version: "0.0.1-snapshot"
relatedObjects:
- group: ""
name: openshift-operator-lifecycle-manager
resource: namespaces
{{- if .Values.writePackageServerStatusName }}
---
apiVersion: config.openshift.io/v1
Expand All @@ -26,5 +35,13 @@ status:
versions:
- name: operator
version: "0.0.1-snapshot"
relatedObjects:
- group: ""
name: openshift-operator-lifecycle-manager
resource: namespaces
- group: operators.coreos.com
name: packageserver
namespace: openshift-operator-lifecycle-manager
resource: clusterserviceversions
{{- end }}
{{- end }}

0 comments on commit 6243cd1

Please sign in to comment.