WIP: Add machineconfiguration API#301
Conversation
|
Any hint is appreciated! Please also consider @kikisdeliveryservice's comments over at runcom#1 (comment) |
|
Please double check (missing) |
Where can I deduce these? cc @runcom |
|
What's still missing is this part:
|
|
/test verify |
170f481 to
060ad22
Compare
|
Running Why is it still not working now? |
|
/retest |
060ad22 to
6f704f4
Compare
1c6b4a5 to
a3c7caf
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LorbusChris The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
e886845 to
b9fac8e
Compare
400c23a to
4535328
Compare
|
This is ready for another round of reviews |
| CloudProviderConfig string `json:"cloudProviderConfig"` | ||
|
|
||
| // The openshift platform, e.g. "libvirt", "openstack", "aws", or "none" | ||
| Platform string `json:"platform"` |
There was a problem hiding this comment.
Do right away, why followup, same rules applies.
| // etcdDiscoveryDomain specifies the etcd discovery domain | ||
| EtcdDiscoveryDomain string `json:"etcdDiscoveryDomain"` | ||
|
|
||
| // TODO: Investigate using string for CA data |
There was a problem hiding this comment.
string is being used in other places, so I'd prefer we keep it consistent.
There was a problem hiding this comment.
Afaiu v1 has already been released, albeit from the mco repo, and not this one. Can I still change this then?
There was a problem hiding this comment.
same goes for the KubeletConfig type below
There was a problem hiding this comment.
As we talked about: the use of RawExtensions instead of an explicit kubelet config type will not change the wire format. So that's possible and should be done.
|
|
||
| // pullSecret is the default pull secret that needs to be installed | ||
| // on all machines. | ||
| PullSecret *corev1.ObjectReference `json:"pullSecret,omitempty"` |
There was a problem hiding this comment.
Have you considered using ConfigMapFileReference or ConfigMapNameReference or SecretNameReference from https://github.com/openshift/api/blob/master/config/v1/types.go ?
There was a problem hiding this comment.
same question as above: Can we still change this for v1 at this point? Do we want to?
cc @runcom @cgwalters
|
|
||
| // osImageURL is the location of the container image that contains the OS update payload. | ||
| // It is sourced from configmap/machine-config-osimageurl | ||
| OSImageURL string `json:"osImageURL"` |
There was a problem hiding this comment.
What do you mean sourced from if it's a reference why not using ConfigMapNameReference ?
There was a problem hiding this comment.
The string value is taken from cm/machine-config-osimageurl.data.osImageURL
| // KubeletConfigSpec defines the desired state of KubeletConfig | ||
| type KubeletConfigSpec struct { | ||
| MachineConfigPoolSelector *metav1.LabelSelector `json:"machineConfigPoolSelector,omitempty"` | ||
| KubeletConfig *kubeletconfigv1beta1.KubeletConfiguration `json:"kubeletConfig,omitempty"` |
There was a problem hiding this comment.
You're exposing this as part of v1 API, postponing means you won't get a chance to do it, ever.
4535328 to
d7c4761
Compare
|
@soltysh I don't think we can change the types here now, as we have already released this API as v1 from the MCO repo (this PR is just a move). Please anybody correct me if I am wrong on this. cc @runcom @cgwalters @sttts . I have addressed the other requested changes. |
This commit moves over the definitions of the following resource types in machineconfiguration/v1 from the openshift/machine-config-operator repository: - ContainerRuntimeConfig - ControllerConfig - KubeletConfig - MachineConfigPool
Run `hack/update-deps.sh && make generate-with-container`
d7c4761 to
35920bb
Compare
/close Feel free to re-open once that's updated. |
|
@deads2k: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR moves over the type definitions for the machineconfiguration API from the MCO repo, except for those depending on Ignition, which will stay in the MCO repo.
WIP
cc @runcom @sttts