Skip to content

Commit 9eb70ec

Browse files
ref(*): Refactors some copied code and bumps version
This fixes a few Rust-y things and dedupes some code I found while addressing clippy errors Signed-off-by: Taylor Thomas <[email protected]>
1 parent 9a9a4a8 commit 9eb70ec

File tree

6 files changed

+168
-238
lines changed

6 files changed

+168
-238
lines changed

Cargo.lock

+16-52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+48-43
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasmcloud-operator"
3-
version = "0.2.0"
3+
version = "0.2.0-alpha.1"
44
edition = "2021"
55

66
[[bin]]
@@ -21,53 +21,60 @@ path = "src/lib.rs"
2121
edition = "2021"
2222

2323
[dependencies]
24-
async-nats = {workspace = true}
25-
axum = {workspace = true}
26-
axum-server = {workspace = true}
27-
anyhow = {workspace = true}
28-
ctrlc = {workspace = true}
29-
cloudevents-sdk = {workspace = true}
30-
config = {workspace = true}
31-
futures = {workspace = true}
32-
handlebars = {workspace = true}
33-
json-patch = {workspace = true}
34-
k8s-openapi = {workspace = true, features = ["v1_28", "schemars"]}
35-
kube = {workspace = true, features = ["runtime", "derive", "default"]}
36-
opentelemetry = {workspace = true}
37-
opentelemetry-otlp = {workspace = true}
38-
rcgen = {workspace = true}
39-
schemars = {workspace = true}
40-
secrecy = {workspace = true}
41-
serde = {workspace = true}
42-
serde_json = {workspace = true}
43-
serde_yaml = {workspace = true}
44-
thiserror = {workspace = true}
45-
time = {workspace = true}
46-
tokio = {workspace = true}
47-
tokio-util = {workspace = true}
48-
tracing = {workspace = true}
49-
tracing-opentelemetry = {workspace = true}
50-
tracing-subscriber = {workspace = true}
51-
utoipa = {workspace = true}
52-
uuid = {workspace = true}
53-
wadm = {workspace = true}
54-
wash-lib = {workspace = true}
55-
wasmcloud-operator-types = {workspace = true}
24+
async-nats = { workspace = true }
25+
axum = { workspace = true }
26+
axum-server = { workspace = true }
27+
anyhow = { workspace = true }
28+
ctrlc = { workspace = true }
29+
cloudevents-sdk = { workspace = true }
30+
config = { workspace = true }
31+
futures = { workspace = true }
32+
handlebars = { workspace = true }
33+
json-patch = { workspace = true }
34+
k8s-openapi = { workspace = true, features = ["v1_28", "schemars"] }
35+
kube = { workspace = true, features = ["runtime", "derive", "default"] }
36+
opentelemetry = { workspace = true }
37+
opentelemetry-otlp = { workspace = true }
38+
rcgen = { workspace = true }
39+
schemars = { workspace = true }
40+
secrecy = { workspace = true }
41+
serde = { workspace = true }
42+
serde_json = { workspace = true }
43+
serde_yaml = { workspace = true }
44+
thiserror = { workspace = true }
45+
time = { workspace = true }
46+
tokio = { workspace = true }
47+
tokio-util = { workspace = true }
48+
tracing = { workspace = true }
49+
tracing-opentelemetry = { workspace = true }
50+
tracing-subscriber = { workspace = true }
51+
utoipa = { workspace = true }
52+
uuid = { workspace = true }
53+
wadm = { workspace = true }
54+
wash-lib = { workspace = true }
55+
wasmcloud-operator-types = { workspace = true }
5656

5757
[workspace.dependencies]
5858
async-nats = "0.33"
5959
axum = { version = "0.6", features = ["headers"] }
6060
axum-server = { version = "0.4", features = ["tls-rustls"] }
6161
anyhow = "1"
62-
config = {version = "0.14", default-features = false, features = ["convert-case", "async"]}
62+
config = { version = "0.14", default-features = false, features = [
63+
"convert-case",
64+
"async",
65+
] }
6366
cloudevents-sdk = "0.7"
6467
ctrlc = "3"
6568
futures = "0.3"
6669
handlebars = "5.1"
6770
json-patch = "1.2.0"
68-
k8s-openapi = { version = "0.20", default-features = false}
69-
kube = { version = "0.87", default-features = false}
70-
opentelemetry = { version = "0.20", features = ["metrics", "trace", "rt-tokio"] }
71+
k8s-openapi = { version = "0.20", default-features = false }
72+
kube = { version = "0.87", default-features = false }
73+
opentelemetry = { version = "0.20", features = [
74+
"metrics",
75+
"trace",
76+
"rt-tokio",
77+
] }
7178
opentelemetry-otlp = { version = "0.13", features = ["tokio"] }
7279
rcgen = "0.11"
7380
schemars = "0.8"
@@ -84,14 +91,12 @@ tracing-opentelemetry = "0.20"
8491
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
8592
utoipa = { version = "4.1", features = ["axum_extras"] }
8693
uuid = { version = "1", features = ["v5"] }
87-
wadm = "0.11.0-alpha.2"
88-
wash-lib = { git = "https://github.com/wasmcloud/wasmcloud.git",tag = "wash-cli-v0.27.0-alpha.2" }
89-
wasmcloud-operator-types = { version="*", path = "./crates/types" }
94+
wadm = "0.11.0-alpha.3"
95+
wash-lib = "0.20.0-alpha.2"
96+
wasmcloud-operator-types = { version = "*", path = "./crates/types" }
9097

9198
[workspace]
92-
members = [
93-
"crates/*"
94-
]
99+
members = ["crates/*"]
95100
resolver = "2"
96101

97102
[profile.release]

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 2024 wasmCloud Maintainers
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

sample.yaml

+17-17
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
hostLabels:
1414
test: value
1515
# Which wasmCloud version to use
16-
version: 1.0.0-rc.1
16+
version: 1.0.0-rc.2
1717
# The name of a secret in the same namespace that provides the required secrets.
1818
secretName: cluster-secrets
1919
logLevel: INFO
@@ -22,19 +22,19 @@ spec:
2222
# This includes setting resource requirements for the nats and wasmCloud host
2323
# containers along with any additional pot template settings.
2424
#schedulingOptions:
25-
# Enable the following to run the wasmCloud hosts as a DaemonSet
26-
#daemonset: true
27-
# Set the resource requirements for the nats and wasmCloud host containers.
28-
#resources:
29-
# nats:
30-
# requests:
31-
# cpu: 100m
32-
# wasmCloudHost:
33-
# requests:
34-
# cpu: 100m
35-
# Any additional pod template settings to apply to the wasmCloud host pods.
36-
# See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#podspec-v1-core for all valid options.
37-
# Note that you *cannot* set the `containers` field here as it is managed by the controller.
38-
#pod_template_additions:
39-
# nodeSelector:
40-
# kubernetes.io/os: linux
25+
# Enable the following to run the wasmCloud hosts as a DaemonSet
26+
#daemonset: true
27+
# Set the resource requirements for the nats and wasmCloud host containers.
28+
#resources:
29+
# nats:
30+
# requests:
31+
# cpu: 100m
32+
# wasmCloudHost:
33+
# requests:
34+
# cpu: 100m
35+
# Any additional pod template settings to apply to the wasmCloud host pods.
36+
# See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#podspec-v1-core for all valid options.
37+
# Note that you *cannot* set the `containers` field here as it is managed by the controller.
38+
#pod_template_additions:
39+
# nodeSelector:
40+
# kubernetes.io/os: linux

0 commit comments

Comments
 (0)