-
Notifications
You must be signed in to change notification settings - Fork 2
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
Split controller and webhook in two separate deployments #13
Split controller and webhook in two separate deployments #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to upgrade the version in Chart.yaml, it causes the linter error.
And I wonder, maybe it would make sense to add better labels everywhere, not only to deployments
efa7bf0
to
3de9d1c
Compare
I also noticed that the webhook deployment had an empty Once we get rid of all bugs I will squash the commits. :) |
In this repo we're using squash and merge anyway, so you don't have to do it manually |
I had to remove the two lines in c521e65 because they currently have no effect after my changes. Also commit 2f801d8 is possibly out of scope regarding the removel of The PR got a little bigger than anticipated with the whole restructuring business. 😅 Looking at charts like ArgoCD or cert-manager they mostly use |
To me, it looks fine. |
Cool, thanks for fixing the unit test! The only thing that is missing atm are those lables that were added to resources by this helper:
It was added to all (or almost all) resources before, but now, as I see you're adding it to each deployment. Maybe we can define two vars in the helper, like
And append all this labels to each resource by adding
And the same applies to selectors:
|
Look at the latest commits :D |
I guess there are two ways to approach this. Either create separate What do you prefer? |
I think we can add to each now |
Sorry now the CI should work. |
I think I fixed the last broken file now. I'm not sure what the issue is regarding |
I think it was also caused by the broken file. The namespace wasn't created because chart couldn't be installed, and it's creating the namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, it looks good. If you don't want to change anything else, I'll merge
Fine for me too, thanks for your help debugging my PR! 🙂 I‘ll update the original post with the current changes later. |
Thanks for your contribution |
Once the changes to split the controller and webhook logic in the db-operator codebase are merged we need to adjust the Helm chart.
Changes
annotation
twice. I removed one because it doesn't seem necessary to me.helpers.tpl
file. The changes should give us flexibility in the future in case we want to set common labels or independent labels to the controller or webhook. I followed cert-manager's pattern hereTesting
I created a Postgres and MySQL
dbInstance
and they seem to be running correctly.I'm not sure if there are other ways to test it. 🙂