PromucFlow_constructor/deploy
Shrikant Sharat Kandula 87cffb6a05
fix: Fix replicaset check to not require ClusterMonitor role (#19997)
In the `entrypoint.sh` script, we check if the MongoDB in use, has
replicaSet initiated or not. This is usually done with a `rs.initiate()`
on the cluster.

We need the replicaSet to be enabled on MongoDB, since the backend
server relies on MongoDB `changeStream`s, which is a feature, only
available if replicaSet is enabled.

However, to use the `changeStream` APIs, having the `read` or
`readWrite` role on MongoDB is enough. But the check we do in
`entrypoint.sh`, runs `rs.status()` to see if `replicaSet` is initiated.
This `rs.status()` call, unfortunately, requires the `ClusterMonitor`
role, unlike the `changeStream` API.

To tackle this, we created the `appsmithctl check_replica_set` command.
This command would attempt to use the `changeStream` API, and report
success or failure. But this failed on certain configurations, where
MongoDB was running as a single-node-cluster, on localhost, or a
local/internal network. This was an edge case.

That edge case is solved by this PR. With this, we can use `appsmithctl
check-replica-set` in the `entrypoint.sh` again.
2023-02-07 05:38:37 +05:30
..
ansible fix: issue with ansible deployment (#19974) 2023-01-25 10:45:04 +05:30
aws Encoding the mongo credentials in install.sh script (#310) 2020-08-17 11:10:01 +05:30
aws_ami fix: Change watchtower to latest (#20001) 2023-02-02 06:27:35 +05:30
digital_ocean Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30
docker fix: Fix replicaset check to not require ClusterMonitor role (#19997) 2023-02-07 05:38:37 +05:30
helm fix: update chart.lock and app versions (#20105) 2023-02-01 17:12:00 +05:30
heroku Refactor to deploy Heroku using new Docker image (#9127) 2022-03-24 13:17:36 +05:30
packer Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30
template Sandboxed iFrames with srcDoc (#11426) 2022-10-04 15:20:45 +05:30
install.sh Fix variables in docker.env.sh 2021-08-11 19:15:43 +05:30