From f2858e8a3be3bef5f318c5c3820dc18f3e2ad165 Mon Sep 17 00:00:00 2001 From: gonzalezzfelipe Date: Mon, 26 Feb 2024 14:11:34 -0300 Subject: [PATCH 1/2] chore: Add throughput tier to spec --- Cargo.lock | 2 +- operator/Cargo.toml | 2 +- operator/src/controller.rs | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a6e21e8..1ea7651 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1477,7 +1477,7 @@ dependencies = [ [[package]] name = "operator" -version = "0.1.0" +version = "0.1.1" dependencies = [ "actix-web", "argon2", diff --git a/operator/Cargo.toml b/operator/Cargo.toml index dff25ec..f71487d 100644 --- a/operator/Cargo.toml +++ b/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "operator" -version = "0.1.0" +version = "0.1.1" edition = "2021" default-run = "controller" diff --git a/operator/src/controller.rs b/operator/src/controller.rs index bbba041..d4fa685 100644 --- a/operator/src/controller.rs +++ b/operator/src/controller.rs @@ -29,6 +29,7 @@ pub static OGMIOS_PORT_FINALIZER: &str = "ogmiosports.demeter.run"; {"name": "Endpoint URL", "jsonPath": ".status.endpointUrl", "type": "string"}, {"name": "Authenticated Endpoint URL", "jsonPath": ".status.authenticatedEndpointUrl", "type": "string"}, {"name": "Auth Token", "jsonPath": ".status.authToken", "type": "string"} + {"name": "Throughput Tier", "jsonPath":".spec.throughputTier", "type": "string"}, "#)] #[serde(rename_all = "camelCase")] pub struct OgmiosPortSpec { @@ -42,6 +43,8 @@ pub struct OgmiosPortStatus { pub endpoint_url: String, pub authenticated_endpoint_url: String, pub auth_token: String, + // throughput should be 0, 1, 2 + pub throughput_tier: String, } struct Context { From 25c0c3d8234dccab5882e95868b9e2d8fb1dd97e Mon Sep 17 00:00:00 2001 From: gonzalezzfelipe Date: Mon, 26 Feb 2024 14:18:32 -0300 Subject: [PATCH 2/2] Fix spec --- operator/src/controller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/src/controller.rs b/operator/src/controller.rs index d4fa685..d345962 100644 --- a/operator/src/controller.rs +++ b/operator/src/controller.rs @@ -35,6 +35,8 @@ pub static OGMIOS_PORT_FINALIZER: &str = "ogmiosports.demeter.run"; pub struct OgmiosPortSpec { pub network: Network, pub version: u8, + // throughput should be 0, 1, 2 + pub throughput_tier: String, } #[derive(Deserialize, Serialize, Clone, Default, Debug, JsonSchema)] @@ -43,8 +45,6 @@ pub struct OgmiosPortStatus { pub endpoint_url: String, pub authenticated_endpoint_url: String, pub auth_token: String, - // throughput should be 0, 1, 2 - pub throughput_tier: String, } struct Context {