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

🐛 cache: stop reporting an error from a CRD lister on incorrect cluster name #2592

Conversation

p0lyn0mial
Copy link
Contributor

Summary

since all available CRDs for the cache server are stored in bootstrap.SystemCRDLogicalCluster
and there is only a single registry/instance per a CRD
there is no need to filter by the given cluster

stops printing the following message
"programmer error" err="cluster-unaware crd lister got asked for root cluster"
when a request for a resource was made (i.e.: shards/*/clusters/abc/apis/apis.kcp.io/v1alpha1/apiexports') (https://github.com/kcp-dev/kubernetes/blob/b0ffa0d98215b3ec8a1b00f2f001ad86784be8c6/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go#L299)

Related issue(s)

Fixes #

@openshift-ci openshift-ci bot requested review from ncdc and sttts January 11, 2023 13:09
… name

since all available CRDs are stored in bootstrap.SystemCRDLogicalCluster
and there is only a single registry per a CRD
there is no need to filter by the given cluster
@p0lyn0mial p0lyn0mial force-pushed the cache-crdlister-stop-the-bleeding branch from 21e02a7 to af8705f Compare January 11, 2023 13:20
Copy link
Contributor

@stevekuznetsov stevekuznetsov left a comment

Choose a reason for hiding this comment

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

/retest

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 11, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 11, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stevekuznetsov

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 11, 2023
@p0lyn0mial
Copy link
Contributor Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit fb014bc into kcp-dev:main Jan 12, 2023
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.

3 participants