-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(greenhouse): split deployment of greenhouse #855
base: main
Are you sure you want to change the base?
Conversation
2ed8027
to
b424ea5
Compare
@gciezkowski-acc - The code will conflict with this PR - #845 Maybe you can wait till this PR is merged and then do your changes. As many parameters can now be controlled by external ENV variables. Which means for local you can always deploy just one manifest. |
@@ -39,7 +39,7 @@ const ( | |||
RemoteKubeConfigPathEnv = "GREENHOUSE_REMOTE_KUBECONFIG" | |||
remoteIntKubeConfigPathEnv = "GREENHOUSE_REMOTE_INT_KUBECONFIG" | |||
ControllerLogsPathEnv = "CONTROLLER_LOGS_PATH" | |||
managerDeploymentName = "greenhouse-controller-manager" |
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 don't need to change anything as the manager deployment can also run with webhook based on injected ENV vars. E2E will need both webhook and controller deployment running
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.
For the end-to-end tests to function correctly, both the webhook and the deployment controller must be operational. Therefore, I need to ensure that both are running.
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 don’t need separate webhook deployment for e2e. The image is the same. As long as env is injected in the webhook deployment it is fine.
We can wait for that. |
}, | ||
}, | ||
DevMode: devMode, | ||
DevMode: devMode, |
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.
In order to simplify local setup, this whole file is removed in #845
as everything is now setup via config yamls.
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.
Ok, so we have to wait for #845 and fix conflicts.
Description
Split Greenhouse deployment to two deployments. One for webhooks and second one for controllers.
What type of PR is this? (check all applicable)
Related Tickets & Documents
Added tests?
Current E2E tests covered that case.
Added to documentation?
Checklist