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

OCPBUGS-15365: operator: use a partial metadata watch for Namespaces #546

Conversation

stevekuznetsov
Copy link
Contributor

We only watch namespaces to react to their creation, and the only information we need about a namespace is its' name, so we can use a partial metadata watch to winnow down the size of our cache. Namespaces don't really store much in spec and status, so this effect is likely to not be enormous, but every bit helps.

We only watch namespaces to react to their creation, and the only
information we need about a namespace is its' name, so we can use a
partial metadata watch to winnow down the size of our cache. Namespaces
don't really store much in spec and status, so this effect is likely to
not be enormous, but every bit helps.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #546 (0f403aa) into master (7d74e00) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
- Coverage   48.80%   48.78%   -0.03%     
==========================================
  Files          88       88              
  Lines        9853     9858       +5     
==========================================
  Hits         4809     4809              
- Misses       4469     4474       +5     
  Partials      575      575              
Impacted Files Coverage Δ
...redentialsrequest/credentialsrequest_controller.go 53.53% <0.00%> (-0.55%) ⬇️

@stevekuznetsov
Copy link
Contributor Author

stevekuznetsov commented Jun 22, 2023

/retitle PORTENABLE-526: operator: use a partial metadata watch for Namespaces

@stevekuznetsov stevekuznetsov changed the title operator: use a partial metadata watch for Namespaces PORTENABLE-526: operator: use a partial metadata watch for Namespaces Jun 22, 2023
@abutcher
Copy link
Member

/lgtm

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

openshift-ci bot commented Jun 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abutcher, 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 Jun 22, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 22, 2023

@stevekuznetsov: 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 f9a6219 into openshift:master Jun 22, 2023
8 checks passed
@stevekuznetsov
Copy link
Contributor Author

/cherry-pick release-4.13

@stevekuznetsov
Copy link
Contributor Author

/cherry-pick release-4.12

@stevekuznetsov
Copy link
Contributor Author

/cherry-pick release-4.11

@openshift-cherrypick-robot

@stevekuznetsov: new pull request created: #548

In response to this:

/cherry-pick release-4.13

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.

@openshift-cherrypick-robot

@stevekuznetsov: new pull request created: #549

In response to this:

/cherry-pick release-4.12

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.

@openshift-cherrypick-robot

@stevekuznetsov: new pull request created: #550

In response to this:

/cherry-pick release-4.11

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.

@stevekuznetsov stevekuznetsov changed the title PORTENABLE-526: operator: use a partial metadata watch for Namespaces PORTENABLE-528: operator: use a partial metadata watch for Namespaces Jun 23, 2023
@stevekuznetsov stevekuznetsov changed the title PORTENABLE-528: operator: use a partial metadata watch for Namespaces OCPBUGS-15365: operator: use a partial metadata watch for Namespaces Jun 23, 2023
@openshift-ci-robot
Copy link
Contributor

@stevekuznetsov: Jira Issue OCPBUGS-15365: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-15365 has not been moved to the MODIFIED state.

In response to this:

We only watch namespaces to react to their creation, and the only information we need about a namespace is its' name, so we can use a partial metadata watch to winnow down the size of our cache. Namespaces don't really store much in spec and status, so this effect is likely to not be enormous, but every bit helps.

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.

@stevekuznetsov
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@stevekuznetsov: Jira Issue OCPBUGS-15365: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-15365 has been moved to the MODIFIED state.

In response to this:

/jira refresh

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.

@stevekuznetsov stevekuznetsov changed the title OCPBUGS-15365: operator: use a partial metadata watch for Namespaces OCPBUGS-15365: operator: use a partial metadata watch for Namespaces Jun 23, 2023
@stevekuznetsov
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@stevekuznetsov: Jira Issue OCPBUGS-15365: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-15365 has not been moved to the MODIFIED state.

In response to this:

/jira refresh

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.

@stevekuznetsov
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@stevekuznetsov: Jira Issue OCPBUGS-15365: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-15365 has not been moved to the MODIFIED state.

In response to this:

/jira refresh

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.

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.

None yet

5 participants