-
Notifications
You must be signed in to change notification settings - Fork 172
Integrate GK cert as the default internal cert #679
Integrate GK cert as the default internal cert #679
Conversation
/assign @adrianludwin |
ba5c7da
to
1b6c5dd
Compare
/assign @rjbez17 |
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.
lgtm after a small documentation change
Fork the cert management from open-policy-agent/gatekeeper repo to serve as the default internal cert management for HNC. Add an "enable-internal-cert-management" flag to switch between using the internal cert (integrated Gatekeeper cert) or the external cert "cert-manager". Update main.go to start the controller manager with internal certs first and once the cert files are ready, add other controllers and webhooks if webhook is enabled and internal certs are used. Refactor the cert generation and validator startup into pkg/validators/setup.go. To use external cert-manager, update config/default/kustomization.yaml and manager_auth_proxy_patch.yaml as instructed. Run 'make deploy-cm' before 'make deploy'. Tested on a GKE cluster. The manager restarts 0 times and the webhooks are working as expected. The switch to use cert-manager is tested too.
1b6c5dd
to
c34afd6
Compare
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.
/approve
/lgtm
/hold
/assign @rjbez17
Hey Ryan, how does this look to you?
4ee9810
to
c34afd6
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianludwin, rjbez17, yiqigao217 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fork the cert management from open-policy-agent/gatekeeper repo to serve
as the default internal cert management for HNC.
Add an "enable-internal-cert-management" flag to switch between using
the internal cert (integrated Gatekeeper cert) or the external cert
"cert-manager".
Update main.go to start the controller manager with internal certs first
and once the cert files are ready, add other controllers and webhooks if
webhook is enabled and internal certs are used.
Refactor the cert generation and validator startup into
pkg/validators/setup.go.
To use external cert-manager, update config/default/kustomization.yaml
and manager_auth_proxy_patch.yaml as instructed. Run 'make deploy-cm'
before 'make deploy'.
Tested on a GKE cluster. The manager restarts 0 times and the webhooks
are working as expected.
Fixes #653