Skip to content
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

Rewrite cluster-up to use rendering logic and bootkube start #21097

Merged
merged 20 commits into from Oct 2, 2018

Conversation

mfojtik
Copy link
Member

@mfojtik mfojtik commented Sep 25, 2018

Changes in this PR are trying to re-assemble what the openshift 4.0 installer will do in order to bring the initial control plane up and running.

The way this will work is basically:

  1. We generate the static pod manifests using the operator images that own the components (kube api server and controller manager) and the manifests for second stage that use daemonsets/configmaps/secrets.
  2. We run bootkube start that will first move the static pod manifests into kubelet static pod manifest directory and wait until the initial control plane is up and running. Initial control plane use hostNetwork and hostPaths.
  3. Once the initial control plane is running, bootkube will create the workload resources, secrets and config maps and wait until the second stage control plane is up and running
  4. Once the daemonset based control plane is running, the bootkube will tear down the static pod control plane

At this point, the job of cluster up is done and users have working kubernetes control plane to add operators they will to run.

/cc @deads2k
/cc @sttts

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 25, 2018
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 25, 2018
@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 25, 2018
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 26, 2018
@mfojtik mfojtik changed the title WIP: refactor cluster up to use operators WIP: Rewrite cluster-up to use rendering logic and bootkube start Sep 26, 2018
@mfojtik mfojtik force-pushed the feature-bootkube branch 2 times, most recently from 7aa977b to afcded5 Compare September 26, 2018 15:26
@mfojtik mfojtik changed the title WIP: Rewrite cluster-up to use rendering logic and bootkube start Rewrite cluster-up to use rendering logic and bootkube start Sep 26, 2018
@mfojtik mfojtik removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 26, 2018
@mfojtik mfojtik force-pushed the feature-bootkube branch 3 times, most recently from d022356 to 31629ad Compare September 26, 2018 19:34
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 26, 2018
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 26, 2018
@deads2k
Copy link
Contributor

deads2k commented Sep 26, 2018

/lgtm

Worth another round of squashing I think to get under 10 commits. Feel free to squash mine. Don't forget a note and the world's best bash one liner :).

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 26, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, mfojtik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

5 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Oct 1, 2018
@mfojtik
Copy link
Member Author

mfojtik commented Oct 1, 2018

/retest

@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 1, 2018

@mfojtik: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/extended_image_ecosystem 31629ad link /test extended_image_ecosystem
ci/openshift-jenkins/extended_builds 31629ad link /test extended_builds

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.

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. I understand the commands that are listed here.

@mfojtik
Copy link
Member Author

mfojtik commented Oct 2, 2018

/retest

@mfojtik mfojtik added the lgtm Indicates that a PR is ready to be merged. label Oct 2, 2018
@mfojtik
Copy link
Member Author

mfojtik commented Oct 2, 2018

Reapplying the label as the last commits were just fixing the CI.

@openshift-merge-robot openshift-merge-robot merged commit 2f9d790 into openshift:master Oct 2, 2018
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants