Repository navigation
Deploy baremetal bootstrap services with MCO - #2119
Conversation
Currently we have two very different sets of manifests and templates for deploying the baremetal infrastructure services. One lives in the installer, the other lives in MCO. This change removes the services from the installer and makes use of the files being added to the MCO that serve the same purpose but keep all of the templates in the same repo and allow us to use the same MCO data for populating dynamic values. On platforms that don't need these services on the bootstrap node, MCO will not render these files. We should check for the existence of the relevant manifest and if present try to copy those files. The static-pod-resources are grouped with the manifest because the manifests require them, so it would be an error for one to exist without the other.
| cp mco-bootstrap/bootstrap/machineconfigoperator-bootstrap-pod.yaml /etc/kubernetes/manifests/ | ||
| if [ -d mco-bootstrap/baremetal/manifests ]; then | ||
| cp mco-bootstrap/baremetal/manifests/* /etc/kubernetes/manifests/ | ||
| cp -r mco-bootstrap/baremetal/static-pod-resources/* /etc/kubernetes/static-pod-resources/ |
There was a problem hiding this comment.
nit: i think this script uses full names for flags --recursive
There was a problem hiding this comment.
@stbenjam will you be filing follow-ups to fix this..
There was a problem hiding this comment.
The other well known shell commands (sed -i -e, rm -rf) do not use long flags in this script. If you really want it this way, this fixes them all: #2130
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, bcrochet, stbenjam The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@bcrochet: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. I understand the commands that are listed here. |
Currently we have two very different sets of manifests and templates
for deploying the baremetal infrastructure services. One lives in the
installer, the other lives in MCO. This change removes the services
from the installer and makes use of the files being added to the MCO
that serve the same purpose but keep all of the templates in the same
repo and allow us to use the same MCO data for populating dynamic
values.
On platforms that don't need these services on the bootstrap node,
MCO will not render these files. We should check for the existence
of the relevant manifest and if present try to copy those files.
The static-pod-resources are grouped with the manifest because the
manifests require them, so it would be an error for one to exist
without the other.