mongodb / mongodb-atlas-kubernetes

MongoDB Atlas Kubernetes Operator - Manage your MongoDB Atlas clusters from Kubernetes
http://www.mongodb.com/cloud/atlas
Apache License 2.0
152 stars 78 forks source link

Private Endpoint Service is not ready for AtlasProject #586

Closed sunchill06 closed 2 years ago

sunchill06 commented 2 years ago

What did you do to encounter the bug? Steps to reproduce the behavior: After upgrading the Atlas operator from Alpha to GA version, we have started encountering following for the a specific AtlasProject:

helm history operator-release
20          Wed Feb 23 09:27:23 2022    superseded  mongodb-atlas-operator-0.2.5    0.6.1       Upgrade complete
21          Thu Jun 30 13:37:32 2022    deployed    mongodb-atlas-operator-1.0.0    1.0.0       Upgrade complete
Status:
  Conditions:
    Last Transition Time:  2022-07-01T07:29:13Z
    Status:                True
    Type:                  Ready
    Last Transition Time:  2022-06-30T11:45:15Z
    Status:                True
    Type:                  ProjectReady
    Last Transition Time:  2022-07-01T07:29:11Z
    Status:                True
    Type:                  IPAccessListReady
    Last Transition Time:  2022-06-30T10:09:23Z
    Status:                True
    Type:                  ValidationSucceeded
    Last Transition Time:  2022-06-30T11:57:59Z
    Message:               Private Endpoint Service is not ready
    Reason:                ProjectPrivateEndpointServiceIsNotReadyInAtlas
    Status:                False
    Type:                  PrivateEndpointReady
    Last Transition Time:  2022-06-30T12:02:00Z
    Message:               Private Endpoint Service is not ready
    Reason:                ProjectPrivateEndpointServiceIsNotReadyInAtlas
    Status:                False
    Type:                  PrivateEndpointServiceReady
  Id:                      60ae9bf242cb863bc38a310a
  Observed Generation:     2
Events:                    <none>

There is no PE configured for this AtlasProject in Atlas and we don't encounter this issue for other AtlasProjects in this Env.

What did you expect? Expectation was that there should not be any validation for Private Endpoint service for this Project.

What happened instead? Wonder why its trying to create/validate Private Endpoint Service.

Screenshots N/A

Operator Information

Kubernetes Cluster Information

Additional context

If possible, please include:

fabritsius commented 2 years ago

We've just released mongodb-atlas-operator-1.1.0 which might fix some of your problems. Please try to upgrade and let us know if it helps. Thank you, @sunchill06 🙏

sunchill06 commented 2 years ago

Thanks @fabritsius for your revert. Let me upgrade it and try it out.

sunchill06 commented 2 years ago

This works fine now. Thanks a lot for fixing it up so quickly.