Skip to content

Commit

Permalink
Change status in invalid admission response
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Sep 15, 2022
1 parent adf736b commit 4a9a76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube-core/src/admission.rs
Expand Up @@ -305,7 +305,7 @@ impl AdmissionResponse {
},
uid: Default::default(),
allowed: false,
result: Status::failure("", &reason.to_string()),
result: Status::failure(&reason.to_string(), "InvalidRequest"),
patch: None,
patch_type: None,
audit_annotations: Default::default(),
Expand Down

0 comments on commit 4a9a76d

Please sign in to comment.