Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Where do these come from in the first place? Looks like
/etc/mcs
has only been mentioned in 6da1973 (#879), but I don't see any installer code obviously populating it. Maybe it's here? If so, is there a reason you couldn't address this entirely within openshift/machine-config-operator?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.
My understanding of the current code is here openshift/machine-config-operator#367 (comment)
AIUI it's the static pod which we are just removing above this code:
/etc/kubernetes/manifests/machineconfigoperator-bootstrap-pod.yaml
Maybe - I didn't write this code and am still learning things here, so alternative suggestions appreciated!
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.
As far as I understand things though...that bootstrap pod is what's serving out the Ignition to the masters. We don't have masters online until after
echo "etcd cluster up. Killing etcd certificate signer..."
(right?)I believe we won't even have the
machineconfigs
CRD in the cluster until the MCO comes online. So we will end up waiting inopenshift.service
for that - similar to how we wait for the cluster API objects and inject those.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.
So can we update that code to make these alterations? It's maybe here calling here?
I'm not sure how this comes into this pull request, but I'm pushing to get
openshift.service
andopenshift.sh
functionality moved intocluster-bootstrap
. See #1147, which I'm going to reroll aftercluster-bootstrap
picks up openshift/library-go#220.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.
Mmm...this code needs to generate content to inject into the target cluster. The static pod is running on the bootstrap before the cluster, right?
That makes sense to me...I was surprised at the low-tech nature of
openshift.sh
.