From 75564b7313e82be73b37e0733c4c0b0705be6d3b Mon Sep 17 00:00:00 2001 From: Felipe Gonzalez Date: Wed, 28 Feb 2024 12:02:07 -0300 Subject: [PATCH] chore: Add throughput tier to spec (#25) * chore: Add throughput tier to spec * Fix 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..d345962 100644 --- a/operator/src/controller.rs +++ b/operator/src/controller.rs @@ -29,11 +29,14 @@ 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 { pub network: Network, pub version: u8, + // throughput should be 0, 1, 2 + pub throughput_tier: String, } #[derive(Deserialize, Serialize, Clone, Default, Debug, JsonSchema)]