8000 feat(docs): updates contribution guide to local-dev setup by uwe-mayer · Pull Request #1232 · cloudoperators/greenhouse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

uwe-mayer
Copy link
Contributor

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)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

@uwe-mayer uwe-mayer linked an issue Jun 24, 2025 that may be closed by this pull request
2 tasks
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 24, 2025
@uwe-mayer uwe-mayer marked this pull request as ready for review June 24, 2025 08:56
@uwe-mayer uwe-mayer requested review from a team as code owners June 24, 2025 08:56
@uwe-mayer uwe-mayer changed the title feat(docs): Update Contribution guide to local-dev setup feat(docs): updates Contribution guide to local-dev setup Jun 24, 2025
@uwe-mayer uwe-mayer changed the title feat(docs): updates Contribution guide to local-dev setup feat(docs): updates contribution guide to local-dev setup Jun 24, 2025
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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] - Update Contribution Guide for Local Dev setup
2 participants
0