Skip to content

perf: use UnsafeDisableDeepCopy and cache for list Unstructured Resources (Extension Server) #7626

@Inode1

Description

@Inode1

Description:

EnvoyGateway currently watches and lists Unstructured resources for the Extension Server. By default, the controller-runtime does not use the client-side cache and performs DeepCopy on list operations for these resources

To enable caching for Unstructured resources

client.Options{
    Cache: &client.CacheOptions{
        Unstructured: true,
    },
}

To avoid DeepCopy in

if err := r.client.List(ctx, uExtResourceList); err != nil {
use client.UnsafeDisableDeepCopy options

[optional Relevant Links:]

Any extra documentation required to understand the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions