-
Notifications
You must be signed in to change notification settings - Fork 74
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
refactor: establish target.Reconciler #378
Conversation
Skipping CI for Draft Pull Request. |
/test all |
/test all |
3 similar comments
/test all |
/test all |
/test all |
/cc @inteon |
ed14b07
to
98b51c9
Compare
9f441d8
to
e6d182a
Compare
e6d182a
to
b36f9c2
Compare
b36f9c2
to
7a34242
Compare
b5b2443
to
adf3daf
Compare
Signed-off-by: Erik Godding Boye <[email protected]>
adf3daf
to
f3ddd4a
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.
/lgtm
/approve
This looks a good bit cleaner to me. I like the API boundary you've established with target.Reconciler!
Thanks for this 😁
type Data struct { | ||
Data string | ||
BinaryData map[string][]byte | ||
} |
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.
comment: Looking at this now, I think we could use better names. Obviously it's not related to this PR, but Data.PEM
and Data.Binary
or something would be more descriptive and avoid echoing Data.Data
🤔
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.
Agreed! I can try to fix this in one of my follow-up PRs.
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.
Ah, the data struct is unlike the non-data struct. 😄
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SgtCoDFish 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 is a major refactor of the bundle target area. The main motivation is to prepare the grounds for #58 and #222.
The refactoring became larger because I had to move some fields and functions to avoid circular package dependencies. I would be happy to split these changes out in pre-PRs if desired.Multiple pre-PRs merged now.