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

Improve current state #231

Merged
merged 7 commits into from
Nov 15, 2022
Merged

Improve current state #231

merged 7 commits into from
Nov 15, 2022

Conversation

ChrisKujawa
Copy link
Member

@ChrisKujawa ChrisKujawa commented Nov 15, 2022

  • Move some functions, for better discoverability
  • Add new tests
  • Support network patch for saas
  • extract get deployment function
  • move tests into separate files for deployment
  • Allow to apply network patch for gateway deployment and add a test

Can be seen as preparation for working on disconnect gateways.

Don't get scared by the number of lines. It is mostly moving code and adding new tests.

@ChrisKujawa ChrisKujawa requested a review from npepinpe November 15, 2022 14:42
Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for cleaning up a lot of the stuff I've just left here 😅 🚀

@@ -27,21 +27,39 @@ import (

func (c K8Client) ApplyNetworkPatch() error {
Copy link
Member

Choose a reason for hiding this comment

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

💭

Nice that you got this working for SaaS too. I think the only thing missing would be to pause reconciliation. Same for all other functionality that modifies any of the resources managed by the ZeebeCluster CRD.

Copy link
Member Author

Choose a reason for hiding this comment

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

Jep right now it is only this I think the other stuff is inside the container like disconnecting

"k8s.io/client-go/util/retry"
)

func (c K8Client) PauseReconciliation() error {
Copy link
Member

Choose a reason for hiding this comment

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

❓ Is there something we could link as documentation for how reconciliation works?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could add that for future people who may not know where this is defined (in case it needs to change) 🙃

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks I added it 👍

@ChrisKujawa
Copy link
Member Author

Thanks for the review 🙇

@ChrisKujawa ChrisKujawa merged commit 41492fb into main Nov 15, 2022
@ChrisKujawa ChrisKujawa deleted the zell-disconnect-gw branch November 15, 2022 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants