mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-11-21 22:50:20 +00:00
Support for metadata-only fetches in k8s_info module (#1030)
* Support for metadata-only fetches in k8s_info module * Fix integration test assert * Add missing changelog fragment * Fix linters and sanity checks * Fix linters * Apply suggestion from @abikouo * fix: resolve linter errors after rebase Fix import sorting and apply black formatting to k8s_info.py and args_common.py to pass tox -e linters. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com> Co-authored-by: aubin bikouo <abikouo@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Bikouo Aubin
aubin bikouo
Claude Opus 4.6
parent
dd4ca7a8b0
commit
08a761fc17
@@ -144,3 +144,18 @@ DELETE_OPTS_ARG_SPEC = {
|
||||
"options": {"resourceVersion": {"type": "str"}, "uid": {"type": "str"}},
|
||||
},
|
||||
}
|
||||
|
||||
METADATA_ONLY_HEADERS_SPEC = {
|
||||
"accept": {"type": "str"},
|
||||
}
|
||||
|
||||
METADATA_ONLY_HEADER_VALUES = {
|
||||
"partial_object": (
|
||||
"application/json;as=PartialObjectMetadata;g=meta.k8s.io;v=v1,"
|
||||
"application/json;q=0.9"
|
||||
),
|
||||
"partial_object_list": (
|
||||
"application/json;as=PartialObjectMetadataList;g=meta.k8s.io;v=v1,"
|
||||
"application/json;q=0.9"
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user