Skip to content

Conversation

@tsorya
Copy link
Contributor

@tsorya tsorya commented Dec 13, 2020

Adding ibip functionality by adding relevant files to masters ignition.
After adding files to ignition, bootkube.sh will run coreos-install with this ignition

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tsorya
To complete the pull request process, please assign sttts after the PR has been reviewed.
You can assign the PR to them by writing /assign @sttts in a comment when ready.

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

Details 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-merge-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
ci/prow/verify-deps 5fc04d5 link /test verify-deps
ci/prow/verify 5fc04d5 link /test verify
ci/prow/e2e-aws 5fc04d5 link /test e2e-aws

Full PR test history. Your PR dashboard.

Details

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.

@romfreiman romfreiman mentioned this pull request Dec 13, 2020
@tsorya
Copy link
Contributor Author

tsorya commented Dec 14, 2020

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 14, 2020
cmdStart.Flags().StringSliceVar(&startOpts.requiredPodClauses, "required-pods", defaultRequiredPods, "List of pods name prefixes with their namespace (written as <namespace>/<pod-prefix>) that are required to be running and ready before the start command does the pivot, or alternatively a list of or'ed pod prefixes with a description (written as <desc>:<namespace>/<pod-prefix>|<namespace>/<pod-prefix>|...).")
cmdStart.Flags().StringVar(&startOpts.waitForTearDownEvent, "tear-down-event", "", "if this optional event name of the form <ns>/<event-name> is given, the event is waited for before tearing down the bootstrap control plane")
cmdStart.Flags().BoolVar(&startOpts.earlyTearDown, "tear-down-early", true, "tear down immediate after the non-bootstrap control plane is up and bootstrap-success event is created.")
cmdStart.Flags().StringVar(&startOpts.clusterProfile, "cluster-profile", "", "The cluster profile.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this? What happens with the file? Add proper docs.

bootstrapPodsRunningTimeout = 20 * time.Minute
// how long we wait until the assets must all be created
assetsCreatedTimeout = 60 * time.Minute
SingleNodeProductionEdge = "single-node-production-edge"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this? It is no edge. Is it a profile? Please name it that way.

cancel()
if b.clusterProfile != SingleNodeProductionEdge {
cancel()
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this logic here and the knowledge that it depends on the profile IMO is wrong. Instead make the behaviour the feature, i.e. the flag: --terminte-early-when-pods-running.

@sttts
Copy link
Contributor

sttts commented Dec 15, 2020

/hold

cluster-bootstrap should not know anything about profiles. Turn the profile logic into an explicit feature of cluster-bootstrap, i.e. something like --terminate-early-after-pods-running=true.

Use: "ibip",
Short: "Update the master ignition with control plane static pods files",
Long: "",
PreRunE: validateIBipOpts,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no ibip please :)

@eranco74
Copy link
Contributor

closing this PR. there is a new updated PR targeting master
#46

@tsorya tsorya closed this Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants