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

Introduce insightsoperators.openshift.io CR & implement its gather st… #666

Merged
merged 4 commits into from
Aug 30, 2022

Conversation

tremes
Copy link
Contributor

@tremes tremes commented Aug 23, 2022

…atus attribute

This add a new CR for the insightsoperators.openshift.io resource and implements its gatherStatus part.

Categories

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

Sample Archive

No new data

Documentation

Unit Tests

extended a bit

  • pkg/controller/periodic/periodic_test.go

Privacy

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

Changelog

Breaking Changes

No

References

https://issues.redhat.com/browse/CCXDEV-8885
https://access.redhat.com/solutions/???

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 23, 2022
@openshift-ci openshift-ci bot requested review from rluders and tisnik August 23, 2022 10:43
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2022
@wking
Copy link
Member

wking commented Aug 23, 2022

You probably want to extend relatedObjects so must-gather and friends pick these up. Currently:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_insights-operator/666/pull-ci-openshift-insights-operator-master-e2e/1562059761355067392/artifacts/e2e/gather-extra/artifacts/clusteroperators.json | jq -c '.items[] | select(.metadata.name == "insights").status.relatedObjects[]'
{"group":"","name":"openshift-insights","resource":"namespaces"}
{"group":"apps","name":"insights-operator","namespace":"openshift-insights","resource":"deployments"}
{"group":"","name":"pull-secret","namespace":"openshift-config","resource":"secrets"}
{"group":"","name":"support","namespace":"openshift-config","resource":"secrets"}
{"group":"","name":"gather","namespace":"openshift-insights","resource":"serviceaccounts"}
{"group":"","name":"operator","namespace":"openshift-insights","resource":"serviceaccounts"}
{"group":"","name":"metrics","namespace":"openshift-insights","resource":"services"}
{"group":"","name":"service-ca-bundle","namespace":"openshift-insights","resource":"configmaps"}

And:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_insights-operator/666/pull-ci-openshift-insights-operator-master-e2e/1562059761355067392/artifacts/e2e/gather-must-gather/artifacts/must-gather.tar | tar -tvz | grep insightsoperator
-rw------- 1008750000/root   19757 2022-08-23 07:53 registry-build04-ci-openshift-org-ci-op-rr1gwtx2-stable-sha256-7ba86eeb5e5e97946caaff9c94f1e1350c91b8773cf49bbfc9d6a36ab4f47280/cluster-scoped-resources/apiextensions.k8s.io/customresourcedefinitions/insightsoperators.operator.openshift.io.yaml
-rw------- 1008750000/root    5242 2022-08-23 07:53 registry-build04-ci-openshift-org-ci-op-rr1gwtx2-stable-sha256-7ba86eeb5e5e97946caaff9c94f1e1350c91b8773cf49bbfc9d6a36ab4f47280/cluster-scoped-resources/apiserver.openshift.io/apirequestcounts/insightsoperators.v1.operator.openshift.io.yaml

apiVersion: operator.openshift.io/v1
kind: InsightsOperator
metadata:
name: cluster
Copy link
Member

Choose a reason for hiding this comment

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

You need to annotate this with include.release.openshift.io/... for the cluster profiles it should belong to. See your other manifests for examples. As it stands now:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_insights-operator/666/pull-ci-openshift-insights-operator-master-e2e/1562059761355067392/artifacts/e2e/gather-extra/artifacts/pods/openshift-cluster-version_cluster-version-operator-5bff5b8bd6-2d6n7_cluster-version-operator.log | grep kind=InsightsOperator
I0823 13:42:20.564370       1 payload.go:210] excluding 0000_50_insights-operator_09-operator-cr.yaml group=operator.openshift.io kind=InsightsOperator namespace= name=cluster: no annotations
I0823 13:42:21.332159       1 payload.go:210] excluding 0000_50_insights-operator_09-operator-cr.yaml group=operator.openshift.io kind=InsightsOperator namespace= name=cluster: no annotations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 23, 2022
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 24, 2022
@tremes tremes changed the title WIP Introduce insightsoperators.openshift.io CR & implement its gather st… Introduce insightsoperators.openshift.io CR & implement its gather st… Aug 25, 2022
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 25, 2022
@tremes
Copy link
Contributor Author

tremes commented Aug 25, 2022

/retest

@sferich888
Copy link

/label px-approved

@openshift-ci openshift-ci bot added the px-approved Signifies that Product Support has signed off on this PR label Aug 25, 2022
Copy link
Contributor

@rluders rluders left a comment

Choose a reason for hiding this comment

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

I tested yesterday.
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2022
@openshift-ci
Copy link

openshift-ci bot commented Aug 25, 2022

[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

@xJustin
Copy link
Contributor

xJustin commented Aug 26, 2022

/label docs-approved

@openshift-ci openshift-ci bot added the docs-approved Signifies that Docs has signed off on this PR label Aug 26, 2022
@tremes
Copy link
Contributor Author

tremes commented Aug 26, 2022

/test insights-operator-e2e-tests

@JoaoFula
Copy link
Contributor

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Aug 30, 2022
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 2 against base HEAD 210ef9b and 8 for PR HEAD facc0f2 in total

@openshift-ci
Copy link

openshift-ci bot commented Aug 30, 2022

@tremes: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 682fe3f into openshift:master Aug 30, 2022
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. docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants