-
Notifications
You must be signed in to change notification settings - Fork 51
Update Rust dependencies #802
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
Changes from all commits
b4ca7fa
b7d6571
459c20b
3a056b1
4eed9ff
1b15474
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,23 +42,23 @@ nonzero_ext = "0.3" | |
| # these package versions should be moved in lockstep to match upstream | ||
| actix-web = { version = "4.9", features = ["rustls-0_23"] } | ||
| tracing-actix-web = "0.7" | ||
| opentelemetry-instrumentation-actix-web = { version = "0.22", features = ["metrics"] } | ||
| opentelemetry-instrumentation-actix-web = { version = "0.23", features = ["metrics"] } | ||
|
|
||
| # opentelemetry dependencies | ||
| opentelemetry = { version = "0.29", features = ["metrics"]} | ||
| opentelemetry_sdk = { version = "0.29", features = ["rt-tokio-current-thread", "metrics"]} | ||
| opentelemetry-prometheus = "0.29" | ||
| opentelemetry = { version = "0.31", features = ["metrics"]} | ||
| opentelemetry_sdk = { version = "0.31", features = ["rt-tokio-current-thread", "metrics"]} | ||
| opentelemetry-prometheus = "0.31" | ||
| prometheus = "0.14" | ||
|
|
||
| # k8s-openapi must match the version required by kube and enable a k8s version feature | ||
| k8s-openapi = { version = "0.21", default-features = false, features = ["v1_24"] } | ||
| kube = { version = "0.88", default-features = false, features = [ "derive", "runtime", "rustls-tls" ] } | ||
| k8s-openapi = { version = "0.26", default-features = false, features = ["v1_30"] } | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although this is set to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kubernetes has a +/- 1 support story for the API, so 1.30 should work for 1.29. We use very stable elements of the k8s API - theoretically very new versions of k8s could make changes that we don't support, but it is unlikely.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The https://kubernetes.io/releases/version-skew-policy/ says slightly different - the controller/client should not be newer than the api-server. So technically there is no guaranteed compatibility between controllers under version Is it possible to pin it to 1_29 until we drop the 1.29 variants?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that's necessary since we've confirmed the ability to update on a 1.29 cluster. Extended support does drop soon, but I don't think we should hold these updates back when we've validated the operator functionality. |
||
| kube = { version = "2", default-features = false, features = [ "derive", "runtime", "rustls-tls" ] } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We want to maintain compatibility with |
||
|
|
||
| regex = "1" | ||
| reqwest = { version = "0.12", default-features = false, features = [ "json", "rustls-tls" ] } | ||
| rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs", "logging", "std", "tls12"] } | ||
| rustls-pemfile = { version = "2" } | ||
| schemars = "0.8" | ||
| schemars = "1" | ||
| semver = "1" | ||
| serde = "1" | ||
| serde_json = "1" | ||
|
|
@@ -72,4 +72,3 @@ tracing = "0.1" | |
| tracing-subscriber = { version = "0.3", features = ["registry", "env-filter", "json"] } | ||
| uuid = { version = "1", default-features = false, features = ["serde", "v4"] } | ||
| validator = { version = "0.20", features = ["derive"] } | ||
| webpki = { version = "0.22", features = ["std"] } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,6 @@ awc = { workspace = true } | |
| opentelemetry-instrumentation-actix-web = { workspace = true } | ||
| rustls = { workspace = true } | ||
| rustls-pemfile = { workspace = true } | ||
| webpki = { workspace = true } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What prompts this removal? Is it just marked as unused?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just unused. We could leave it but it adds an unnecessary dependency and we have to keep |
||
| opentelemetry = { workspace = true } | ||
| opentelemetry_sdk = { workspace = true } | ||
| opentelemetry-prometheus = { workspace = true } | ||
|
|
@@ -40,7 +39,7 @@ log = { workspace = true } | |
| mockall = { workspace = true, optional = true } | ||
| nonzero_ext = { workspace = true } | ||
| reqwest = { workspace = true } | ||
| schemars = "0.8.11" | ||
| schemars = { workspace = true } | ||
| serde = { workspace = true, features = [ "derive" ] } | ||
| serde_json = { workspace = true } | ||
| snafu = { workspace = true } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -275,7 +275,11 @@ pub(crate) mod test { | |
| ) -> K8STokenAuthorizor<MockTokenReviewer> { | ||
| let mut pod_store = reflector::store::Writer::<Pod>::default(); | ||
| let pod_reader = pod_store.as_reader(); | ||
| pod_store.apply_watcher_event(&Event::Restarted(pods)); | ||
| pod_store.apply_watcher_event(&Event::Init); | ||
| for pod in pods { | ||
| pod_store.apply_watcher_event(&Event::InitApply(pod)); | ||
| } | ||
| pod_store.apply_watcher_event(&Event::InitDone); | ||
|
Comment on lines
-278
to
+282
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know what the context on this change is?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was an API change in the |
||
|
|
||
| K8STokenAuthorizor::new(reviewer, namespace.to_string(), pod_reader, audiences) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -153,7 +153,7 @@ pub mod apiserver_error { | |||||
|
|
||||||
| #[snafu(display("Error creating prometheus registry: '{}'", source))] | ||||||
| PrometheusRegsitry { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: we have some pre-existing typo...
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is an already big change I'd like to save this for a separate PR. |
||||||
| source: opentelemetry_sdk::metrics::MetricError, | ||||||
| source: opentelemetry_sdk::error::OTelSdkError, | ||||||
| }, | ||||||
| } | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -190,7 +190,7 @@ pub mod controller_error { | |||||
|
|
||||||
| #[snafu(display("Error creating prometheus registry: '{}'", source))] | ||||||
| PrometheusRegsitry { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: we have pre-existing typo
Suggested change
|
||||||
| source: opentelemetry_sdk::metrics::MetricError, | ||||||
| source: opentelemetry_sdk::error::OTelSdkError, | ||||||
| }, | ||||||
| } | ||||||
| } | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be worth querying the metric endpoint to see that they are properly exposed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like prometheus metrics are being properly exposed.