-
Notifications
You must be signed in to change notification settings - Fork 462
Adds MachineConfig Operator #11
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
Conversation
Dockerfile.machine-config-controller
Outdated
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.
You can use WORKDIR instead of changing directory.
5741373 to
59713cd
Compare
pkg/operator/sync.go
Outdated
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.
nit: can you use a for loop for these?
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.
👍 done
pkg/operator/sync.go
Outdated
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.
ditto
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.
👍 done
pkg/operator/sync.go
Outdated
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.
same here, we can create a map from the asset name to their render and read functions, and potentially wait for the resources. Should be pretty generic to reduce the code redundancy .
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.
read* and apply* expect specific types.
Will end up doing bunch of type assertions.
pkg/operator/sync.go
Outdated
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.
ditto here
|
@abhinavdahiya LGTM overall, but seems a lot of the reconcile code can be compressed |
2009ce6 to
d7d0cc7
Compare
manifests/ -> are all the object that operator continuously manages. install/ -> are all the objects that need to be installed but not maned by the operator.
d7d0cc7 to
c57ad74
Compare
|
@yifan-gu PTAL |
yifan-gu
left a comment
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
*: add render keys to generate appropriate commands for etcd certs
deploy: add ordering to manifests that end up in updatepayload
pkg/operator/assets/bindata.go)pkg/operator/assets/bindata.go)Follow up: