Skip to content

Commit d5e4660

Browse files
Merge pull request #32 from demeter-run/fix/add_throughput_tier
fix: Add throughput tier as option on spec
2 parents 43b53ff + af557c0 commit d5e4660

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

bootstrap/crds/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ resource "kubernetes_manifest" "customresourcedefinition_dbsyncports_demeter_run
2727
"name" = "Network"
2828
"type" = "string"
2929
},
30+
{
31+
"jsonPath" = ".spec.throughputTier"
32+
"name" = "Throughput Tier"
33+
"type" = "string"
34+
},
3035
{
3136
"jsonPath" = ".status.username"
3237
"name" = "Username"
@@ -48,6 +53,10 @@ resource "kubernetes_manifest" "customresourcedefinition_dbsyncports_demeter_run
4853
"network" = {
4954
"type" = "string"
5055
}
56+
"throughputTier" = {
57+
"nullable" = true
58+
"type" = "string"
59+
}
5160
}
5261
"required" = [
5362
"network",

operator/src/controller.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ pub static DB_SYNC_PORT_FINALIZER: &str = "dbsyncports.demeter.run";
3434
#[kube(status = "DbSyncPortStatus")]
3535
#[kube(printcolumn = r#"
3636
{"name": "Network", "jsonPath": ".spec.network", "type": "string"},
37+
{"name": "Throughput Tier", "jsonPath":".spec.throughputTier", "type": "string"},
3738
{"name": "Username", "jsonPath": ".status.username", "type": "string"},
3839
{"name": "Password", "jsonPath": ".status.password", "type": "string"}
3940
"#)]
41+
#[serde(rename_all = "camelCase")]
4042
pub struct DbSyncPortSpec {
4143
pub network: String,
44+
pub throughput_tier: Option<String>,
4245
}
4346
#[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)]
4447
pub struct DbSyncPortStatus {

0 commit comments

Comments
 (0)