Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Mongo related code and files #1329

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

dannyzaken
Copy link
Contributor

Removed all mongo related code:

  • Making DBType to only accept postgres
  • removed mongo external URL
  • removed mongo related envs from deployments\statefulsets
  • remove Mongo related CLI commands (e.g. dbdump)

Explain the changes

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  • Doc added/updated
  • Tests added

@dannyzaken dannyzaken marked this pull request as draft March 28, 2024 15:32
@dannyzaken dannyzaken force-pushed the danny-remove-upgrade branch 3 times, most recently from e9e45ac to f2ee93e Compare March 28, 2024 16:32
@dannyzaken dannyzaken requested a review from jackyalbo March 28, 2024 16:32
@dannyzaken dannyzaken marked this pull request as ready for review March 28, 2024 16:33
README.md Outdated
--db-storage-class='': The database volume storage class name
--db-type='postgres': The type of database container image (mongodb, postgres)
--db-type='postgres': The type of database container image (postgres)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this flag?
Can we remove it?

Copy link
Contributor Author

@dannyzaken dannyzaken Mar 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed all references to DBType in the code. Left it in the CRD, but basically ignoring it

@dannyzaken dannyzaken force-pushed the danny-remove-upgrade branch from f2ee93e to b58a6f1 Compare March 31, 2024 17:33
@dannyzaken dannyzaken requested a review from liranmauda March 31, 2024 17:33
@dannyzaken dannyzaken force-pushed the danny-remove-upgrade branch from b58a6f1 to fe70713 Compare April 1, 2024 09:55
README.md Outdated
@@ -143,9 +143,8 @@ The following options can be passed to any command:
--aws-sts-arn='': The AWS STS Role ARN which will assume role
--cosi-driver-path='/var/lib/cosi/cosi.sock': unix socket path for COSI
--cosi-sidecar-image='gcr.io/k8s-staging-sig-storage/objectstorage-sidecar/objectstorage-sidecar:v20221117-v0.1.0-22-g0e67387': The cosi side car container image
--db-image='centos/mongodb-36-centos7': The database container image
--db-image='"quay.io/sclorg/postgresql-15-c9s"': The database container image
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove second quotes:

Suggested change
--db-image='"quay.io/sclorg/postgresql-15-c9s"': The database container image
--db-image='quay.io/sclorg/postgresql-15-c9s': The database container image

@@ -85,9 +85,10 @@ type NooBaaSpec struct {
// +optional
DBConf *string `json:"dbConf,omitempty"`

// DBType (optional) overrides the default type image for the db container
// DBType (optional) overrides the default type image for the db container.
// The only possible value is postgres
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we just remove this?

Removed all mongo related code:
* Making DBType to only accept postgres
* removed mongo external URL
* removed mongo related envs from deployments\statefulsets
* remove Mongo related CLI commands (e.g. dbdump)

Signed-off-by: Danny Zaken <[email protected]>
@dannyzaken dannyzaken force-pushed the danny-remove-upgrade branch from fe70713 to 79816d9 Compare April 1, 2024 12:24
@dannyzaken dannyzaken requested a review from jackyalbo April 1, 2024 12:26
@dannyzaken dannyzaken merged commit e40e407 into noobaa:master Apr 1, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants