-
Notifications
You must be signed in to change notification settings - Fork 3
feat(docs): updates contribution guide to local-dev setup #1232
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
base: main
Are you sure you want to change the base?
feat(docs): updates contribution guide to local-dev setup #1232
Conversation
docker run --network host -e DEV_ENV_CONTEXT=<your-context> -v ./envtest:/envtest -v /tmp/k8s-webhook-server/serving-certs:/webhook-certs ghcr.io/cloudoperators/greenhouse-dev-env:main | ||
``` | ||
> [!NOTE] | ||
> The deployed controller-manager is running in webhook only mode, but it does not receive any requests |
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.
We have split deployment for webhook and controller now so we only bring in the necessary component based on the command.
apiVersion: greenhouse.sap/v1alpha1 | ||
kind: PluginDefinition | ||
metadata: | ||
name: cert-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.
Do we need to make a note saying do not apply this Plugin
in admin cluster as it will conflict with the cert-manager
brought in by all the make setup commands?
but it is completely fine to apply the Plugin
targeting remote cluster.
- The manager `Deployment` has environment variables `WEBHOOK_ONLY` and `CONTROLLERS_ONLY` | ||
- `WEBHOOK_ONLY=true` will only run the webhook server | ||
- `CONTROLLERS_ONLY=true` will only run the controllers | ||
- Only one of the above can be set to `true` at a time otherwise the manager will error out |
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.
This whole section is irrelevant as we have split the deployment and these env variables are part of the deployment.yaml
for the respective components
## Run And Debug The Code | ||
- Override devMode for webhook development with d=true or devMode=true | ||
- Override helm chart installation with c=true or crdOnly=true | ||
- Override environment variables for manager deployment with e="ENV_NAME=VALUE" or env="ENV_NAME=VALUE" (can be repeated) |
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.
All the overrides are irrelevant now
Description
The contribution guide on how to run the local Greenhouse setup was out of date. This PR fixes that.
What type of PR is this? (check all applicable)
Related Tickets & Documents