Skip to content

Conversation

@cgwalters
Copy link
Member

More patches like #862

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 19, 2019
cgwalters added a commit to cgwalters/machine-config-operator that referenced this pull request Jun 19, 2019
We know RHCOS has it being RHEL8.
Split out of openshift#866
This replaces the ad-hoc method of passing in dummy data or no-op
functions into the daemon.  In this mode we detect if we're running
as non-root and do nothing.

Currently this just replaces the loading of `bootID` (to help devs
on MacOS) and the SSH key mocking.

This way the Daemon creation interface is cleaner.
Build on the previous `mock` state to just use `dummy` in that
mode.
This way we cleanly do prep work gathering data and then just
`return &Daemon {... }`.  Previously it was rather weird how
`dn.isLoggingToJournalSupported` was a method used on effectively
a partially constructed daemon.  We only called that once and
then cached the result, so just inline it into the ctor.
We don't want to do this in once from; we may be responsible
for upgrading the kubelet itself, it many not be running, etc.
More centralization of init.  The fakeWriter was unnecessary AFAICS
because we already pass a fake kube client in and the writer uses
the daemon's client.
This code was introduced in 522cddb
but nothing used it, and most notably the `NewClusterDrivenDaemon`
path always passed `nil` for it.
This finally removes a lot of the remaining duplication between
the cluster vs oncefrom paths.  Now you call `New` to get a daemon,
and can optionally turn it into a cluster driven one.
@cgwalters cgwalters force-pushed the mcd-startup-cleanup-further branch from e92c63c to ccde275 Compare June 19, 2019 19:16
@cgwalters
Copy link
Member Author

Rebased 🏄‍♂️

@runcom
Copy link
Member

runcom commented Jun 20, 2019

/refresh

@runcom
Copy link
Member

runcom commented Jun 20, 2019

/retest

@runcom
Copy link
Member

runcom commented Jun 20, 2019

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 20, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, 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

@openshift-merge-robot openshift-merge-robot merged commit 0f85a2a into openshift:master Jun 20, 2019
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