Skip to content

OCPBUGS-15365: manager: filter the cache of configmaps#544

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
stevekuznetsov:skuznets/filter-configmap-cache
Jun 22, 2023
Merged

OCPBUGS-15365: manager: filter the cache of configmaps#544
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
stevekuznetsov:skuznets/filter-configmap-cache

Conversation

@stevekuznetsov
Copy link
Copy Markdown
Contributor

This controller LISTs and WATCHes ConfigMaps in order to react to changes to one and only one ConfigMap - the controller's (legacy) configuration. Previously, this controller would hold the entire cluster's ConfigMaps in cache in order to do this; with this change, we will only ever watch one ConfigMap and hold it in memory. This is unfortunately a cross-cutting concern and it blurs the control flow that previously exited, but we need these options to be passed to the cache constructor at the moment we create the manager, so it's not clear that there is a factoring that keeps this from happening until the controller initialization code runs, like where we add filtering today.

This controller LISTs and WATCHes ConfigMaps in order to react to
changes to one and only one ConfigMap - the controller's (legacy)
configuration. Previously, this controller would hold the entire
cluster's ConfigMaps in cache in order to do this; with this change, we
will only ever watch one ConfigMap and hold it in memory. This is
unfortunately a cross-cutting concern and it blurs the control flow that
previously exited, but we need these options to be passed to the cache
constructor at the moment we create the manager, so it's not clear that
there is a factoring that keeps this from happening until the controller
initialization code runs, like where we add filtering today.

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

bparees commented Jun 22, 2023

cc @abutcher

@abutcher
Copy link
Copy Markdown
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
Copy Markdown
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

Details 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
Copy Markdown
Contributor

openshift-ci Bot commented Jun 22, 2023

@stevekuznetsov: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 22, 2023

Codecov Report

Merging #544 (c79ac3b) into master (7d74e00) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #544   +/-   ##
=======================================
  Coverage   48.80%   48.80%           
=======================================
  Files          88       88           
  Lines        9853     9853           
=======================================
  Hits         4809     4809           
  Misses       4469     4469           
  Partials      575      575           

@openshift-merge-robot openshift-merge-robot merged commit 378a6e1 into openshift:master Jun 22, 2023
@stevekuznetsov
Copy link
Copy Markdown
Contributor Author

stevekuznetsov commented Jun 22, 2023

/retitle PORTENABLE-526: manager: filter the cache of configmaps

@stevekuznetsov stevekuznetsov changed the title manager: filter the cache of configmaps PORTENABLE-526: manager: filter the cache of configmaps Jun 22, 2023
@stevekuznetsov
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-4.13

@stevekuznetsov
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-4.12

@stevekuznetsov
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-4.11

@openshift-cherrypick-robot
Copy link
Copy Markdown

@stevekuznetsov: new pull request created: #551

Details

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
Copy link
Copy Markdown

@stevekuznetsov: new pull request created: #552

Details

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
Copy link
Copy Markdown

@stevekuznetsov: new pull request created: #553

Details

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: manager: filter the cache of configmaps PORTENABLE-528: manager: filter the cache of configmaps Jun 23, 2023
@stevekuznetsov stevekuznetsov changed the title PORTENABLE-528: manager: filter the cache of configmaps OCPBUGS-15365: manager: filter the cache of configmaps Jun 23, 2023
@openshift-ci-robot
Copy link
Copy Markdown
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.

Details

In response to this:

This controller LISTs and WATCHes ConfigMaps in order to react to changes to one and only one ConfigMap - the controller's (legacy) configuration. Previously, this controller would hold the entire cluster's ConfigMaps in cache in order to do this; with this change, we will only ever watch one ConfigMap and hold it in memory. This is unfortunately a cross-cutting concern and it blurs the control flow that previously exited, but we need these options to be passed to the cache constructor at the moment we create the manager, so it's not clear that there is a factoring that keeps this from happening until the controller initialization code runs, like where we add filtering today.

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
Copy Markdown
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@stevekuznetsov: Jira Issue OCPBUGS-15365 is in an unrecognized state (MODIFIED) and will not be moved to the MODIFIED state.

Details

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
Copy Markdown
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Copy Markdown
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.

Details

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.

6 participants