Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update relatedObjects #353

Merged

Conversation

tremes
Copy link
Contributor

@tremes tremes commented Feb 25, 2021

Updated our ClusterOperator relatedObjects.

Categories

  • Bugfix
  • Enhancement
  • Backporting
  • Others (CI, Infrastructure, Documentation)

Sample archive

No new data

Documentation

No update.

Unit Tests

No new test

Privacy

Yes. There are no sensitive data in the newly collected information.

Changelog

References

https://issues.redhat.com/browse/???
https://bugzilla.redhat.com/show_bug.cgi?id=???
https://access.redhat.com/solutions/???

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 25, 2021
@tremes
Copy link
Contributor Author

tremes commented Feb 25, 2021

@wking Can you please check?

@@ -200,7 +200,12 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
if len(c.namespace) > 0 {
existing.Status.RelatedObjects = []configv1.ObjectReference{
{Resource: "namespaces", Name: c.namespace},
{Group: "apps", Resource: "deployments", Namespace: c.namespace, Name: "insights-operator"},
{Resource: "secrets", Namespace: "openshift-config", Name: "pull-secret"},
{Resource: "secrets", Namespace: "openshift-config", Name: "support"},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is kinda optional, but we try to read it so I think it makes sense to include it.

{Resource: "serviceaccounts", Namespace: c.namespace, Name: "gather"},
{Resource: "serviceaccounts", Namespace: c.namespace, Name: "operator"},
{Resource: "services", Namespace: c.namespace, Name: "metrics"},
{Resource: "configmaps", Namespace: c.namespace, Name: "service-ca-bundle"},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -200,7 +200,12 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
if len(c.namespace) > 0 {
existing.Status.RelatedObjects = []configv1.ObjectReference{
{Resource: "namespaces", Name: c.namespace},
{Group: "apps", Resource: "deployments", Namespace: c.namespace, Name: "insights-operator"},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I think we can keep this one...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep it if you like, but deployments that live in referenced namespaces are covered too.

@tremes tremes force-pushed the updated_relatedObjects branch from 4f3e5c3 to f169a0a Compare February 25, 2021 15:11
@rluders
Copy link
Contributor

rluders commented Mar 1, 2021

A simple change, just reading it and seems pretty good.
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2021
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rluders, tremes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 2268d25 into openshift:master Mar 1, 2021
@tremes tremes deleted the updated_relatedObjects branch May 6, 2022 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants