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

Added in a first attempt at a solution to sharing watchers between stores and controllers #1128

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kube-core/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::request::Error;
use serde::Serialize;

/// Common query parameters used in watch/list/delete calls on collections
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub struct ListParams {
/// A selector to restrict the list of returned objects by their labels.
///
Expand Down
3 changes: 3 additions & 0 deletions kube-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,20 @@ json-patch = "0.3.0"
serde_json = "1.0.68"
thiserror = "1.0.29"
backoff = "0.4.0"
once_cell = "1.8.0"

[dependencies.k8s-openapi]
version = "0.17.0"
default-features = false

[dev-dependencies]
kube = { path = "../kube", features = ["derive", "client", "runtime"], version = "<1.0.0, >=0.60.0" }
maplit = "1.0.2"
serde_json = "1.0.68"
tokio = { version = "1.14.0", features = ["full", "test-util"] }
rand = "0.8.0"
schemars = "0.8.6"
async-trait = "0.1.51"

[dev-dependencies.k8s-openapi]
version = "0.17.0"
Expand Down
1 change: 1 addition & 0 deletions kube-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub mod scheduler;
pub mod utils;
pub mod wait;
pub mod watcher;
pub mod shared_store;

pub use controller::{applier, Controller};
pub use finalizer::finalizer;
Expand Down
Loading