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

add fieldManager querystring to all operations #1031

Merged
merged 2 commits into from Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions kube-core/src/request.rs
Expand Up @@ -118,6 +118,9 @@ impl Request {
if pp.dry_run {
qp.append_pair("dryRun", "All");
}
if let Some(ref fm) = pp.field_manager {
qp.append_pair("fieldManager", fm);
}
let urlstr = qp.finish();
let req = http::Request::post(urlstr).header(http::header::CONTENT_TYPE, JSON_MIME);
req.body(data).map_err(Error::BuildRequest)
Expand Down Expand Up @@ -195,6 +198,9 @@ impl Request {
if pp.dry_run {
qp.append_pair("dryRun", "All");
}
if let Some(ref fm) = pp.field_manager {
qp.append_pair("fieldManager", fm);
}
let urlstr = qp.finish();
let req = http::Request::put(urlstr).header(http::header::CONTENT_TYPE, JSON_MIME);
req.body(data).map_err(Error::BuildRequest)
Expand Down Expand Up @@ -268,6 +274,9 @@ impl Request {
if pp.dry_run {
qp.append_pair("dryRun", "All");
}
if let Some(ref fm) = pp.field_manager {
qp.append_pair("fieldManager", fm);
}
clux marked this conversation as resolved.
Show resolved Hide resolved
let urlstr = qp.finish();
let req = http::Request::put(urlstr).header(http::header::CONTENT_TYPE, JSON_MIME);
req.body(data).map_err(Error::BuildRequest)
Expand Down
3 changes: 3 additions & 0 deletions kube-core/src/subresource.rs
Expand Up @@ -105,6 +105,9 @@ impl Request {
if pp.dry_run {
qp.append_pair("dryRun", "All");
}
if let Some(ref fm) = pp.field_manager {
qp.append_pair("fieldManager", fm);
}
let urlstr = qp.finish();
// eviction body parameters are awkward, need metadata with name
let data = serde_json::to_vec(&serde_json::json!({
Expand Down