-
Notifications
You must be signed in to change notification settings - Fork 173
Update HCR & HNSR to move NS creation to HNSR #550
Update HCR & HNSR to move NS creation to HNSR #550
Conversation
31b8416
to
38283a6
Compare
/assign @adrianludwin |
38283a6
to
73f2c03
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.
Great work so far. I left a lot of comments because the more I think about this, the more I think we can make it even simpler. LMK when you want to discuss.
73f2c03
to
09093f8
Compare
0a52325
to
133aa65
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.
I like this a lot :)
This commit removes the hc.Spec.RequiredChildren field and the enable-hns-reconciler flag. It also moves the creation of the owned (previously requiredChild) namespaces from HC Reconciler (HCR) to HNS Reconciler (HNSR). The logic in HCR is cleaned up to adapt this change. Tested with the current and updated integration tests by "make test". Also manually tested the 'k hns describe'. The HNS_MISSING condition was set when I deleted the HNS instance in the owner. The owned namespace got recreated after I deleted it, which means the new watch in HNSR is working.
133aa65
to
b287126
Compare
/lgtm |
/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 |
This commit removes the hc.Spec.RequiredChildren field and the
enable-hns-reconciler flag. It also moves the creation of the owned
(previously requiredChild) namespaces from HC Reconciler (HCR) to HNS
Reconciler (HNSR). The logic in HCR is cleaned up to adapt this change.
Tested with the current and updated integration tests by "make test".
Also manually tested the 'k hns describe'. The HNS_MISSING condition was
set when I deleted the HNS instance in the owner. The owned namespace
got recreated after I deleted it, which means the new watch in HNSR is
working.
Fully described in #552
Part of #457
Fixes #479