Skip to content

Decouple consts in pkg/daemon - #397

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:decouple-consts
Feb 8, 2019
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:decouple-consts

Conversation

@runcom

@runcom runcom commented Feb 8, 2019 •

Copy link
Copy Markdown
Member

Just refactor, no change in behavior nor nothing (but do please check!)

TL;DR; consts are the only thing shared and by having their own package we can enable cgo just in daemon (as well as having better code in general, I pretend)

Closes #396 and you can build daemon only with cgo

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 8, 2019
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 8, 2019
@jlebon

jlebon commented Feb 8, 2019

Copy link
Copy Markdown
Member

I'm confused how the osrelease package split helps; it's only used in the daemon already, right? Or is this just for re-organizing and not actually necessary for #396?

@runcom

runcom commented Feb 8, 2019

Copy link
Copy Markdown
Member Author

I'm confused how the osrelease package split helps; it's only used in the daemon already, right? Or is this just for re-organizing and not actually necessary for #396?

it's not used just in daemon package, it's also used in cmd/*-daemon package (those are 2 different package)

@runcom

runcom commented Feb 8, 2019

Copy link
Copy Markdown
Member Author

oh well, it doesn't help right, it's just better to have it there that way

@jlebon jlebon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment, otherwise looks sane to me! I like the idea of keeping shared consts in a separate pkg to make it easier to tell how things are connected.

Comment thread cmd/machine-config-daemon/start.go Resolved
to be used across the whole project. Also, unexport some of the consts
that were previously wrongly exported.

Signed-off-by: Antonio Murdaca <[email protected]>
@jlebon

jlebon commented Feb 8, 2019

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlebon, runcom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@runcom

runcom commented Feb 8, 2019

Copy link
Copy Markdown
Member Author

/retest

@openshift-merge-robot
openshift-merge-robot merged commit 5964541 into openshift:master Feb 8, 2019
@runcom
runcom deleted the decouple-consts branch February 8, 2019 21:37
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants