Skip to content

Commit

Permalink
Merge pull request #32 from demeter-run/fix/add_throughput_tier
Browse files Browse the repository at this point in the history
fix: Add throughput tier as option on spec
  • Loading branch information
gonzalezzfelipe authored Apr 18, 2024
2 parents 43b53ff + af557c0 commit d5e4660
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bootstrap/crds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -48,6 +53,10 @@ resource "kubernetes_manifest" "customresourcedefinition_dbsyncports_demeter_run
"network" = {
"type" = "string"
}
"throughputTier" = {
"nullable" = true
"type" = "string"
}
}
"required" = [
"network",
Expand Down
3 changes: 3 additions & 0 deletions operator/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
}
#[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)]
pub struct DbSyncPortStatus {
Expand Down

0 comments on commit d5e4660

Please sign in to comment.