Skip to content

Commit

Permalink
Merge pull request #23 from CoreDB-io/ahendel/patchImg
Browse files Browse the repository at this point in the history
hard code image in all containers
  • Loading branch information
ChuckHend authored Jan 24, 2023
2 parents 61f8a5c + 10990de commit ad3f103
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reconciler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;

pub async fn generate_spec(body: Value) -> Value {
let name: String = serde_json::from_value(body["resource_name"].clone()).unwrap();
let image: String = serde_json::from_value(body["postgres_image"].clone()).unwrap();
let cpu: String = serde_json::from_value(body["cpu"].clone()).unwrap();
let memory: String = serde_json::from_value(body["memory"].clone()).unwrap();
let storage: String = serde_json::from_value(body["storage"].clone()).unwrap();
Expand All @@ -36,7 +35,7 @@ pub async fn generate_spec(body: Value) -> Value {
"name": format!("{}", name),
},
"spec": {
"image": format!("{}", image),
"image": "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.6-2".to_owned(),
"postgresVersion": 14,
"instances": [
{
Expand Down

0 comments on commit ad3f103

Please sign in to comment.