Skip to content

Commit

Permalink
feat!: update kube requirement from 0.74 to 0.75 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm authored Sep 22, 2022
1 parent 14b91fb commit c9a1ff9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "MIT"

[dependencies]
chrono = "0.4"
kube = { version = "0.74", default-features = false, features = ["client"] }
k8s-openapi = { version = "0.15.0", default-features = false }
kube = { version = "0.75", default-features = false, features = ["client"] }
k8s-openapi = { version = "0.16.0", default-features = false }
serde = "1"
serde_json = "1"
thiserror = "1"
Expand All @@ -20,8 +20,8 @@ log = "0.4"
[dev-dependencies]
anyhow = "1"
async-std = { version = "1", features = ["attributes", "tokio1", "tokio02"] }
kube = "0.74"
k8s-openapi = { version = "0.15.0", default-features = false, features = ["v1_24"] }
kube = "0.75"
k8s-openapi = { version = "0.16.0", default-features = false, features = ["v1_24"] }
env_logger = "0.9"
rand = "0.8"
cmd_lib = "1"
8 changes: 4 additions & 4 deletions src/lease.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ impl LeaseLock {
Ok(l) => {
if self.are_we_leading(&l)? {
let lease = self.renew_lease().await?;
log::debug!("successfully renewed lease {}", l.name());
log::debug!("successfully renewed lease {}", l.name_any());

Ok(LeaseLockResult {
acquired_lease: true,
lease: Some(lease),
})
} else if self.has_lease_expired(&l)? {
let lease = self.acquire_lease(&l).await?;
log::info!("successfully acquired lease {}", lease.name());
log::info!("successfully acquired lease {}", lease.name_any());

Ok(LeaseLockResult {
acquired_lease: true,
Expand Down Expand Up @@ -129,7 +129,7 @@ impl LeaseLock {
}

let lease = self.create_lease().await?;
log::info!("successfully acquired lease {}", lease.name());
log::info!("successfully acquired lease {}", lease.name_any());

Ok(LeaseLockResult {
acquired_lease: true,
Expand Down Expand Up @@ -309,7 +309,7 @@ impl LeaseLock {
.await
.map_err(Error::ReleaseLease)?;

log::info!("successfully released lease {}", lease.name());
log::info!("successfully released lease {}", lease.name_any());

Ok(())
}
Expand Down

0 comments on commit c9a1ff9

Please sign in to comment.