Skip to content

Commit

Permalink
Address kube-rs/kube#739: Remove 'api_version' and 'kind' from Server…
Browse files Browse the repository at this point in the history
… struct in tests
  • Loading branch information
alpeb committed Dec 16, 2021
1 parent c5c705b commit 64df2fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions policy-controller/k8s/index/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,6 @@ mod tests {
port: Port,
) -> k8s::policy::Server {
k8s::policy::Server {
api_version: "v1alpha1".to_string(),
kind: "Server".to_string(),
metadata: k8s::ObjectMeta {
namespace: Some(ns.into()),
name: Some(name.into()),
Expand Down
4 changes: 0 additions & 4 deletions policy-controller/k8s/index/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ fn mk_server(
pod_labels: impl IntoIterator<Item = (&'static str, &'static str)>,
) -> k8s::policy::Server {
k8s::policy::Server {
api_version: "v1alpha1".to_string(),
kind: "Server".to_string(),
metadata: k8s::ObjectMeta {
namespace: Some(ns.into()),
name: Some(name.into()),
Expand All @@ -533,8 +531,6 @@ fn mk_authz(
client: k8s::policy::authz::Client,
) -> k8s::policy::ServerAuthorization {
k8s::policy::ServerAuthorization {
api_version: "v1alpha1".to_string(),
kind: "ServerAuthorization".to_string(),
metadata: k8s::ObjectMeta {
namespace: Some(ns.into()),
name: Some(name.into()),
Expand Down

0 comments on commit 64df2fc

Please sign in to comment.