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

controller-runtime cache should only list-watch resources in the operator namespace #890

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

tariq1890
Copy link
Contributor

The controller-runtime Manager object exposes the cache.Options struct which contains fields used to set the caching strategy of the controller.

By default, the controller's cache lists and watches namespaced-resources from all namespaces. With this change, we set the caching strategy to only list and watch for K8s resources that are created in the gpu-operator's namespace.

Note: This change only affects Kubernetes resources that have the namespace-scope. The cluster-scoped resources like Nodes, ClusterPolicy, NVIDIADriver will continue to be cached as before

…ator namespace

Signed-off-by: Tariq Ibrahim <[email protected]>

add openshift namespace to the controller-runtime cache

Signed-off-by: Tariq Ibrahim <[email protected]>
@tariq1890 tariq1890 enabled auto-merge August 2, 2024 18:04
@tariq1890 tariq1890 merged commit 2993021 into main Aug 2, 2024
11 checks passed
@tariq1890 tariq1890 deleted the set-cache-ns branch August 2, 2024 19:18
mikemckiernan added a commit to mikemckiernan/cloud-native-docs that referenced this pull request Oct 31, 2024
CNT-5289

Documents:
- NVIDIA/gpu-operator#890
- NVIDIA/gpu-operator#986

Signed-off-by: Mike McKiernan <[email protected]>
mikemckiernan added a commit to NVIDIA/cloud-native-docs that referenced this pull request Oct 31, 2024
* Update Kubernetes supported versions
Documents CNT-5342

* Support for Net Op 24.7.0
Documents CNT-5346

* MIG profiles for GH200 144GB HBM3e
Documents NVIDIA/gpu-operator#1057.

* Troubleshooting taints and tolerations

* Tolerations for clean up and upgrade CRD jobs
Documents these PRs:
- NVIDIA/gpu-operator#967
- NVIDIA/gpu-operator#960

* RBAC improvements
CNT-5289
Documents:
- NVIDIA/gpu-operator#890
- NVIDIA/gpu-operator#986

* Fixed issue with CRI-O
CNT-5327
Documents NVIDIA/nvidia-container-toolkit#686

* Automatic upgrade of CRDs
CNT-5328
Documents NVIDIA/gpu-operator#1024

* Driver pod name and IP env vars
CNT-5329
4567038
Documents NVIDIA/gpu-operator#1026

* Precompiled driver containers are GA
Signed-off-by: Mike McKiernan <[email protected]>

* KubeVirt and OSV vGPU v17.4

* GH200 NVL2 144GB HBM3e name

* Add 565 driver

* NFD version and driver container envvars

Signed-off-by: Mike McKiernan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants