Skip to content

Commit

Permalink
clippy fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Detjens <[email protected]>
  • Loading branch information
detjensrobert committed Jan 13, 2025
1 parent c32255b commit 5752f3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ pub async fn kube_resource_for(

let name = kube_object.name_any();

kube::discovery::pinned_kind(&client, &gvk)
kube::discovery::pinned_kind(client, &gvk)
.await
.with_context(|| {
format!(
"could not find resource type {:?} on cluster",
kube_object.types.clone().unwrap_or(TypeMeta::default())
kube_object.types.clone().unwrap_or_default()
)
})
}
Expand All @@ -124,7 +124,7 @@ pub async fn kube_api_for(
) -> Result<kube::Api<DynamicObject>> {
let ns = kube_object.metadata.namespace.as_deref();

let (resource, caps) = kube_resource_for(&kube_object, &client).await?;
let (resource, caps) = kube_resource_for(kube_object, &client).await?;

if caps.scope == kube::discovery::Scope::Cluster {
Ok(kube::Api::all_with(client, &resource))
Expand Down
2 changes: 1 addition & 1 deletion src/cluster_setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async fn apply_manifest_yaml(client: kube::Client, manifest: &str) -> Result<()>
let pp = PatchParams::apply("beavercds").force();

// this manifest has multiple documents (crds, deployment)
for yaml in multidoc_deserialize(&manifest)? {
for yaml in multidoc_deserialize(manifest)? {
let obj: DynamicObject = serde_yml::from_value(yaml)?;
debug!(
"applying resource {} {}",
Expand Down

0 comments on commit 5752f3e

Please sign in to comment.