Skip to content

doc: add note to described the possibility to use MultiNamespacedCach… #2281

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

Merged
merged 3 commits into from
Dec 5, 2019
Merged

doc: add note to described the possibility to use MultiNamespacedCach… #2281

merged 3 commits into from
Dec 5, 2019

Conversation

camilamacedo86
Copy link
Contributor

Description of the change:

  • Add a note to redirect the user to check in the controller-runtime docs the possibility to use MultiNamespacedCache for watch/cache N namespaces.

Motivation for the change:
Note: If this PR is fixing an issue make sure to add a note saying:
Closes #2008

Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 2, 2019
@camilamacedo86 camilamacedo86 removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 3, 2019
@camilamacedo86
Copy link
Contributor Author

Hi @joelanford,

removed the hold since it the kubernetes-sigs/controller-runtime#701 is merged.

Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM

// Create a new Cmd to provide shared dependencies and start components
mgr, err := manager.New(cfg, manager.Options{
NewCache: cache.MultiNamespacedCacheBuilder(namespaces),
MapperProvider: restmapper.NewDynamicRESTMapper,
Copy link
Member

Choose a reason for hiding this comment

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

Now that kubernetes-sigs/controller-runtime#554 is merged and we've updated to v0.4.0, we should remove our dynamic rest mapper implementation and any references to it.

That can be done in a follow up though.

@camilamacedo86 camilamacedo86 merged commit 31846a5 into operator-framework:master Dec 5, 2019
@camilamacedo86 camilamacedo86 deleted the manager-options-doc branch December 5, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MultiNamespacedCacheBuilder option in the docs which was introduced with the #1512 and is valid just in the master branch.
4 participants