diff --git a/bootstrap/crds/main.tf b/bootstrap/crds/main.tf index 5af850b..1d4bf53 100644 --- a/bootstrap/crds/main.tf +++ b/bootstrap/crds/main.tf @@ -27,6 +27,11 @@ resource "kubernetes_manifest" "customresourcedefinition_dbsyncports_demeter_run "name" = "Network" "type" = "string" }, + { + "jsonPath" = ".spec.throughputTier" + "name" = "Throughput Tier" + "type" = "string" + }, { "jsonPath" = ".status.username" "name" = "Username" @@ -48,6 +53,10 @@ resource "kubernetes_manifest" "customresourcedefinition_dbsyncports_demeter_run "network" = { "type" = "string" } + "throughputTier" = { + "nullable" = true + "type" = "string" + } } "required" = [ "network", diff --git a/operator/src/controller.rs b/operator/src/controller.rs index f849bd1..3421c25 100644 --- a/operator/src/controller.rs +++ b/operator/src/controller.rs @@ -34,11 +34,14 @@ pub static DB_SYNC_PORT_FINALIZER: &str = "dbsyncports.demeter.run"; #[kube(status = "DbSyncPortStatus")] #[kube(printcolumn = r#" {"name": "Network", "jsonPath": ".spec.network", "type": "string"}, + {"name": "Throughput Tier", "jsonPath":".spec.throughputTier", "type": "string"}, {"name": "Username", "jsonPath": ".status.username", "type": "string"}, {"name": "Password", "jsonPath": ".status.password", "type": "string"} "#)] +#[serde(rename_all = "camelCase")] pub struct DbSyncPortSpec { pub network: String, + pub throughput_tier: Option, } #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)] pub struct DbSyncPortStatus {