Skip to content

Commit

Permalink
remove Stacks from tembo-controller (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHend authored May 7, 2024
1 parent 96adf61 commit 3b54a83
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 646 deletions.
2 changes: 1 addition & 1 deletion tembo-operator/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tembo-operator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "controller"
description = "Tembo Operator for Postgres"
version = "0.46.0"
version = "0.47.0"
edition = "2021"
default-run = "controller"
license = "Apache-2.0"
Expand Down
25 changes: 18 additions & 7 deletions tembo-operator/src/defaults.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
use k8s_openapi::{
api::core::v1::ResourceRequirements,
apimachinery::pkg::{api::resource::Quantity, util::intstr::IntOrString},
};
use std::collections::BTreeMap;

use crate::apis::coredb_types::CoreDB;
use crate::{
apis::coredb_types::{
Expand All @@ -12,8 +6,25 @@ use crate::{
cloudnativepg::clusters::ClusterAffinity,
cloudnativepg::poolers::{PoolerPgbouncerPoolMode, PoolerTemplateSpecContainersResources},
extensions::types::{Extension, TrunkInstall},
stacks::types::ImagePerPgVersion,
};
use k8s_openapi::{
api::core::v1::ResourceRequirements,
apimachinery::pkg::{api::resource::Quantity, util::intstr::IntOrString},
};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
use utoipa::ToSchema;

#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema, PartialEq, ToSchema)]
pub struct ImagePerPgVersion {
#[serde(rename = "14")]
pub pg14: String,
#[serde(rename = "15")]
pub pg15: String,
#[serde(rename = "16")]
pub pg16: String,
}

pub fn default_replicas() -> i32 {
1
Expand Down
1 change: 0 additions & 1 deletion tembo-operator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub mod app_service;
pub mod configmap;
pub mod extensions;
pub mod postgres_exporter;
pub mod stacks;
/// Log and trace integrations
pub mod telemetry;

Expand Down
3 changes: 0 additions & 3 deletions tembo-operator/src/stacks/README.md

This file was deleted.

Loading

0 comments on commit 3b54a83

Please sign in to comment.