Skip to content

Conversation

@fchiacchiaretta
Copy link

SUMMARY

This pull request adds support for a new metadata_only option in k8s_info module, enabling support for K8S API Metadata-only fetches.

This helps reducing memory footprint when retrieving large collections of objects.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

k8s_info

ADDITIONAL INFORMATION

Added metadata_only option in k8s_info module, enabling support for K8S API Metadata-only fetches.

The Accept header used when metadata_only option is true also includes a fallback value application/json;q=0.9 as documented upstream, so that full objects are returned if the API doesn't support partial responses instead of an HTTP 406 error.

Added integration tests to verify the behavior of the metadata_only option.

Closes #1022

@softwarefactory-project-zuul
Copy link

@softwarefactory-project-zuul
Copy link

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.

Metadata-only fetches

1 participant